drivers: kscan: Update Kconfig
* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers
* Move to using select I2C' instead of 'depends on'
(see commit df81fef944
for
more details)
Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
f2fa572561
commit
287043cddb
|
@ -1,12 +1,11 @@
|
|||
# Copyright (c) 2022 Keiya Nobuta
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
DT_COMPAT_MICROCHIP_CAP1203 := microchip,cap1203
|
||||
|
||||
menuconfig KSCAN_CAP1203
|
||||
bool "CAP1203 3-cannel capacitive touch sensor driver"
|
||||
depends on I2C
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_MICROCHIP_CAP1203))
|
||||
default y
|
||||
depends on DT_HAS_MICROCHIP_CAP1203_ENABLED
|
||||
select I2C
|
||||
help
|
||||
Enable driver for microchip CAP1203 3-cannel capacitive
|
||||
touch sensor.
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
# Copyright (c) 2020 Qingsong Gou <gouqs@hotmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
DT_COMPAT_HYNITRON_CST816S := hynitron,cst816s
|
||||
|
||||
menuconfig KSCAN_CST816S
|
||||
bool "CST816S capacitive touch panel driver"
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_HYNITRON_CST816S))
|
||||
depends on I2C
|
||||
default y
|
||||
depends on DT_HAS_HYNITRON_CST816S_ENABLED
|
||||
select I2C
|
||||
help
|
||||
Enable driver for hynitron cst816s touch panel.
|
||||
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
menuconfig KSCAN_FT5336
|
||||
bool "FT5XX6/FT6XX6 capacitive touch panel driver"
|
||||
depends on I2C
|
||||
default y
|
||||
depends on DT_HAS_FOCALTECH_FT5336_ENABLED
|
||||
select I2C
|
||||
help
|
||||
Enable driver for multiple Focaltech capacitive touch panel
|
||||
controllers. This driver should support FT5x06, FT5606, FT5x16,
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
config KSCAN_HT16K33
|
||||
bool "HT16K33 keyscan driver"
|
||||
depends on HT16K33_KEYSCAN
|
||||
default y
|
||||
depends on DT_HAS_HOLTEK_HT16K33_KEYSCAN_ENABLED
|
||||
help
|
||||
Enable keyscan driver for HT16K33.
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
menuconfig KSCAN_ITE_IT8XXX2
|
||||
bool "ITE KSCAN driver"
|
||||
depends on SOC_IT8XXX2 && KSCAN
|
||||
default y
|
||||
depends on DT_HAS_ITE_IT8XXX2_KSCAN_ENABLED
|
||||
select MULTITHREADING
|
||||
help
|
||||
This option enables the ITE keyboard scan driver.
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
# Copyright (c) 2019 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
DT_COMPAT_ST_KSCAN_XEC := microchip,xec-kscan
|
||||
|
||||
menuconfig KSCAN_XEC
|
||||
bool "Microchip XEC series KSCAN driver"
|
||||
depends on SOC_FAMILY_MEC
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_ST_KSCAN_XEC))
|
||||
default y
|
||||
depends on DT_HAS_MICROCHIP_XEC_KSCAN_ENABLED
|
||||
select MULTITHREADING
|
||||
help
|
||||
Enable the Microchip XEC Kscan IO driver.
|
||||
|
|
Loading…
Reference in a new issue