drivers: pwm: Convert drivers to new DT device macros

Convert pwm drivers to use new DT variants of the DEVICE APIs.
        DEVICE_AND_API_INIT -> DEVICE_DT_DEFINE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-09 15:38:54 -06:00 committed by Anas Nashif
commit d3790cec95
15 changed files with 29 additions and 32 deletions

View file

@ -414,8 +414,7 @@ static int pwm_nrfx_pm_control(const struct device *dev,
.seq.length = NRF_PWM_CHANNEL_COUNT \
}; \
PWM_NRFX_PM_CONTROL(idx) \
DEVICE_DEFINE(pwm_nrfx_##idx, \
DT_LABEL(PWM(idx)), \
DEVICE_DT_INST_DEFINE(idx, \
pwm_nrfx_init, pwm_##idx##_nrfx_pm_control, \
&pwm_nrfx_##idx##_data, \
&pwm_nrfx_##idx##config, \