From 7064e31101c016be178993a876fdc6a79a0ec42b Mon Sep 17 00:00:00 2001 From: Glauber Maroto Ferreira Date: Sun, 13 Mar 2022 10:10:58 -0300 Subject: [PATCH] esp32: drivers: uart: remove uart_num When using pin states, uart_num is no longer required. Signed-off-by: Glauber Maroto Ferreira --- drivers/serial/uart_esp32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/serial/uart_esp32.c b/drivers/serial/uart_esp32.c index afb4ab7431d..1ab6e4c338c 100644 --- a/drivers/serial/uart_esp32.c +++ b/drivers/serial/uart_esp32.c @@ -56,7 +56,6 @@ struct uart_esp32_config { const clock_control_subsys_t clock_subsys; - uint8_t uart_num; int irq_source; }; @@ -471,7 +470,6 @@ static const DRAM_ATTR struct uart_driver_api uart_esp32_api = { PINCTRL_DT_INST_DEFINE(idx); \ \ static const DRAM_ATTR struct uart_esp32_config uart_esp32_cfg_port_##idx = { \ - .uart_num = DT_INST_PROP(idx, peripheral), \ .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(idx)), \ .pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(idx), \ .clock_subsys = (clock_control_subsys_t)DT_INST_CLOCKS_CELL(idx, offset), \