summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-03-17 23:05:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 13:21:33 -0700
commit41bd72f9041def8e3334d3e3693862d078f5cb9a (patch)
tree6a63cccfedd49a8a6fd407dd275657fc52e1fb93 /include/linux
parentf26788da3b342099d2b02d99ba1cb7f154d6ef7b (diff)
downloadlinux-41bd72f9041def8e3334d3e3693862d078f5cb9a.tar.gz
linux-41bd72f9041def8e3334d3e3693862d078f5cb9a.tar.bz2
linux-41bd72f9041def8e3334d3e3693862d078f5cb9a.zip
USB: serial: refactor read urb submission in generic driver
Use the already exported function for submitting the read urb associated with a usb_serial_port. Make sure it returns the result of usb_submit_urb and rename to the more descriptive usb_serial_generic_submit_read_urb. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/serial.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h
index ab311dab3383..53f6dc65e87e 100644
--- a/include/linux/usb/serial.h
+++ b/include/linux/usb/serial.h
@@ -321,7 +321,7 @@ extern void usb_serial_generic_disconnect(struct usb_serial *serial);
extern void usb_serial_generic_release(struct usb_serial *serial);
extern int usb_serial_generic_register(int debug);
extern void usb_serial_generic_deregister(void);
-extern void usb_serial_generic_resubmit_read_urb(struct usb_serial_port *port,
+extern int usb_serial_generic_submit_read_urb(struct usb_serial_port *port,
gfp_t mem_flags);
extern int usb_serial_handle_sysrq_char(struct tty_struct *tty,
struct usb_serial_port *port,