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:
Erwan Gouriou 2020-10-08 10:47:18 +02:00 committed by Carles Cufí
commit 2d3cda7663
3 changed files with 44 additions and 41 deletions

View file

@ -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 = { \