From 2f6038d79947564c3eab365e8610ad2e8a0d3c24 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Tue, 23 Aug 2022 16:27:25 +0200 Subject: [PATCH] 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 --- drivers/sensor/examplesensor/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/sensor/examplesensor/Kconfig b/drivers/sensor/examplesensor/Kconfig index 384a5fa..a8ab99a 100644 --- a/drivers/sensor/examplesensor/Kconfig +++ b/drivers/sensor/examplesensor/Kconfig @@ -4,6 +4,7 @@ config EXAMPLESENSOR bool "Example sensor" default y - depends on GPIO && DT_HAS_ZEPHYR_EXAMPLESENSOR_ENABLED + depends on DT_HAS_ZEPHYR_EXAMPLESENSOR_ENABLED + select GPIO help Enable example sensor