summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/generic.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-10-29 13:56:25 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-31 00:19:30 +0400
commit428d9988557f0f26047af304cf1f3d130b06ed4d (patch)
tree8a19e898a4f7aed2a2d60ffbca7d77747a9e84d6 /drivers/usb/serial/generic.c
parenta4afff6b323a20ddf51d08dec0e2ef4fe8f228ee (diff)
downloadlinux-428d9988557f0f26047af304cf1f3d130b06ed4d.tar.xz
USB: serial: export usb_serial_generic_chars_in_buffer
Export generic chars_in_buffer implementation so it can be used in subdrivers in combination with checks of any hardware buffers. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/generic.c')
-rw-r--r--drivers/usb/serial/generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index 296612153ea2..2ea70a631996 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -262,6 +262,7 @@ int usb_serial_generic_chars_in_buffer(struct tty_struct *tty)
dev_dbg(&port->dev, "%s - returns %d\n", __func__, chars);
return chars;
}
+EXPORT_SYMBOL_GPL(usb_serial_generic_chars_in_buffer);
static int usb_serial_generic_submit_read_urb(struct usb_serial_port *port,
int index, gfp_t mem_flags)