zephyr/drivers/sensor/current_amp/Kconfig
Jordan Yates d725666b2c sensor: convert ADC depends on to select
When a sensor that depends on an ADC is enabled in devicetree, enable
the ADC subsystem. ADC is roughly equivalent to a bus for these sensors
(the mechanism through which data is transferred), which had the same
conversion applied in #48707.

The same benefits apply here, namely removing the need for the following
pattern in board `.kconfig` files:
```
configdefault ADC
    default y if SENSOR
```

Signed-off-by: Jordan Yates <jordan@embeint.com>
2024-05-16 13:31:32 +02:00

14 lines
294 B
Plaintext

# Current sense amplifier driver
#
# Copyright (c) 2023 FTP Technologies
#
# SPDX-License-Identifier: Apache-2.0
config CURRENT_AMP
bool "Current sense amplifier driver"
default y
depends on DT_HAS_CURRENT_SENSE_AMPLIFIER_ENABLED
select ADC
help
Enable current sense amplifier driver.