mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
serial: 8250: Change dl_read/write to handle value as u32
Divisor latch read/write functions currently handle the value is int. As the value is related to HW context, u32 makes much more sense than a signed type. While at it, name the parameters in the callback signature. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20230511121029.13128-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9d86719f87
commit
b245aa0cc5
@@ -129,8 +129,8 @@ struct uart_8250_port {
|
||||
const struct uart_8250_ops *ops;
|
||||
|
||||
/* 8250 specific callbacks */
|
||||
int (*dl_read)(struct uart_8250_port *);
|
||||
void (*dl_write)(struct uart_8250_port *, int);
|
||||
u32 (*dl_read)(struct uart_8250_port *up);
|
||||
void (*dl_write)(struct uart_8250_port *up, u32 value);
|
||||
|
||||
struct uart_8250_em485 *em485;
|
||||
void (*rs485_start_tx)(struct uart_8250_port *);
|
||||
|
||||
Reference in New Issue
Block a user