• Julia Lawall's avatar
    V4L/DVB (10185): Use negated usb_endpoint_xfer_control, etc · 2230c3c8
    Julia Lawall authored
    This patch extends 13417982 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: default avatarJulia Lawall <julia@diku.dk>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    2230c3c8
em28xx-cards.c 63.7 KB