ChangeSet 1.855.9.1, 2002/10/31 17:20:30-08:00, greg@kroah.com [PATCH] USB: scanner fixes due to changes to USB structures. diff -Nru a/drivers/usb/image/scanner.c b/drivers/usb/image/scanner.c --- a/drivers/usb/image/scanner.c Tue Nov 5 16:10:58 2002 +++ b/drivers/usb/image/scanner.c Tue Nov 5 16:10:58 2002 @@ -840,7 +840,7 @@ struct usb_device *dev = interface_to_usbdev (intf); struct scn_usb_data *scn; struct usb_host_interface *interface; - struct usb_endpoint_descriptor *endpoint; + struct usb_host_endpoint *endpoint; int ep_cnt; int ix; @@ -911,7 +911,7 @@ } interface = intf->altsetting; - endpoint = &interface->endpoint[0].desc; + endpoint = &interface->endpoint[0]; /* * Start checking for two bulk endpoints OR two bulk endpoints *and* one diff -Nru a/drivers/usb/image/scanner.h b/drivers/usb/image/scanner.h --- a/drivers/usb/image/scanner.h Tue Nov 5 16:10:58 2002 +++ b/drivers/usb/image/scanner.h Tue Nov 5 16:10:58 2002 @@ -211,10 +211,10 @@ MODULE_DEVICE_TABLE (usb, scanner_device_ids); -#define IS_EP_BULK(ep) ((ep).bmAttributes == USB_ENDPOINT_XFER_BULK ? 1 : 0) -#define IS_EP_BULK_IN(ep) (IS_EP_BULK(ep) && ((ep).bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) -#define IS_EP_BULK_OUT(ep) (IS_EP_BULK(ep) && ((ep).bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT) -#define IS_EP_INTR(ep) ((ep).bmAttributes == USB_ENDPOINT_XFER_INT ? 1 : 0) +#define IS_EP_BULK(ep) ((ep).desc.bmAttributes == USB_ENDPOINT_XFER_BULK ? 1 : 0) +#define IS_EP_BULK_IN(ep) (IS_EP_BULK(ep) && ((ep).desc.bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) +#define IS_EP_BULK_OUT(ep) (IS_EP_BULK(ep) && ((ep).desc.bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT) +#define IS_EP_INTR(ep) ((ep).desc.bmAttributes == USB_ENDPOINT_XFER_INT ? 1 : 0) #define USB_SCN_MINOR(X) minor((X)->i_rdev) - SCN_BASE_MNR