From 9fea3a799dde140f2d75eeb4560a5c3237ca991d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 5 May 2023 20:03:03 -0600 Subject: 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 Reviewed-by: Marek Vasut Reviewed-by: Patrick Delaunay --- include/usb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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 #include #include #include #include #include +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. -- cgit v1.2.3