drivers: serial: stm32: set default parity in driver
Have the driver default to UART_CFG_PARITY_NONE if no parity property exists rather than using default in binding. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
3ce7afdaaa
commit
c22e34397e
4 changed files with 10 additions and 7 deletions
|
@ -826,7 +826,7 @@ static const struct uart_stm32_config uart_stm32_cfg_##index = { \
|
|||
.enr = DT_INST_CLOCKS_CELL(index, bits) \
|
||||
}, \
|
||||
.hw_flow_control = DT_INST_PROP(index, hw_flow_control), \
|
||||
.parity = DT_INST_PROP(index, parity), \
|
||||
.parity = DT_INST_PROP_OR(index, parity, UART_CFG_PARITY_NONE), \
|
||||
.pinctrl_list = uart_pins_##index, \
|
||||
.pinctrl_list_size = ARRAY_SIZE(uart_pins_##index), \
|
||||
}; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue