drivers: dac: update drivers to use devicetree Kconfig symbol
Update dac drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. We remove 'depend on' Kconfig for symbols that would be implied by the devicetree node existing. Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
parent
e1e366c912
commit
c40ec11ab4
9 changed files with 21 additions and 17 deletions
|
@ -6,7 +6,9 @@
|
|||
|
||||
config DAC_MCP4725
|
||||
bool "Microchip MCP4725 DAC driver"
|
||||
default y
|
||||
depends on I2C
|
||||
depends on DT_HAS_MICROCHIP_MCP4725_ENABLED
|
||||
help
|
||||
Enable the driver for the Microchip MCP4725.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue