drivers: sensor: ti: ina230: Fix dts warning if INA230_TRIGGER enabled

Updates the Kconfig condition to support trigger functionality for INA236.
This will get rid of `warning: INA230_TRIGGER (defined at
drivers/sensor/ti/ina23x/Kconfig:43) was assigned the value 'y' but got
the value 'n'.` if INA230_TRIGGER is enabled.

Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
This commit is contained in:
Tomáš Juřena 2024-11-24 16:19:49 +01:00 committed by Benjamin Cabé
commit b4dcdaaeab

View file

@ -44,7 +44,7 @@ config INA230_TRIGGER
bool "INA230 trigger mode" bool "INA230 trigger mode"
depends on INA230 depends on INA230
depends on GPIO depends on GPIO
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_TI_INA230),alert-gpios) depends on $(dt_compat_any_has_prop,$(DT_COMPAT_TI_INA230),alert-gpios) || $(dt_compat_any_has_prop,$(DT_COMPAT_TI_INA236),alert-gpios)
help help
Set to enable trigger mode using gpio interrupt, where Set to enable trigger mode using gpio interrupt, where
interrupts are configured to line ALERT PIN. interrupts are configured to line ALERT PIN.