drivers: pwm: nrf5_sw: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
59fe6b8235
commit
45a3985170
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(pwm_nrf5_sw);
|
||||
|
||||
#define GENERATOR_NODE DT_PHANDLE(DT_DRV_INST(0), generator)
|
||||
#define GENERATOR_NODE DT_INST_PHANDLE(0, generator)
|
||||
#define GENERATOR_CC_NUM DT_PROP(GENERATOR_NODE, cc_num)
|
||||
|
||||
#if DT_NODE_HAS_COMPAT(GENERATOR_NODE, nordic_nrf_rtc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue