diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-03-21 07:36:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-25 16:50:51 -0400 |
commit | befefcda4bddc52d29248931801961a72aeef28b (patch) | |
tree | b8b47011f4321938a599ad8622944d786c33d4f4 /include | |
parent | c371de14b9a23aadb57accab0ca2e5dd28de7f16 (diff) |
USB: serial: add generic get_icount implementation
Add generic get_icount implementation that subdrivers relying on the
port interrupt counters can use.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/serial.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h index 47c8d2c506c8..c786ee7fca8f 100644 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h | |||
@@ -335,6 +335,8 @@ extern void usb_serial_generic_throttle(struct tty_struct *tty); | |||
335 | extern void usb_serial_generic_unthrottle(struct tty_struct *tty); | 335 | extern void usb_serial_generic_unthrottle(struct tty_struct *tty); |
336 | extern int usb_serial_generic_tiocmiwait(struct tty_struct *tty, | 336 | extern int usb_serial_generic_tiocmiwait(struct tty_struct *tty, |
337 | unsigned long arg); | 337 | unsigned long arg); |
338 | extern int usb_serial_generic_get_icount(struct tty_struct *tty, | ||
339 | struct serial_icounter_struct *icount); | ||
338 | extern int usb_serial_generic_register(void); | 340 | extern int usb_serial_generic_register(void); |
339 | extern void usb_serial_generic_deregister(void); | 341 | extern void usb_serial_generic_deregister(void); |
340 | extern int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, | 342 | extern int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, |