Skip to content

Commit 3bc6c55

Browse files
Tomasz Bursztykagalak
authored andcommitted
drivers: serial: Fix UART callback call in lpc11u6x driver
struct device * as well as void * are necessary now. Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent 4c67339 commit 3bc6c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/serial/uart_lpc11u6x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static void lpc11u6x_uart0_isr(void *arg)
336336
struct lpc11u6x_uart0_data *data = DEV_DATA(dev);
337337

338338
if (data->cb) {
339-
data->cb(data->cb_data);
339+
data->cb(dev, data->cb_data);
340340
}
341341
}
342342
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
@@ -760,7 +760,7 @@ static void lpc11u6x_uartx_isr(struct device *dev)
760760
struct lpc11u6x_uartx_data *data = DEV_DATA(dev);
761761

762762
if (data->cb) {
763-
data->cb(data->cb_data);
763+
data->cb(dev, data->cb_data);
764764
}
765765
}
766766

0 commit comments

Comments
 (0)