drivers: dac: Refactor drivers to use shared init priority

Refactors all of the DAC drivers to use a shared driver class
initialization priority configuration, CONFIG_DAC_INIT_PRIORITY, to
allow configuring DAC drivers separately from other devices. This is
similar to other driver classes like I2C and SPI.

The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to preserve the
existing default initialization priority for most drivers. The
exceptions are dacx0508, dacx3608, and mcp4725 drivers which have
dependencies on SPI or I2C drivers and must therefore initialize later
than the default device priority.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
Maureen Helm 2021-10-25 19:13:48 -05:00 committed by Carles Cufí
commit 9eef764c65
17 changed files with 29 additions and 35 deletions

View file

@ -9,13 +9,3 @@ config DAC_MCP4725
depends on I2C
help
Enable the driver for the Microchip MCP4725.
if DAC_MCP4725
config DAC_MCP4725_INIT_PRIORITY
int "Init priority"
default 80
help
MCP4725 DAC device driver initialization priority.
endif # DAC_MCP4725