Skip to content

Commit 36c73da

Browse files
mbolivar-nordicnashif
authored andcommitted
dt-bindings: b91-pinctrl: use new DT pinctrl accessors
Update to use the new APIs. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 2b9d477 commit 36c73da

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

include/dt-bindings/pinctrl/b91-pinctrl.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
#define B91_PINMUX_GET_PIN(pinmux) (pinmux & 0xFFFF)
4040

4141
#define B91_PINMUX_DT_INST_GET_ELEM(idx, x, inst) \
42-
DT_PROP_BY_PHANDLE_IDX(DT_DRV_INST(inst), pinctrl_##x, idx, pinmux),
43-
44-
#define B91_PINMUX_DT_INST_GET_ARRAY(inst, x) \
45-
{ COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, pinctrl_##x), \
46-
(UTIL_LISTIFY(DT_INST_PROP_LEN(inst, pinctrl_##x), \
47-
B91_PINMUX_DT_INST_GET_ELEM, \
48-
x, \
49-
inst)), \
50-
()) \
42+
DT_PROP(DT_INST_PINCTRL_BY_IDX(inst, x, idx), pinmux),
43+
44+
#define B91_PINMUX_DT_INST_GET_ARRAY(inst, x) \
45+
{ COND_CODE_1(DT_INST_PINCTRL_HAS_IDX(inst, x), \
46+
(UTIL_LISTIFY(DT_INST_NUM_PINCTRLS_BY_IDX(inst, x), \
47+
B91_PINMUX_DT_INST_GET_ELEM, \
48+
x, \
49+
inst)), \
50+
()) \
5151
}
5252

5353
#endif /* ZEPHYR_B91_PINCTRL_COMMON_H_ */

0 commit comments

Comments
 (0)