drivers: serial: uart_stm32 converted to use the new kwork API.

The structure is now k_work_delayable.
The init function is now k_work_init_delayable.
The submit function is now the k_work_reschedule.
The cancel function is now the k_work_cancel_delayable.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-04-08 12:09:58 +02:00 committed by Carles Cufí
commit 962d6b1082
2 changed files with 10 additions and 10 deletions

View file

@ -42,7 +42,7 @@ struct uart_dma_stream {
size_t offset;
volatile size_t counter;
int32_t timeout;
struct k_delayed_work timeout_work;
struct k_work_delayable timeout_work;
bool enabled;
};
#endif