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>
Make zephyr,examplesensor driver option dependent on it being defined in
Kconfig and set its default based on DT status as well.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Zephyr includes are now prefixed with <zephyr/...>. While the old path
can still be used when CONFIG_LEGACY_INCLUDE_PATH=y, it's better to be
prepared for the future.
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Use the recently introduced GPIO API that allows obtaining pin state
using the gpio_dt_spec struct.
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>