USB: Change the scatterlist type in struct urb
authorMatthew Wilcox <matthew@wil.cx>
Sat, 1 May 2010 18:20:01 +0000 (12:20 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:41 +0000 (13:21 -0700)
commit910f8d0cede74beff1eee93cf9cf2a28d7600e66
tree663cd91c3d4ca2a71937b0dcaad51b02cae3c9c6
parent1e429018b646bdf903554e92ead1cda96cc552dc
USB: Change the scatterlist type in struct urb

Change the type of the URB's 'sg' pointer from a usb_sg_request to
a scatterlist.  This allows drivers to submit scatter-gather lists
without using the usb_sg_wait() interface.  It has the added benefit
of removing the typecasts that were added as part of patch as1368 (and
slightly decreasing the number of pointer dereferences).

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c
drivers/usb/core/message.c
drivers/usb/host/ehci-q.c
drivers/usb/host/whci/qset.c
drivers/usb/host/xhci-ring.c
drivers/usb/mon/mon_bin.c
drivers/usb/mon/mon_text.c
include/linux/usb.h