drivers: Convert to use new DEVICE_DT_INST_* macros
Move users that are DEVICE_DT_DECLARE(DT_DRV_INST(n, ...)) to DEVICE_DT_INST_DECLARE(n, ...) and similar for DEVICE_DT_DEFINE. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
3a83f0ec69
commit
06a5946266
7 changed files with 11 additions and 11 deletions
|
@ -386,7 +386,7 @@ static const struct driver_config regulator_##id##_cfg = { \
|
|||
\
|
||||
static struct REG_DATA_TAG(id) regulator_##id##_data; \
|
||||
\
|
||||
DEVICE_DT_DEFINE(DT_DRV_INST(id), REG_INIT(id), device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(id, REG_INIT(id), device_pm_control_nop, \
|
||||
®ulator_##id##_data, ®ulator_##id##_cfg, \
|
||||
POST_KERNEL, CONFIG_REGULATOR_FIXED_INIT_PRIORITY, \
|
||||
®_API(id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue