Update sensor drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. Signed-off-by: Kumar Gala <galak@kernel.org>
13 lines
353 B
Plaintext
13 lines
353 B
Plaintext
# STM32 temperature sensor configuration options
|
|
|
|
# Copyright (c) 2021 Eug Krashtan
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config STM32_TEMP
|
|
bool "STM32 Temperature Sensor"
|
|
default y
|
|
depends on DT_HAS_ST_STM32_TEMP_ENABLED || DT_HAS_ST_STM32_TEMP_CAL_ENABLED
|
|
depends on (ADC && SOC_FAMILY_STM32)
|
|
help
|
|
Enable driver for STM32 temperature sensor.
|