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 --- test/boot/bootdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/boot/bootdev.c') diff --git a/test/boot/bootdev.c b/test/boot/bootdev.c index 8cf3f30e0f7..606bf4fcc1c 100644 --- a/test/boot/bootdev.c +++ b/test/boot/bootdev.c @@ -19,9 +19,9 @@ /* Allow reseting the USB-started flag */ #if defined(CONFIG_USB_HOST) || defined(CONFIG_USB_GADGET) -extern char usb_started; +extern bool usb_started; #else -char usb_started; +#include #endif /* Check 'bootdev list' command */ -- cgit v1.2.3