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 <gerard@teslabs.com>
This commit is contained in:
parent
29fbd1ede8
commit
2f6038d799
|
@ -4,6 +4,7 @@
|
||||||
config EXAMPLESENSOR
|
config EXAMPLESENSOR
|
||||||
bool "Example sensor"
|
bool "Example sensor"
|
||||||
default y
|
default y
|
||||||
depends on GPIO && DT_HAS_ZEPHYR_EXAMPLESENSOR_ENABLED
|
depends on DT_HAS_ZEPHYR_EXAMPLESENSOR_ENABLED
|
||||||
|
select GPIO
|
||||||
help
|
help
|
||||||
Enable example sensor
|
Enable example sensor
|
||||||
|
|
Loading…
Reference in a new issue