Skip to content

Commit c288746

Browse files
Jordan Yatescarlescufi
authored andcommitted
spi: spi_b91: use new DT_INST_STRING_TOKEN macro
Use the dedicated `DT_INST_STRING_TOKEN` macro instead of manually retrieving `DT_DRV_INST`. Signed-off-by: Jordan Yates <[email protected]>
1 parent 1772dc2 commit c288746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/spi/spi_b91.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ static struct spi_driver_api spi_b91_api = {
471471
\
472472
static struct spi_b91_cfg spi_b91_cfg_##inst = { \
473473
.peripheral_id = DT_INST_ENUM_IDX(inst, peripheral_id), \
474-
.cs_pin[0] = DT_STRING_TOKEN(DT_DRV_INST(inst), cs0_pin), \
475-
.cs_pin[1] = DT_STRING_TOKEN(DT_DRV_INST(inst), cs1_pin), \
476-
.cs_pin[2] = DT_STRING_TOKEN(DT_DRV_INST(inst), cs2_pin), \
474+
.cs_pin[0] = DT_INST_STRING_TOKEN(inst, cs0_pin), \
475+
.cs_pin[1] = DT_INST_STRING_TOKEN(inst, cs1_pin), \
476+
.cs_pin[2] = DT_INST_STRING_TOKEN(inst, cs2_pin), \
477477
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(inst), \
478478
}; \
479479
\

0 commit comments

Comments
 (0)