uart: Fix uart_irq_callback_set usage
It was already using uart_irq_callback_user_data_set below, now it also uses uart_irq_callback_user_data_t as callback type, so let's normalize the callbacks. Fixes #26923 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
4c78d0e35b
commit
7d1af02410
13 changed files with 37 additions and 14 deletions
|
@ -47,12 +47,14 @@ static void modem_iface_uart_flush(struct modem_iface *iface)
|
|||
*
|
||||
* @retval None.
|
||||
*/
|
||||
static void modem_iface_uart_isr(struct device *uart_dev)
|
||||
static void modem_iface_uart_isr(struct device *uart_dev, void *user_data)
|
||||
{
|
||||
struct modem_context *ctx;
|
||||
struct modem_iface_uart_data *data;
|
||||
int rx = 0, ret;
|
||||
|
||||
ARG_UNUSED(user_data);
|
||||
|
||||
/* lookup the modem context */
|
||||
ctx = modem_context_from_iface_dev(uart_dev);
|
||||
if (!ctx || !ctx->iface.iface_data) {
|
||||
|
|
|
@ -101,12 +101,14 @@ static void mdm_receiver_flush(struct mdm_receiver_context *ctx)
|
|||
*
|
||||
* @retval None.
|
||||
*/
|
||||
static void mdm_receiver_isr(struct device *uart_dev)
|
||||
static void mdm_receiver_isr(struct device *uart_dev, void *user_data)
|
||||
{
|
||||
struct mdm_receiver_context *ctx;
|
||||
int rx, ret;
|
||||
static uint8_t read_buf[MAX_READ_SIZE];
|
||||
|
||||
ARG_UNUSED(user_data);
|
||||
|
||||
/* lookup the device */
|
||||
ctx = context_from_dev(uart_dev);
|
||||
if (!ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue