diff options
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/serial.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 3fa68b615ac1..9254c80a1cf8 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
| @@ -21,7 +21,6 @@ | |||
| 21 | 21 | ||
| 22 | #define SERIAL_TTY_MAJOR 188 /* Nice legal number now */ | 22 | #define SERIAL_TTY_MAJOR 188 /* Nice legal number now */ |
| 23 | #define SERIAL_TTY_MINORS 254 /* loads of devices :) */ | 23 | #define SERIAL_TTY_MINORS 254 /* loads of devices :) */ |
| 24 | #define SERIAL_TTY_NO_MINOR 255 /* No minor was assigned */ | ||
| 25 | 24 | ||
| 26 | /* The maximum number of ports one device can grab at once */ | 25 | /* The maximum number of ports one device can grab at once */ |
| 27 | #define MAX_NUM_PORTS 8 | 26 | #define MAX_NUM_PORTS 8 |
| @@ -142,7 +141,6 @@ static inline void usb_set_serial_port_data(struct usb_serial_port *port, | |||
| 142 | * @dev: pointer to the struct usb_device for this device | 141 | * @dev: pointer to the struct usb_device for this device |
| 143 | * @type: pointer to the struct usb_serial_driver for this device | 142 | * @type: pointer to the struct usb_serial_driver for this device |
| 144 | * @interface: pointer to the struct usb_interface for this device | 143 | * @interface: pointer to the struct usb_interface for this device |
| 145 | * @minor: the starting minor number for this device | ||
| 146 | * @num_ports: the number of ports this device has | 144 | * @num_ports: the number of ports this device has |
| 147 | * @num_interrupt_in: number of interrupt in endpoints we have | 145 | * @num_interrupt_in: number of interrupt in endpoints we have |
| 148 | * @num_interrupt_out: number of interrupt out endpoints we have | 146 | * @num_interrupt_out: number of interrupt out endpoints we have |
| @@ -161,7 +159,7 @@ struct usb_serial { | |||
| 161 | unsigned char disconnected:1; | 159 | unsigned char disconnected:1; |
| 162 | unsigned char suspending:1; | 160 | unsigned char suspending:1; |
| 163 | unsigned char attached:1; | 161 | unsigned char attached:1; |
| 164 | unsigned char minor; | 162 | unsigned char minors_reserved:1; |
| 165 | unsigned char num_ports; | 163 | unsigned char num_ports; |
| 166 | unsigned char num_port_pointers; | 164 | unsigned char num_port_pointers; |
| 167 | char num_interrupt_in; | 165 | char num_interrupt_in; |
| @@ -321,7 +319,7 @@ static inline void usb_serial_console_disconnect(struct usb_serial *serial) {} | |||
| 321 | #endif | 319 | #endif |
| 322 | 320 | ||
| 323 | /* Functions needed by other parts of the usbserial core */ | 321 | /* Functions needed by other parts of the usbserial core */ |
| 324 | extern struct usb_serial *usb_serial_get_by_index(unsigned int minor); | 322 | extern struct usb_serial_port *usb_serial_port_get_by_minor(unsigned int minor); |
| 325 | extern void usb_serial_put(struct usb_serial *serial); | 323 | extern void usb_serial_put(struct usb_serial *serial); |
| 326 | extern int usb_serial_generic_open(struct tty_struct *tty, | 324 | extern int usb_serial_generic_open(struct tty_struct *tty, |
| 327 | struct usb_serial_port *port); | 325 | struct usb_serial_port *port); |
