[PATCH v2 2/2] Staging: ft1000: ft1000-usb: use USB API functions rather than constants

2015-08-04 Thread Shraddha Barke
This patch introduces the use of the function usb_endpoint_type. The Coccinelle semantic patch that makes these changes is as follows: @@ struct usb_endpoint_descriptor *epd; @@ - (epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) + usb_endpoint_type(epd) Signed-off-by: Shraddha Barke ---

Re: [PATCH v2 2/2] Staging: ft1000: ft1000-usb: use USB API functions rather than constants

2015-08-05 Thread Greg Kroah-Hartman
On Wed, Aug 05, 2015 at 03:18:04AM +0530, Shraddha Barke wrote: > This patch introduces the use of the function usb_endpoint_type. > > The Coccinelle semantic patch that makes these changes is as follows: > > @@ struct usb_endpoint_descriptor *epd; @@ > > - (epd->bmAttributes & \(USB_ENDPOINT_XF