drivers/uart: stm32: Report 9bits transactions as not supported

STM32 uart driver doesn't support 9bits transactions in any case,
so remove case were it was declared as supported.

Fixes #31799

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-02-11 09:22:40 +01:00 committed by Anas Nashif
commit 32fe2976f3

View file

@ -339,10 +339,7 @@ static int uart_stm32_configure(const struct device *dev,
#ifndef LL_USART_DATAWIDTH_7B
|| (UART_CFG_DATA_BITS_7 == cfg->data_bits)
#endif /* LL_USART_DATAWIDTH_7B */
#ifndef LL_USART_DATAWIDTH_9B
|| (UART_CFG_DATA_BITS_9 == cfg->data_bits)
#endif /* LL_USART_DATAWIDTH_9B */
) {
|| (UART_CFG_DATA_BITS_9 == cfg->data_bits)) {
return -ENOTSUP;
}