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 <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
1772dc24a3
commit
c28874657b
1 changed files with 3 additions and 3 deletions
|
@ -471,9 +471,9 @@ static struct spi_driver_api spi_b91_api = {
|
|||
\
|
||||
static struct spi_b91_cfg spi_b91_cfg_##inst = { \
|
||||
.peripheral_id = DT_INST_ENUM_IDX(inst, peripheral_id), \
|
||||
.cs_pin[0] = DT_STRING_TOKEN(DT_DRV_INST(inst), cs0_pin), \
|
||||
.cs_pin[1] = DT_STRING_TOKEN(DT_DRV_INST(inst), cs1_pin), \
|
||||
.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), \
|
||||
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(inst), \
|
||||
}; \
|
||||
\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue