summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-08-15 18:23:24 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-08-25 22:17:42 +0200
commit7bb75da1717296f5850e1a9a36896a52fd07a26a (patch)
tree297f179556971a5c9d7a7d1bbfbd1a2148883dbd /kernel
parentatmel_cs: Remove typedef local_info_t (diff)
downloadlinux-7bb75da1717296f5850e1a9a36896a52fd07a26a.tar.xz
linux-7bb75da1717296f5850e1a9a36896a52fd07a26a.zip
orinoco_usb: use USB API functions rather than constants
This patch introduces the use of the functions usb_endpoint_is_bulk_in(epd) and usb_endpoint_is_bulk_out(epd). The semantic patch that makes these changes is as follows: @@ struct usb_endpoint_descriptor *epd; @@ - ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) == - \(USB_ENDPOINT_XFER_BULK\|2\)) + usb_endpoint_xfer_bulk(epd) @@ struct usb_endpoint_descriptor *epd; @@ - ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) == - \(USB_DIR_IN\|0x80\)) + usb_endpoint_dir_in(epd) @@ struct usb_endpoint_descriptor *epd; @@ - ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) == - \(USB_DIR_OUT\|0\)) + usb_endpoint_dir_out(epd) @@ struct usb_endpoint_descriptor *epd; @@ - (usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd)) + usb_endpoint_is_bulk_in(epd) @@ struct usb_endpoint_descriptor *epd; @@ - (usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd)) + usb_endpoint_is_bulk_out(epd) Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions