]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: Update struct usb_device to indicate speed enum
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 16:26:53 +0000 (10:26 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 15 May 2020 17:53:50 +0000 (13:53 -0400)
The speed member actually uses an enum, so add this to the comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
include/usb.h

index 22f6088fe66afc8a63dc5533aa2fd2926cb4afee..fa9e09607e2c614ea06265ea67f51b6c040e22d3 100644 (file)
@@ -103,7 +103,7 @@ enum {
  */
 struct usb_device {
        int     devnum;                 /* Device number on USB bus */
-       int     speed;                  /* full/low/high */
+       enum usb_device_speed speed;    /* full/low/high */
        char    mf[32];                 /* manufacturer */
        char    prod[32];               /* product */
        char    serial[32];             /* serial number */