aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-08-24 05:21:16 +0530
committerFelipe Balbi <balbi@ti.com>2014-08-29 15:53:46 -0500
commitb8adc3d1d852be653905b24cd8efcaee342b96ae (patch)
tree9a5dc24e7435e37d37b3d98bf17c1d79ad8d457c /include/linux/platform_data
parentusbtest: Add interrupt EP testcases (diff)
downloadlinux-dev-b8adc3d1d852be653905b24cd8efcaee342b96ae.tar.xz
linux-dev-b8adc3d1d852be653905b24cd8efcaee342b96ae.zip
usb: gadget: udc: use USB API functions rather than constants
This patch introduces the use of the functions usb_endpoint_type and usb_endpoint_num. The Coccinelle semantic patch that makes these changes is as follows: @@ struct usb_endpoint_descriptor *epd; @@ - (epd->bEndpointAddress & \(USB_ENDPOINT_NUMBER_MASK\|0x0f\)) + usb_endpoint_num(epd) @@ struct usb_endpoint_descriptor *epd; @@ - (epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) + usb_endpoint_type(epd) Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions