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:
parent
90d06cffec
commit
65a4910f97
1 changed files with 1 additions and 1 deletions
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue