drivers: pwm: fix nrfx pwm device definition

Driver does not use the numeric index directly to identify devicetree
instance nodes.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-12-11 06:36:12 -06:00 committed by Anas Nashif
commit 65a4910f97

View file

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