]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - ubuntu/xr-usb-serial/xr_usb_serial_common.c
UBUNTU: SAUCE: xr-usb-serial: update return code for xr_usb_serial_tty_write_room...
[mirror_ubuntu-jammy-kernel.git] / ubuntu / xr-usb-serial / xr_usb_serial_common.c
index fc5f6fd0d219fdad97385c34f0b20d0471a1710f..c85df451d61581282b445a3a4ab698d2b04809db 100644 (file)
@@ -733,7 +733,7 @@ static int xr_usb_serial_tty_write(struct tty_struct *tty,
        return count;
 }
 
-static int xr_usb_serial_tty_write_room(struct tty_struct *tty)
+static unsigned int xr_usb_serial_tty_write_room(struct tty_struct *tty)
 {
        struct xr_usb_serial *xr_usb_serial = tty->driver_data;
        /*
@@ -743,7 +743,7 @@ static int xr_usb_serial_tty_write_room(struct tty_struct *tty)
        return xr_usb_serial_wb_is_avail(xr_usb_serial) ? xr_usb_serial->writesize : 0;
 }
 
-static int xr_usb_serial_tty_chars_in_buffer(struct tty_struct *tty)
+static unsigned int xr_usb_serial_tty_chars_in_buffer(struct tty_struct *tty)
 {
        struct xr_usb_serial *xr_usb_serial = tty->driver_data;
        /*