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:
parent
fc9347cf52
commit
9eef764c65
17 changed files with 29 additions and 35 deletions
|
@ -114,7 +114,7 @@ static const struct dac_driver_api mcux_dac32_driver_api = {
|
|||
DEVICE_DT_INST_DEFINE(n, mcux_dac32_init, NULL, \
|
||||
&mcux_dac32_data_##n, \
|
||||
&mcux_dac32_config_##n, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,\
|
||||
POST_KERNEL, CONFIG_DAC_INIT_PRIORITY, \
|
||||
&mcux_dac32_driver_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(MCUX_DAC32_INIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue