esp32: drivers: uart: remove uart_num
When using pin states, uart_num is no longer required. Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
parent
d06959c057
commit
7064e31101
1 changed files with 0 additions and 2 deletions
|
@ -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), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue