diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-07-30 17:07:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:55:00 -0400 |
commit | 5e60a16139c2a48b9876b0ff910671eee5fb32ec (patch) | |
tree | c85abc5ea81f90cef975368dab0b7059c53f563b /include/linux/usb.h | |
parent | fea3409112a93581db18da4c4332c8bf8d68af6b (diff) |
USB: avoid using urb->pipe in usbcore
This patch (as946) eliminates many of the uses of urb->pipe in
usbcore. Unfortunately there will have to be a significant API
change, affecting all USB drivers, before we can remove it entirely.
This patch contents itself with changing only the interface to
usb_buffer_map_sg() and friends: The pipe argument is replaced with a
direction flag. That can be done easily because those routines get
used in only one place.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 9d08f5a5ba76..019ae963a9fe 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -1422,13 +1422,13 @@ void usb_buffer_unmap (struct urb *urb); | |||
1422 | #endif | 1422 | #endif |
1423 | 1423 | ||
1424 | struct scatterlist; | 1424 | struct scatterlist; |
1425 | int usb_buffer_map_sg(const struct usb_device *dev, unsigned pipe, | 1425 | int usb_buffer_map_sg(const struct usb_device *dev, int is_in, |
1426 | struct scatterlist *sg, int nents); | 1426 | struct scatterlist *sg, int nents); |
1427 | #if 0 | 1427 | #if 0 |
1428 | void usb_buffer_dmasync_sg(const struct usb_device *dev, unsigned pipe, | 1428 | void usb_buffer_dmasync_sg(const struct usb_device *dev, int is_in, |
1429 | struct scatterlist *sg, int n_hw_ents); | 1429 | struct scatterlist *sg, int n_hw_ents); |
1430 | #endif | 1430 | #endif |
1431 | void usb_buffer_unmap_sg(const struct usb_device *dev, unsigned pipe, | 1431 | void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in, |
1432 | struct scatterlist *sg, int n_hw_ents); | 1432 | struct scatterlist *sg, int n_hw_ents); |
1433 | 1433 | ||
1434 | /*-------------------------------------------------------------------* | 1434 | /*-------------------------------------------------------------------* |