From c28874657b70678ba68b8ef6420374025edd8deb Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Tue, 22 Mar 2022 13:24:46 +1000 Subject: [PATCH] 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 --- drivers/spi/spi_b91.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi_b91.c b/drivers/spi/spi_b91.c index 371c77e27ae..ad804cbd6e2 100644 --- a/drivers/spi/spi_b91.c +++ b/drivers/spi/spi_b91.c @@ -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), \ }; \ \