Skip to content

Commit ed8d350

Browse files
MingcongBaiKexyBiscuit
authored andcommitted
AOSCOS: staging: sb105x: revise type of mp_write_room() as unsigned int
Per commit 03b3b1a ("tty: make tty_operations::write_room return uint"), member function `write_room()' in `struct tty_operations' was revised from type `int' to type `unsigned int'. 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 7f0ee24 commit ed8d350

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
@@ -40,7 +40,7 @@ static int mp_put_char(struct tty_struct *tty, unsigned char ch);
4040

4141
static void mp_put_chars(struct tty_struct *tty);
4242
static ssize_t mp_write(struct tty_struct *tty, const unsigned char *buf, long unsigned int count);
43-
static int mp_write_room(struct tty_struct *tty);
43+
static unsigned int mp_write_room(struct tty_struct *tty);
4444
static int mp_chars_in_buffer(struct tty_struct *tty);
4545
static void mp_flush_buffer(struct tty_struct *tty);
4646
static void mp_send_xchar(struct tty_struct *tty, char ch);
@@ -671,7 +671,7 @@ static ssize_t mp_write(struct tty_struct *tty, const unsigned char *buf, long u
671671
return ret;
672672
}
673673

674-
static int mp_write_room(struct tty_struct *tty)
674+
static unsigned int mp_write_room(struct tty_struct *tty)
675675
{
676676
struct sb_uart_state *state = tty->driver_data;
677677

0 commit comments

Comments
 (0)