uru4000: fix compile against latest libusb
This commit is contained in:
parent
76cbf21223
commit
63421e3fd6
1 changed files with 4 additions and 4 deletions
|
@ -1145,16 +1145,16 @@ static int dev_init(struct fp_img_dev *dev, unsigned long driver_data)
|
||||||
|
|
||||||
ep = &iface_desc->endpoint[0];
|
ep = &iface_desc->endpoint[0];
|
||||||
if (ep->bEndpointAddress != EP_INTR
|
if (ep->bEndpointAddress != EP_INTR
|
||||||
|| (ep->bmAttributes & LIBUSB_ENDPOINT_TYPE_MASK) !=
|
|| (ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) !=
|
||||||
LIBUSB_ENDPOINT_TYPE_INTERRUPT) {
|
LIBUSB_TRANSFER_TYPE_INTERRUPT) {
|
||||||
fp_err("unrecognised interrupt endpoint");
|
fp_err("unrecognised interrupt endpoint");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
ep = &iface_desc->endpoint[1];
|
ep = &iface_desc->endpoint[1];
|
||||||
if (ep->bEndpointAddress != EP_DATA
|
if (ep->bEndpointAddress != EP_DATA
|
||||||
|| (ep->bmAttributes & LIBUSB_ENDPOINT_TYPE_MASK) !=
|
|| (ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) !=
|
||||||
LIBUSB_ENDPOINT_TYPE_BULK) {
|
LIBUSB_TRANSFER_TYPE_BULK) {
|
||||||
fp_err("unrecognised bulk endpoint");
|
fp_err("unrecognised bulk endpoint");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue