diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-03-17 18:05:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:33 -0400 |
commit | 41bd72f9041def8e3334d3e3693862d078f5cb9a (patch) | |
tree | 6a63cccfedd49a8a6fd407dd275657fc52e1fb93 /include/linux/usb/serial.h | |
parent | f26788da3b342099d2b02d99ba1cb7f154d6ef7b (diff) |
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/usb/serial.h')
-rw-r--r-- | include/linux/usb/serial.h | 2 |
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); | |||
321 | extern void usb_serial_generic_release(struct usb_serial *serial); | 321 | extern void usb_serial_generic_release(struct usb_serial *serial); |
322 | extern int usb_serial_generic_register(int debug); | 322 | extern int usb_serial_generic_register(int debug); |
323 | extern void usb_serial_generic_deregister(void); | 323 | extern void usb_serial_generic_deregister(void); |
324 | extern void usb_serial_generic_resubmit_read_urb(struct usb_serial_port *port, | 324 | extern int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, |
325 | gfp_t mem_flags); | 325 | gfp_t mem_flags); |
326 | extern int usb_serial_handle_sysrq_char(struct tty_struct *tty, | 326 | extern int usb_serial_handle_sysrq_char(struct tty_struct *tty, |
327 | struct usb_serial_port *port, | 327 | struct usb_serial_port *port, |