linux-stable/drivers/staging/emxx_udc
Tapasweni Pathak 3f3efca9c5 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 <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-30 13:20:42 -07:00
..
emxx_udc.c staging: emxx_udc: use USB API functions rather than constants 2014-10-30 13:20:42 -07:00
emxx_udc.h staging: emxx_udc: remove check for CONFIG_MACH_EMGR 2014-09-08 13:48:01 -07:00
Kconfig
Makefile
TODO staging: emxx_udc: Add TODO file 2014-06-19 14:42:48 -07:00