Skip to content

Commit 45a3985

Browse files
gmarullcarlescufi
authored andcommitted
drivers: pwm: nrf5_sw: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 59fe6b8 commit 45a3985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm_nrf5_sw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <logging/log.h>
1919
LOG_MODULE_REGISTER(pwm_nrf5_sw);
2020

21-
#define GENERATOR_NODE DT_PHANDLE(DT_DRV_INST(0), generator)
21+
#define GENERATOR_NODE DT_INST_PHANDLE(0, generator)
2222
#define GENERATOR_CC_NUM DT_PROP(GENERATOR_NODE, cc_num)
2323

2424
#if DT_NODE_HAS_COMPAT(GENERATOR_NODE, nordic_nrf_rtc)

0 commit comments

Comments
 (0)