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 --- common/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/usb.c') diff --git a/common/usb.c b/common/usb.c index ae9253dfc0e..836506dcd9e 100644 --- a/common/usb.c +++ b/common/usb.c @@ -43,7 +43,7 @@ #define USB_BUFSIZ 512 static int asynch_allowed; -char usb_started; /* flag for the started/stopped USB status */ +bool usb_started; /* flag for the started/stopped USB status */ #if !CONFIG_IS_ENABLED(DM_USB) static struct usb_device usb_dev[USB_MAX_DEVICE]; -- cgit v1.2.3