drivers: serial: Fix uart_irq_callback_user_data_t usage

Now providing the device pointer that calls the callback.

Fixes #26923

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-06-24 15:47:15 +02:00 committed by Carles Cufí
commit 04d6d0b120
27 changed files with 29 additions and 28 deletions

View file

@ -1139,7 +1139,7 @@ static void uart_xlnx_ps_isr(void *arg)
const struct uart_xlnx_ps_dev_data_t *data = DEV_DATA(dev);
if (data->user_cb) {
data->user_cb(data->user_data);
data->user_cb(dev, data->user_data);
}
}
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */