diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-02 12:51:15 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-03-16 10:13:37 +0100 |
commit | ef88f33fc1ee0a12a1e5eee7e4f70b7743100a19 (patch) | |
tree | 6611aadb6396fe174a3c3d657cef11391266c65e /include/linux/usb | |
parent | c2fef4564cae387c2f724a95350084c2e9371250 (diff) | |
download | linux-stable-ef88f33fc1ee0a12a1e5eee7e4f70b7743100a19.tar.gz linux-stable-ef88f33fc1ee0a12a1e5eee7e4f70b7743100a19.tar.bz2 linux-stable-ef88f33fc1ee0a12a1e5eee7e4f70b7743100a19.zip |
USB: serial: clean up endpoint and port-counter types
Use unsigned-char type for the endpoint and port counters.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/serial.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 704a1ab8240c..85b475933848 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h @@ -159,10 +159,10 @@ struct usb_serial { unsigned char minors_reserved:1; unsigned char num_ports; unsigned char num_port_pointers; - char num_interrupt_in; - char num_interrupt_out; - char num_bulk_in; - char num_bulk_out; + unsigned char num_interrupt_in; + unsigned char num_interrupt_out; + unsigned char num_bulk_in; + unsigned char num_bulk_out; struct usb_serial_port *port[MAX_NUM_PORTS]; struct kref kref; struct mutex disc_mutex; @@ -227,13 +227,14 @@ static inline void usb_set_serial_data(struct usb_serial *serial, void *data) struct usb_serial_driver { const char *description; const struct usb_device_id *id_table; - char num_ports; struct list_head driver_list; struct device_driver driver; struct usb_driver *usb_driver; struct usb_dynids dynids; + unsigned char num_ports; + size_t bulk_in_size; size_t bulk_out_size; |