From 2d9b0c8f10ff99208ad5aa5b56bbc0d814efa3b2 Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Wed, 13 Oct 2021 12:05:57 +0200 Subject: [PATCH] Revert "UBUNTU: SAUCE: xr-usb-serial: update return code for xr_usb_serial_tty_write_room() and xr_usb_serial_tty_chars_in_buffer()" This reverts commit bc56e771df8b9b2a99b5a0e89ce0e35bb28b9c89. Signed-off-by: Paolo Pisati --- ubuntu/xr-usb-serial/xr_usb_serial_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu/xr-usb-serial/xr_usb_serial_common.c b/ubuntu/xr-usb-serial/xr_usb_serial_common.c index c85df451d615..fc5f6fd0d219 100644 --- a/ubuntu/xr-usb-serial/xr_usb_serial_common.c +++ b/ubuntu/xr-usb-serial/xr_usb_serial_common.c @@ -733,7 +733,7 @@ static int xr_usb_serial_tty_write(struct tty_struct *tty, return count; } -static unsigned int xr_usb_serial_tty_write_room(struct tty_struct *tty) +static 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 unsigned 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 unsigned int xr_usb_serial_tty_chars_in_buffer(struct tty_struct *tty) +static int xr_usb_serial_tty_chars_in_buffer(struct tty_struct *tty) { struct xr_usb_serial *xr_usb_serial = tty->driver_data; /* -- 2.39.5