Himangi Saraogi
a0ffe4c090
[media] radio-si470x-usb: use USB API functions rather than constants
This patch introduces the use of the function usb_endpoint_is_int_in.
The Coccinelle semantic patch that makes these changes is as follows:
@@ struct usb_endpoint_descriptor *epd; @@
- ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
- \(USB_DIR_IN\|0x80\))
+ usb_endpoint_dir_in(epd)
@@ struct usb_endpoint_descriptor *epd; @@
- ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
- \(USB_ENDPOINT_XFER_INT\|3\))
+ usb_endpoint_xfer_int(epd)
@@ struct usb_endpoint_descriptor *epd; @@
- (usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd))
+ usb_endpoint_is_int_in(epd)
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2014-09-21 20:10:33 -03:00
..
2014-09-21 20:10:33 -03:00
2014-07-25 19:27:29 -03:00
2014-09-03 09:39:15 -03:00
2014-07-04 16:14:59 -03:00
2013-12-18 11:30:32 -02:00
2012-06-25 11:07:27 -03:00
2013-12-18 11:30:32 -02:00
2012-10-27 18:07:44 -02:00
2013-07-26 13:34:09 -03:00
2014-07-04 16:14:59 -03:00
2014-09-03 17:59:20 -03:00
2014-07-04 16:14:59 -03:00
2012-04-10 19:52:16 -03:00
2014-07-17 12:44:38 -03:00
2014-07-04 16:14:59 -03:00
2013-08-18 08:08:05 -03:00
2014-07-30 19:50:09 -03:00
2014-07-04 16:14:59 -03:00
2014-07-04 16:14:59 -03:00
2013-03-05 15:20:07 -03:00
2014-09-03 17:59:20 -03:00
2013-10-14 06:33:38 -03:00
2013-12-09 14:50:50 -02:00
2013-12-09 14:50:49 -02:00
2014-07-04 16:14:59 -03:00
2014-09-03 09:30:56 -03:00
2014-07-04 16:14:59 -03:00
2012-09-13 17:42:11 -03:00
2012-03-19 11:25:12 -03:00
2014-07-04 16:14:59 -03:00
2012-03-19 11:25:12 -03:00
2012-03-19 11:25:12 -03:00
2013-11-15 09:32:21 +09:00
2012-03-19 11:25:12 -03:00
2013-06-17 09:20:26 -03:00
2014-07-04 16:14:59 -03:00
2013-11-29 14:22:35 -02:00