diff options
author | Simon Glass | 2023-05-05 20:03:03 -0600 |
---|---|---|
committer | Tom Rini | 2023-05-13 09:52:32 -0400 |
commit | 9fea3a799dde140f2d75eeb4560a5c3237ca991d (patch) | |
tree | 79227017c2014878496cc4838ca5db2c89f2a5eb /include/usb.h | |
parent | 76afc8457eb2f55771d9c9e2ba6106bac43a166b (diff) |
usb: Tidy up the usb_start flag
This should be declared in a header file so that type-checking works
correctly.
Add a single declaration to usb.h and remove the others.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'include/usb.h')
-rw-r--r-- | include/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb.h b/include/usb.h index 80cb8467203..42b001c3dd5 100644 --- a/include/usb.h +++ b/include/usb.h @@ -11,12 +11,15 @@ #ifndef _USB_H_ #define _USB_H_ +#include <stdbool.h> #include <fdtdec.h> #include <usb_defs.h> #include <linux/usb/ch9.h> #include <asm/cache.h> #include <part.h> +extern bool usb_started; /* flag for the started/stopped USB status */ + /* * The EHCI spec says that we must align to at least 32 bytes. However, * some platforms require larger alignment. |