diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-05-05 11:19:16 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-05-19 10:56:40 +0200 |
commit | 94cc7aeaf6c0cff0b8aeb7cb3579cee46b923560 (patch) | |
tree | 480c01d00d7ff2fd9bd25f7becd79625a8bd771b /drivers/usb/serial/usb-wwan.h | |
parent | Linux 5.13-rc2 (diff) | |
download | linux-94cc7aeaf6c0cff0b8aeb7cb3579cee46b923560.tar.xz linux-94cc7aeaf6c0cff0b8aeb7cb3579cee46b923560.zip |
USB: serial: make usb_serial_driver::write_room return uint
Line disciplines expect a positive value or zero returned from
tty->ops->write_room (invoked by tty_write_room). Both of them are being
updated to return an unsigned int. Switch also
usb_serial_driver::write_room and all its users.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
[ johan: amend commit message, drop unrelated comment change ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/usb-wwan.h')
-rw-r--r-- | drivers/usb/serial/usb-wwan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-wwan.h b/drivers/usb/serial/usb-wwan.h index b5331d03092f..6c7c9f3309b0 100644 --- a/drivers/usb/serial/usb-wwan.h +++ b/drivers/usb/serial/usb-wwan.h @@ -11,7 +11,7 @@ extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port); extern void usb_wwan_close(struct usb_serial_port *port); extern int usb_wwan_port_probe(struct usb_serial_port *port); extern void usb_wwan_port_remove(struct usb_serial_port *port); -extern int usb_wwan_write_room(struct tty_struct *tty); +extern unsigned int usb_wwan_write_room(struct tty_struct *tty); extern int usb_wwan_tiocmget(struct tty_struct *tty); extern int usb_wwan_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear); |