diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2011-02-04 00:01:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-04 14:46:57 -0500 |
commit | d25bc4db723a44c097268b466ff74bfba4bcc4f3 (patch) | |
tree | 95d78f5ccb66cec86e74a536637710c5f33b75a6 /drivers/usb/mon | |
parent | ac8d67417816fa7c568b24a8f2891eb02e6d0462 (diff) |
USB: usbmon: fix-up docs and text API for sparse ISO
This is based on a patch that Alan Stern wrote. It did the same simple
thing in both text and binary cases. In the same time, Marton and I
fixed the binary side properly, but this leaves the text to be fixed.
It is not very important due to low maxium data size of text, but
let's add it just for extra correctness.
The pseudocode is too much to keep fixed up, and we have real code
to be used as examples now, so let's drop it too.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/mon')
-rw-r--r-- | drivers/usb/mon/mon_text.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index a545d65f6e57..c302e1983c70 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -236,6 +236,9 @@ static void mon_text_event(struct mon_reader_text *rp, struct urb *urb, | |||
236 | fp++; | 236 | fp++; |
237 | dp++; | 237 | dp++; |
238 | } | 238 | } |
239 | /* Wasteful, but simple to understand: ISO 'C' is sparse. */ | ||
240 | if (ev_type == 'C') | ||
241 | ep->length = urb->transfer_buffer_length; | ||
239 | } | 242 | } |
240 | 243 | ||
241 | ep->setup_flag = mon_text_get_setup(ep, urb, ev_type, rp->r.m_bus); | 244 | ep->setup_flag = mon_text_get_setup(ep, urb, ev_type, rp->r.m_bus); |