|
@@ -955,8 +955,7 @@ static int qcm_probe(struct usb_interface *intf,
|
|
|
for (j=0; j < interface->desc.bNumEndpoints; j++) {
|
|
|
endpoint = &interface->endpoint[j].desc;
|
|
|
|
|
|
- if ((endpoint->bEndpointAddress &
|
|
|
- USB_ENDPOINT_DIR_MASK) != USB_DIR_IN)
|
|
|
+ if (usb_endpoint_dir_out(endpoint))
|
|
|
continue; /* not input then not good */
|
|
|
|
|
|
buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
|
|
@@ -965,9 +964,7 @@ static int qcm_probe(struct usb_interface *intf,
|
|
|
continue; /* 0 pkt size is not what we want */
|
|
|
}
|
|
|
|
|
|
- if ((endpoint->bmAttributes &
|
|
|
- USB_ENDPOINT_XFERTYPE_MASK) ==
|
|
|
- USB_ENDPOINT_XFER_ISOC) {
|
|
|
+ if (usb_endpoint_xfer_isoc(endpoint)) {
|
|
|
video_ep = endpoint->bEndpointAddress;
|
|
|
/* break out of the search */
|
|
|
goto good_videoep;
|