Skip to content

Commit 2f6038d

Browse files
gmarullmbolivar-nordic
authored andcommitted
drivers: sensor: examplesensor: use select in Kconfig
With the recent changes in how Kconfig options are enabled using DT helpers, using select leads to a better/more scalable pattern. Each driver Kconfig option is expected to select its dependencies now. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 29fbd1e commit 2f6038d

File tree

1 file changed

+2
-1
lines changed
  • drivers/sensor/examplesensor

1 file changed

+2
-1
lines changed

drivers/sensor/examplesensor/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
config EXAMPLESENSOR
55
bool "Example sensor"
66
default y
7-
depends on GPIO && DT_HAS_ZEPHYR_EXAMPLESENSOR_ENABLED
7+
depends on DT_HAS_ZEPHYR_EXAMPLESENSOR_ENABLED
8+
select GPIO
89
help
910
Enable example sensor

0 commit comments

Comments
 (0)