Skip to content

Commit 7f0ee24

Browse files
MingcongBaiKexyBiscuit
authored andcommitted
AOSCOS: staging: sb105x: revise type of mp_write() as ssize_t
Per commit 9571396 ("tty: make tty_operations::write()'s count size_t"), member function `write()' in `struct tty_operations' was revised from type `int' to type `ssize_t'. 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 bca334f commit 7f0ee24

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
@@ -39,7 +39,7 @@ static inline int __mp_put_char(struct sb_uart_port *port, struct circ_buf *circ
3939
static int mp_put_char(struct tty_struct *tty, unsigned char ch);
4040

4141
static void mp_put_chars(struct tty_struct *tty);
42-
static int mp_write(struct tty_struct *tty, const unsigned char *buf, int count);
42+
static ssize_t mp_write(struct tty_struct *tty, const unsigned char *buf, long unsigned int count);
4343
static 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);
@@ -637,7 +637,7 @@ static void mp_put_chars(struct tty_struct *tty)
637637
mp_start(tty);
638638
}
639639

640-
static int mp_write(struct tty_struct *tty, const unsigned char *buf, int count)
640+
static ssize_t mp_write(struct tty_struct *tty, const unsigned char *buf, long unsigned int count)
641641
{
642642
struct sb_uart_state *state = tty->driver_data;
643643
struct sb_uart_port *port;

0 commit comments

Comments
 (0)