|
|
|
@ -373,8 +373,8 @@ int usb_setup_ehci_gadget(struct ehci_ctrl **ctlrp) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* returns 0 if no match, 1 if match */ |
|
|
|
|
int usb_match_device(const struct usb_device_descriptor *desc, |
|
|
|
|
const struct usb_device_id *id) |
|
|
|
|
static int usb_match_device(const struct usb_device_descriptor *desc, |
|
|
|
|
const struct usb_device_id *id) |
|
|
|
|
{ |
|
|
|
|
if ((id->match_flags & USB_DEVICE_ID_MATCH_VENDOR) && |
|
|
|
|
id->idVendor != le16_to_cpu(desc->idVendor)) |
|
|
|
@ -410,9 +410,9 @@ int usb_match_device(const struct usb_device_descriptor *desc, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* returns 0 if no match, 1 if match */ |
|
|
|
|
int usb_match_one_id_intf(const struct usb_device_descriptor *desc, |
|
|
|
|
const struct usb_interface_descriptor *int_desc, |
|
|
|
|
const struct usb_device_id *id) |
|
|
|
|
static int usb_match_one_id_intf(const struct usb_device_descriptor *desc, |
|
|
|
|
const struct usb_interface_descriptor *int_desc, |
|
|
|
|
const struct usb_device_id *id) |
|
|
|
|
{ |
|
|
|
|
/* The interface class, subclass, protocol and number should never be
|
|
|
|
|
* checked for a match if the device class is Vendor Specific, |
|
|
|
@ -445,9 +445,9 @@ int usb_match_one_id_intf(const struct usb_device_descriptor *desc, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* returns 0 if no match, 1 if match */ |
|
|
|
|
int usb_match_one_id(struct usb_device_descriptor *desc, |
|
|
|
|
struct usb_interface_descriptor *int_desc, |
|
|
|
|
const struct usb_device_id *id) |
|
|
|
|
static int usb_match_one_id(struct usb_device_descriptor *desc, |
|
|
|
|
struct usb_interface_descriptor *int_desc, |
|
|
|
|
const struct usb_device_id *id) |
|
|
|
|
{ |
|
|
|
|
if (!usb_match_device(desc, id)) |
|
|
|
|
return 0; |
|
|
|
@ -680,7 +680,7 @@ int usb_detect_change(void) |
|
|
|
|
return change; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int usb_child_post_bind(struct udevice *dev) |
|
|
|
|
static int usb_child_post_bind(struct udevice *dev) |
|
|
|
|
{ |
|
|
|
|
struct usb_dev_platdata *plat = dev_get_parent_platdata(dev); |
|
|
|
|
int val; |
|
|
|
|