We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DT_INST_STRING_TOKEN
1 parent 1772dc2 commit c288746Copy full SHA for c288746
drivers/spi/spi_b91.c
@@ -471,9 +471,9 @@ static struct spi_driver_api spi_b91_api = {
471
\
472
static struct spi_b91_cfg spi_b91_cfg_##inst = { \
473
.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), \
+ .cs_pin[0] = DT_INST_STRING_TOKEN(inst, cs0_pin), \
+ .cs_pin[1] = DT_INST_STRING_TOKEN(inst, cs1_pin), \
+ .cs_pin[2] = DT_INST_STRING_TOKEN(inst, cs2_pin), \
477
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(inst), \
478
}; \
479
0 commit comments