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:
Martin Jäger 2022-07-28 13:04:19 +02:00 committed by Carles Cufí
commit c40ec11ab4
9 changed files with 21 additions and 17 deletions

View file

@ -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.