uart: Fix uart_irq_callback_user_data_set usage

Now providing the struct device * to the callback.

Fixes #26923

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-06-25 08:03:09 +02:00 committed by Carles Cufí
commit 701869fc48
6 changed files with 30 additions and 46 deletions

View file

@ -784,10 +784,9 @@ static void ppp_uart_flush(struct device *dev)
}
}
static void ppp_uart_isr(void *user_data)
static void ppp_uart_isr(struct device *uart, void *user_data)
{
struct ppp_driver_context *context = user_data;
struct device *uart = context->dev;
int rx = 0, ret;
/* get all of the data off UART as fast as we can */