drivers: use DT_INST_PARENT
Replace usages of DT_PARENT(DT_DRV_INST(idx)) with more idiomatic DT_INST_PARENT(idx). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
0c0ad3d332
commit
3e9d8da9ec
11 changed files with 19 additions and 22 deletions
|
@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(flash_stm32_qspi, CONFIG_FLASH_LOG_LEVEL);
|
|||
#define STM32_QSPI_FIFO_THRESHOLD 8
|
||||
#define STM32_QSPI_CLOCK_PRESCALER_MAX 255
|
||||
|
||||
#define STM32_QSPI_USE_DMA DT_NODE_HAS_PROP(DT_PARENT(DT_DRV_INST(0)), dmas)
|
||||
#define STM32_QSPI_USE_DMA DT_NODE_HAS_PROP(DT_INST_PARENT(0), dmas)
|
||||
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32_qspi_nor)
|
||||
|
||||
|
@ -857,7 +857,7 @@ static int flash_stm32_qspi_init(const struct device *dev)
|
|||
|
||||
static void flash_stm32_qspi_irq_config_func(const struct device *dev);
|
||||
|
||||
#define STM32_QSPI_NODE DT_PARENT(DT_DRV_INST(0))
|
||||
#define STM32_QSPI_NODE DT_INST_PARENT(0)
|
||||
|
||||
PINCTRL_DT_DEFINE(STM32_QSPI_NODE)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue