sensor: adxl345: add missing Kconfig dependency

Add a missed dependency to all sub-symbols of `ADXL345`.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2025-03-04 10:32:31 +10:00 committed by Benjamin Cabé
commit a0d22be980

View file

@ -13,6 +13,8 @@ config ADXL345
help help
Enable driver for ADXL345 Three-Axis Digital Accelerometer. Enable driver for ADXL345 Three-Axis Digital Accelerometer.
if ADXL345
choice ADXL345_TRIGGER_MODE choice ADXL345_TRIGGER_MODE
prompt "Trigger mode" prompt "Trigger mode"
default ADXL345_TRIGGER_NONE default ADXL345_TRIGGER_NONE
@ -58,3 +60,5 @@ config ADXL345_THREAD_STACK_SIZE
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
endif # ADXL345