drivers: lpuart: Fix async configure
Fix async configure function not being called when the irq driven api is not used, which both causes a build warning and would not work at runtime. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
f4e95ccd48
commit
938050c7ce
1 changed files with 2 additions and 3 deletions
|
@ -714,10 +714,9 @@ static int mcux_lpuart_callback_set(const struct device *dev, uart_callback_t ca
|
||||||
data->callback = NULL;
|
data->callback = NULL;
|
||||||
data->cb_data = NULL;
|
data->cb_data = NULL;
|
||||||
data->api_type = LPUART_ASYNC;
|
data->api_type = LPUART_ASYNC;
|
||||||
return mcux_lpuart_configure_async(dev);
|
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return mcux_lpuart_configure_async(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mcux_lpuart_tx(const struct device *dev, const uint8_t *buf, size_t len,
|
static int mcux_lpuart_tx(const struct device *dev, const uint8_t *buf, size_t len,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue