aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision-video.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-01-03 14:53:10 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-07 19:18:56 -0500
commit2230c3c803a5f3a84f7c3bd86b8159a551edc8ca (patch)
tree3642fade950eb5040c6239708942680af51b45dc /drivers/media/video/usbvision/usbvision-video.c
parent439b72b69e4992e9ec34b74304f0fa95623934eb (diff)
V4L/DVB (10185): Use negated usb_endpoint_xfer_control, etc
This patch extends 134179823b3ca9c8b98e0631906459dbb022ff9b by using usb_endpoint_xfer_control, usb_endpoint_xfer_isoc, usb_endpoint_xfer_bulk, and usb_endpoint_xfer_int in the negated case as well. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ struct usb_endpoint_descriptor *epd; @@ - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_CONTROL\|0\)) + !usb_endpoint_xfer_control(epd) @@ struct usb_endpoint_descriptor *epd; @@ - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_ISOC\|1\)) + !usb_endpoint_xfer_isoc(epd) @@ struct usb_endpoint_descriptor *epd; @@ - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_BULK\|2\)) + !usb_endpoint_xfer_bulk(epd) @@ struct usb_endpoint_descriptor *epd; @@ - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_INT\|3\)) + !usb_endpoint_xfer_int(epd) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/usbvision/usbvision-video.c')
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index 2be5e47ed08..2622de003a4 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -1674,8 +1674,7 @@ static int __devinit usbvision_probe(struct usb_interface *intf,
1674 interface = &dev->actconfig->interface[ifnum]->altsetting[0]; 1674 interface = &dev->actconfig->interface[ifnum]->altsetting[0];
1675 } 1675 }
1676 endpoint = &interface->endpoint[1].desc; 1676 endpoint = &interface->endpoint[1].desc;
1677 if (usb_endpoint_type(endpoint) != 1677 if (!usb_endpoint_xfer_isoc(endpoint)) {
1678 USB_ENDPOINT_XFER_ISOC) {
1679 err("%s: interface %d. has non-ISO endpoint!", 1678 err("%s: interface %d. has non-ISO endpoint!",
1680 __func__, ifnum); 1679 __func__, ifnum);
1681 err("%s: Endpoint attributes %d", 1680 err("%s: Endpoint attributes %d",