diff options
| author | Tapasweni Pathak <[email protected]> | 2014-10-30 22:03:36 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-10-30 13:20:42 -0700 |
| commit | 3f3efca9c57fd5c12ac8d9e151db5bbbaec2d716 (patch) | |
| tree | 644681a1cf4e00e785ddeb3701f75ee671f1f7c9 /tools | |
| parent | 3cfab18ce55282a85e2c7e5db15c5daf065efdb4 (diff) | |
staging: emxx_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)
Build Tested it.
Signed-off-by: Tapasweni Pathak <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions