drivers: dac: Convert drivers to new DT device macros
Convert dac drivers from: DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
a019b6f280
commit
6808d29baf
5 changed files with 10 additions and 10 deletions
|
@ -111,8 +111,8 @@ static const struct dac_driver_api mcux_dac32_driver_api = {
|
|||
.low_power = DT_INST_PROP(n, low_power_mode), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_AND_API_INIT(mcux_dac32_##n, DT_INST_LABEL(n), \
|
||||
mcux_dac32_init, &mcux_dac32_data_##n, \
|
||||
DEVICE_DT_INST_DEFINE(n, mcux_dac32_init, device_pm_control_nop,\
|
||||
&mcux_dac32_data_##n, \
|
||||
&mcux_dac32_config_##n, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,\
|
||||
&mcux_dac32_driver_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue