diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_usb.c | 2 | ||||
-rw-r--r-- | common/usb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_usb.c b/common/cmd_usb.c index 423a29f..c95f61b 100644 --- a/common/cmd_usb.c +++ b/common/cmd_usb.c @@ -310,7 +310,7 @@ void usb_show_tree_graph(struct usb_device *dev, char *pre) pre[index] = 0; printf(" %s (%s, %dmA)\n", usb_get_class_desc( dev->config.if_desc[0].bInterfaceClass), - dev->slow ? "1.5MBit/s" : "12MBit/s", + dev->speed ? "1.5MBit/s" : "12MBit/s", dev->config.MaxPower * 2); if (strlen(dev->mf) || strlen(dev->prod) || strlen(dev->serial)) printf(" %s %s %s %s\n", pre, dev->mf, dev->prod, dev->serial); diff --git a/common/usb.c b/common/usb.c index ee18152..3138452 100644 --- a/common/usb.c +++ b/common/usb.c @@ -1136,7 +1136,7 @@ void usb_hub_port_connect_change(struct usb_device *dev, int port) /* Allocate a new device struct for it */ usb = usb_alloc_new_device(); - usb->slow = (portstatus & USB_PORT_STAT_LOW_SPEED) ? 1 : 0; + usb->speed = (portstatus & USB_PORT_STAT_LOW_SPEED) ? 1 : 0; dev->children[port] = usb; usb->parent = dev; |