Skip to content

Commit a7659d8

Browse files
faxe1008fabiobaltieri
authored andcommitted
drivers: input: cst816s: Default to interrupt if irq-gpio available
Changes the default value of the INPUT_CST816S_INTERRUPT flag to default to true if the there is a compatible with the irq-gpio property enabled. Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
1 parent 61acbb9 commit a7659d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/Kconfig.cst816s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ config INPUT_CST816S_PERIOD
2020

2121
config INPUT_CST816S_INTERRUPT
2222
bool "Interrupt support"
23-
default y
23+
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_HYNITRON_CST816S),irq-gpios)
2424
depends on GPIO
2525
help
2626
Enable interrupt support (requires GPIO).

0 commit comments

Comments
 (0)