drivers: pwm_nrfx: fix incoherent config struct name
Fix the instance config structure name so that it's coherent with the data one (missing underscore after the instance idx). Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
cf30e38c46
commit
69a13bbb5d
1 changed files with 2 additions and 2 deletions
|
@ -365,7 +365,7 @@ static int pwm_nrfx_pm_action(const struct device *dev,
|
|||
(PWM_CH_INVERTED(idx, 3) ? BIT(3) : 0),)) \
|
||||
}; \
|
||||
IF_ENABLED(CONFIG_PINCTRL, (PINCTRL_DT_DEFINE(PWM(idx)))); \
|
||||
static const struct pwm_nrfx_config pwm_nrfx_##idx##config = { \
|
||||
static const struct pwm_nrfx_config pwm_nrfx_##idx##_config = { \
|
||||
.pwm = NRFX_PWM_INSTANCE(idx), \
|
||||
.initial_config = { \
|
||||
COND_CODE_1(CONFIG_PINCTRL, \
|
||||
|
@ -394,7 +394,7 @@ static int pwm_nrfx_pm_action(const struct device *dev,
|
|||
DEVICE_DT_DEFINE(PWM(idx), \
|
||||
pwm_nrfx_init, PM_DEVICE_DT_GET(PWM(idx)), \
|
||||
&pwm_nrfx_##idx##_data, \
|
||||
&pwm_nrfx_##idx##config, \
|
||||
&pwm_nrfx_##idx##_config, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&pwm_nrfx_drv_api_funcs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue