diff options
author | Aleksey Babahin <tamerlan311@gmail.com> | 2012-03-19 16:46:32 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-10 16:30:37 -0400 |
commit | 28a4b6a690dfc000e86c8e02a1e1c1a9832252ec (patch) | |
tree | 9ef34a6d44c7ad3c7500ad79e2b0a888cc400e5b /drivers/usb/serial/metro-usb.c | |
parent | 810ec78e9a5d7de845598e8816370bcb2ccabf32 (diff) |
USB: serial: metro-usb: dummy implement write_int_callback() function.
This function is never called now. Because we don`t send much data
to the device, only one byte via usb_interrupt_msg(). That doesn't require
callback function. But without declaration of write_int_callback inside
the struct usb_serial_driver, the usb_serial_probe doesn't initialize
endpoint address for the interrupt out pipe(interrupt_out_endpointAddress).
This endpoint is necessary for sending data via usb_interrupt_msg()
function.
Signed-off-by: Aleksey Babahin <tamerlan311@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/metro-usb.c')
-rw-r--r-- | drivers/usb/serial/metro-usb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 08d16e8c002d..92b6f85ab4b9 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c | |||
@@ -136,6 +136,14 @@ exit: | |||
136 | __func__, result); | 136 | __func__, result); |
137 | } | 137 | } |
138 | 138 | ||
139 | static void metrousb_write_int_callback(struct urb *urb) | ||
140 | { | ||
141 | struct usb_serial_port *port = urb->context; | ||
142 | |||
143 | dev_warn(&port->dev, "%s not implemented yet.\n", | ||
144 | __func__); | ||
145 | } | ||
146 | |||
139 | static void metrousb_cleanup(struct usb_serial_port *port) | 147 | static void metrousb_cleanup(struct usb_serial_port *port) |
140 | { | 148 | { |
141 | dev_dbg(&port->dev, "%s\n", __func__); | 149 | dev_dbg(&port->dev, "%s\n", __func__); |
@@ -377,6 +385,7 @@ static struct usb_serial_driver metrousb_device = { | |||
377 | .open = metrousb_open, | 385 | .open = metrousb_open, |
378 | .close = metrousb_cleanup, | 386 | .close = metrousb_cleanup, |
379 | .read_int_callback = metrousb_read_int_callback, | 387 | .read_int_callback = metrousb_read_int_callback, |
388 | .write_int_callback = metrousb_write_int_callback, | ||
380 | .attach = metrousb_startup, | 389 | .attach = metrousb_startup, |
381 | .release = metrousb_shutdown, | 390 | .release = metrousb_shutdown, |
382 | .throttle = metrousb_throttle, | 391 | .throttle = metrousb_throttle, |