diff mbox series

[v6,1/2] usb: Update struct usb_device to indicate speed enum

Message ID 20200510102651.v6.1.I0fd829dedf499bc0b05be5e4eb590ce829222962@changeid
State Accepted
Commit 25a838175cb571a27337385d20bd164f0e3603cf
Headers show
Series [v6,1/2] usb: Update struct usb_device to indicate speed enum | expand

Commit Message

Simon Glass May 10, 2020, 4:26 p.m. UTC
The speed member actually uses an enum, so add this to the comment.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v6:
- Use the enum directly in the struct

 include/usb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marek Vasut May 10, 2020, 4:29 p.m. UTC | #1
On 5/10/20 6:26 PM, Simon Glass wrote:
> The speed member actually uses an enum, so add this to the comment.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Reviewed-by: Marek Vasut <marex at denx.de>
Tom Rini May 15, 2020, 8:54 p.m. UTC | #2
On Sun, May 10, 2020 at 10:26:53AM -0600, Simon Glass wrote:

> The speed member actually uses an enum, so add this to the comment.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Marek Vasut <marex at denx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/usb.h b/include/usb.h
index 22f6088fe6..fa9e09607e 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -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 */