Skip to content

Commit b603016

Browse files
adamkondraciukjaz1-nordic
authored andcommitted
[nrf fromlist] drivers: pwm: pwm_nrfx: minor fixes
Minor alignment and fix failing tests. Upstream PR #: 96843 Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent f448226 commit b603016

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
@@ -399,13 +399,13 @@ static int pwm_nrfx_init(const struct device *dev)
399399
#define PWM_MEM_REGION(inst) DT_PHANDLE(DT_DRV_INST(inst), memory_regions)
400400

401401
#define PWM_MEMORY_SECTION(inst) \
402-
COND_CODE_1(DT_NODE_HAS_PROP(inst, memory_regions), \
402+
COND_CODE_1(DT_NODE_HAS_PROP(DT_DRV_INST(inst), memory_regions), \
403403
(__attribute__((__section__(LINKER_DT_NODE_REGION_NAME( \
404404
PWM_MEM_REGION(inst)))))), \
405405
())
406406

407407
#define PWM_GET_MEM_ATTR(inst) \
408-
COND_CODE_1(DT_NODE_HAS_PROP(inst, memory_regions), \
408+
COND_CODE_1(DT_NODE_HAS_PROP(DT_DRV_INST(inst), memory_regions), \
409409
(DT_PROP_OR(PWM_MEM_REGION(inst), zephyr_memory_attr, 0)), (0))
410410

411411
#define PWM_NRFX_DEFINE(inst) \

0 commit comments

Comments
 (0)