Skip to content

Commit 299fa33

Browse files
drivers: pwm: pwm_nrfx: minor fixes
Minor alignment and fix failing tests. Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent 23680b8 commit 299fa33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pwm/pwm_nrfx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,13 +480,13 @@ static int pwm_nrfx_init(const struct device *dev)
480480
#define PWM_MEM_REGION(inst) DT_PHANDLE(DT_DRV_INST(inst), memory_regions)
481481

482482
#define PWM_MEMORY_SECTION(inst) \
483-
COND_CODE_1(DT_NODE_HAS_PROP(inst, memory_regions), \
483+
COND_CODE_1(DT_NODE_HAS_PROP(DT_DRV_INST(inst), memory_regions), \
484484
(__attribute__((__section__(LINKER_DT_NODE_REGION_NAME( \
485485
PWM_MEM_REGION(inst)))))), \
486486
())
487487

488488
#define PWM_GET_MEM_ATTR(inst) \
489-
COND_CODE_1(DT_NODE_HAS_PROP(inst, memory_regions), \
489+
COND_CODE_1(DT_NODE_HAS_PROP(DT_DRV_INST(inst), memory_regions), \
490490
(DT_PROP_OR(PWM_MEM_REGION(inst), zephyr_memory_attr, 0)), (0))
491491

492492
/* Fast instances depend on the global HSFLL clock controller (as they need

0 commit comments

Comments
 (0)