soc/arm: stm32: use _INST_ namespace in devicetree pinctrl helpers
Current set of helpers provided for STM32 pinctrl devicetree are using device instance as input. In order to prepare for next version that will take node identifier as input, change existing set of macros using _INST_ namespace. Additionally rename NODE_ID_FROM_PINCTRL to ST_STM32_DT_INST_NODE_ID_FROM_PINCTRL. Finally update existing macros users to this new name scheme. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
4b3a6a0e91
commit
2d3cda7663
3 changed files with 44 additions and 41 deletions
|
@ -815,7 +815,7 @@ static void uart_stm32_irq_config_func_##index(const struct device *dev) \
|
|||
STM32_UART_IRQ_HANDLER_DECL(index); \
|
||||
\
|
||||
static const struct soc_gpio_pinctrl uart_pins_##index[] = \
|
||||
ST_STM32_DT_PINCTRL(0, index); \
|
||||
ST_STM32_DT_INST_PINCTRL(0, index); \
|
||||
\
|
||||
static const struct uart_stm32_config uart_stm32_cfg_##index = { \
|
||||
.uconf = { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue