Commit 63421e3f authored by Daniel Drake's avatar Daniel Drake

uru4000: fix compile against latest libusb

parent 76cbf212
......@@ -1145,16 +1145,16 @@ static int dev_init(struct fp_img_dev *dev, unsigned long driver_data)
ep = &iface_desc->endpoint[0];
if (ep->bEndpointAddress != EP_INTR
|| (ep->bmAttributes & LIBUSB_ENDPOINT_TYPE_MASK) !=
LIBUSB_ENDPOINT_TYPE_INTERRUPT) {
|| (ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) !=
LIBUSB_TRANSFER_TYPE_INTERRUPT) {
fp_err("unrecognised interrupt endpoint");
return -ENODEV;
}
ep = &iface_desc->endpoint[1];
if (ep->bEndpointAddress != EP_DATA
|| (ep->bmAttributes & LIBUSB_ENDPOINT_TYPE_MASK) !=
LIBUSB_ENDPOINT_TYPE_BULK) {
|| (ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) !=
LIBUSB_TRANSFER_TYPE_BULK) {
fp_err("unrecognised bulk endpoint");
return -ENODEV;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment