diff options
| author | Simon Glass <[email protected]> | 2023-05-05 20:03:03 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-05-13 09:52:32 -0400 |
| commit | 9fea3a799dde140f2d75eeb4560a5c3237ca991d (patch) | |
| tree | 79227017c2014878496cc4838ca5db2c89f2a5eb /common | |
| 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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Patrick Delaunay <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |
