Commit e112ce43 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by David S. Miller

isdn: hisax: st5481_usb: use usb_fill_int_urb()

Using usb_fill_int_urb() helps to find code which initializes an
URB. A grep for members of the struct (like ->complete) reveal lots
of other things, too.

Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dd3adc4e
...@@ -408,15 +408,10 @@ fill_isoc_urb(struct urb *urb, struct usb_device *dev, ...@@ -408,15 +408,10 @@ fill_isoc_urb(struct urb *urb, struct usb_device *dev,
{ {
int k; int k;
urb->dev = dev; usb_fill_int_urb(urb, dev, pipe, buf, num_packets * packet_size,
urb->pipe = pipe; complete, context, 1);
urb->interval = 1;
urb->transfer_buffer = buf;
urb->number_of_packets = num_packets; urb->number_of_packets = num_packets;
urb->transfer_buffer_length = num_packets * packet_size;
urb->actual_length = 0;
urb->complete = complete;
urb->context = context;
urb->transfer_flags = URB_ISO_ASAP; urb->transfer_flags = URB_ISO_ASAP;
for (k = 0; k < num_packets; k++) { for (k = 0; k < num_packets; k++) {
urb->iso_frame_desc[k].offset = packet_size * k; urb->iso_frame_desc[k].offset = packet_size * k;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment