Skip to content

Commit a285b62

Browse files
MingcongBaiKexyBiscuit
authored andcommitted
AOSCOS: staging: sb105x: revise type of second argument of mp_send_xchar() as u8
Per commit 3a00da0 ("tty: make tty_operations::send_xchar accept u8 char"), the type of the second argument of member function `mp_send_xchar()' in `struct tty_operations' was revised from type `char' to type `u8'. Revise driver code accordingly. Fixes: "AOSCOS: Revert "staging: sb105x: delete the driver"" Signed-off-by: Mingcong Bai <[email protected]> Signed-off-by: Kexy Biscuit <[email protected]>
1 parent 6c5db2d commit a285b62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/sb105x/sb_pci_mp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static ssize_t mp_write(struct tty_struct *tty, const unsigned char *buf, long u
4343
static unsigned int mp_write_room(struct tty_struct *tty);
4444
static unsigned int mp_chars_in_buffer(struct tty_struct *tty);
4545
static void mp_flush_buffer(struct tty_struct *tty);
46-
static void mp_send_xchar(struct tty_struct *tty, char ch);
46+
static void mp_send_xchar(struct tty_struct *tty, u8 ch);
4747
static void mp_throttle(struct tty_struct *tty);
4848
static void mp_unthrottle(struct tty_struct *tty);
4949
static int mp_get_info(struct sb_uart_state *state, struct serial_struct *retinfo);
@@ -703,7 +703,7 @@ static void mp_flush_buffer(struct tty_struct *tty)
703703
tty_wakeup(tty);
704704
}
705705

706-
static void mp_send_xchar(struct tty_struct *tty, char ch)
706+
static void mp_send_xchar(struct tty_struct *tty, u8 ch)
707707
{
708708
struct sb_uart_state *state = tty->driver_data;
709709
struct sb_uart_port *port = state->port;

0 commit comments

Comments
 (0)