From: Himangi Saraogi Date: Sat, 23 Aug 2014 23:51:16 +0000 (+0530) Subject: usb: gadget: udc: use USB API functions rather than constants X-Git-Tag: fixes-for-v3.18-merge-window~16^2~118^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8adc3d1d852be653905b24cd8efcaee342b96ae;p=pandora-kernel.git 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 Acked-by: Julia Lawall Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed