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

@ -263,9 +263,9 @@ static const struct pwm_config pwm_nrf5_sw_0_config = {
static struct pwm_data pwm_nrf5_sw_0_data;
DEVICE_AND_API_INIT(pwm_nrf5_sw_0,
DT_INST_LABEL(0),
DEVICE_DT_INST_DEFINE(0,
pwm_nrf5_sw_init,
device_pm_control_nop,
&pwm_nrf5_sw_0_data,
&pwm_nrf5_sw_0_config,
POST_KERNEL,