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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1e429018b6
commit
910f8d0ced
@@ -159,7 +159,7 @@ static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb,
|
||||
if (src == NULL)
|
||||
return 'Z'; /* '0' would be not as pretty. */
|
||||
} else {
|
||||
struct scatterlist *sg = urb->sg->sg;
|
||||
struct scatterlist *sg = urb->sg;
|
||||
|
||||
if (PageHighMem(sg_page(sg)))
|
||||
return 'D';
|
||||
|
Reference in New Issue
Block a user