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>
This commit is contained in:
Fabian Blatz
2025-11-20 13:49:53 +01:00
committed by Fabio Baltieri
parent 61acbb986b
commit a7659d8460

View File

@@ -20,7 +20,7 @@ config INPUT_CST816S_PERIOD
config INPUT_CST816S_INTERRUPT
bool "Interrupt support"
default y
default y if $(dt_compat_any_has_prop,$(DT_COMPAT_HYNITRON_CST816S),irq-gpios)
depends on GPIO
help
Enable interrupt support (requires GPIO).