diff options
Diffstat (limited to 'include/linux/usb/serial.h')
-rw-r--r-- | include/linux/usb/serial.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index ce911ebf91e8..0a458b861933 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/kref.h> | 16 | #include <linux/kref.h> |
17 | #include <linux/mutex.h> | 17 | #include <linux/mutex.h> |
18 | #include <linux/sysrq.h> | 18 | #include <linux/sysrq.h> |
19 | #include <linux/kfifo.h> | ||
19 | 20 | ||
20 | #define SERIAL_TTY_MAJOR 188 /* Nice legal number now */ | 21 | #define SERIAL_TTY_MAJOR 188 /* Nice legal number now */ |
21 | #define SERIAL_TTY_MINORS 254 /* loads of devices :) */ | 22 | #define SERIAL_TTY_MINORS 254 /* loads of devices :) */ |
@@ -39,8 +40,6 @@ enum port_dev_state { | |||
39 | * @serial: pointer back to the struct usb_serial owner of this port. | 40 | * @serial: pointer back to the struct usb_serial owner of this port. |
40 | * @port: pointer to the corresponding tty_port for this port. | 41 | * @port: pointer to the corresponding tty_port for this port. |
41 | * @lock: spinlock to grab when updating portions of this structure. | 42 | * @lock: spinlock to grab when updating portions of this structure. |
42 | * @mutex: mutex used to synchronize serial_open() and serial_close() | ||
43 | * access for this port. | ||
44 | * @number: the number of the port (the minor number). | 43 | * @number: the number of the port (the minor number). |
45 | * @interrupt_in_buffer: pointer to the interrupt in buffer for this port. | 44 | * @interrupt_in_buffer: pointer to the interrupt in buffer for this port. |
46 | * @interrupt_in_urb: pointer to the interrupt in struct urb for this port. | 45 | * @interrupt_in_urb: pointer to the interrupt in struct urb for this port. |
@@ -77,7 +76,6 @@ struct usb_serial_port { | |||
77 | struct usb_serial *serial; | 76 | struct usb_serial *serial; |
78 | struct tty_port port; | 77 | struct tty_port port; |
79 | spinlock_t lock; | 78 | spinlock_t lock; |
80 | struct mutex mutex; | ||
81 | unsigned char number; | 79 | unsigned char number; |
82 | 80 | ||
83 | unsigned char *interrupt_in_buffer; | 81 | unsigned char *interrupt_in_buffer; |
@@ -97,7 +95,7 @@ struct usb_serial_port { | |||
97 | unsigned char *bulk_out_buffer; | 95 | unsigned char *bulk_out_buffer; |
98 | int bulk_out_size; | 96 | int bulk_out_size; |
99 | struct urb *write_urb; | 97 | struct urb *write_urb; |
100 | struct kfifo *write_fifo; | 98 | struct kfifo write_fifo; |
101 | int write_urb_busy; | 99 | int write_urb_busy; |
102 | __u8 bulk_out_endpointAddress; | 100 | __u8 bulk_out_endpointAddress; |
103 | 101 | ||
@@ -353,14 +351,11 @@ static inline void usb_serial_debug_data(int debug, | |||
353 | 351 | ||
354 | /* Use our own dbg macro */ | 352 | /* Use our own dbg macro */ |
355 | #undef dbg | 353 | #undef dbg |
356 | #define dbg(format, arg...) \ | 354 | #define dbg(format, arg...) \ |
357 | do { \ | 355 | do { \ |
358 | if (debug) \ | 356 | if (debug) \ |
359 | printk(KERN_DEBUG "%s: " format "\n" , __FILE__ , \ | 357 | printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg); \ |
360 | ## arg); \ | 358 | } while (0) |
361 | } while (0) | ||
362 | |||
363 | |||
364 | 359 | ||
365 | #endif /* __LINUX_USB_SERIAL_H */ | 360 | #endif /* __LINUX_USB_SERIAL_H */ |
366 | 361 | ||