]> Git Repo - linux.git/blobdiff - drivers/usb/serial/generic.c
arm64: avoid prototype warnings for syscalls
[linux.git] / drivers / usb / serial / generic.c
index d10aa3d2ee490976182483b21399806bfee768cd..15b6dee3a8e503d428bacaf54cf8ebc629b68ef7 100644 (file)
@@ -230,11 +230,11 @@ int usb_serial_generic_write(struct tty_struct *tty,
 }
 EXPORT_SYMBOL_GPL(usb_serial_generic_write);
 
-int usb_serial_generic_write_room(struct tty_struct *tty)
+unsigned int usb_serial_generic_write_room(struct tty_struct *tty)
 {
        struct usb_serial_port *port = tty->driver_data;
        unsigned long flags;
-       int room;
+       unsigned int room;
 
        if (!port->bulk_out_size)
                return 0;
@@ -243,15 +243,15 @@ int usb_serial_generic_write_room(struct tty_struct *tty)
        room = kfifo_avail(&port->write_fifo);
        spin_unlock_irqrestore(&port->lock, flags);
 
-       dev_dbg(&port->dev, "%s - returns %d\n", __func__, room);
+       dev_dbg(&port->dev, "%s - returns %u\n", __func__, room);
        return room;
 }
 
-int usb_serial_generic_chars_in_buffer(struct tty_struct *tty)
+unsigned int usb_serial_generic_chars_in_buffer(struct tty_struct *tty)
 {
        struct usb_serial_port *port = tty->driver_data;
        unsigned long flags;
-       int chars;
+       unsigned int chars;
 
        if (!port->bulk_out_size)
                return 0;
@@ -260,7 +260,7 @@ int usb_serial_generic_chars_in_buffer(struct tty_struct *tty)
        chars = kfifo_len(&port->write_fifo) + port->tx_bytes;
        spin_unlock_irqrestore(&port->lock, flags);
 
-       dev_dbg(&port->dev, "%s - returns %d\n", __func__, chars);
+       dev_dbg(&port->dev, "%s - returns %u\n", __func__, chars);
        return chars;
 }
 EXPORT_SYMBOL_GPL(usb_serial_generic_chars_in_buffer);
This page took 0.034471 seconds and 4 git commands to generate.