summaryrefslogtreecommitdiffstats
path: root/firmware/usb.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-13 20:03:49 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-13 20:04:04 -0500
commit03cd7730510558d6434f205743d71c3e197df608 (patch)
tree910e1a83b01eded7efae0ff67b880841e0da90dc /firmware/usb.c
parent43f90746d5610a36eaf7dc98b9fa3ca17ee6010e (diff)
downloadrockbox-03cd7730510558d6434f205743d71c3e197df608.tar.gz
rockbox-03cd7730510558d6434f205743d71c3e197df608.tar.bz2
rockbox-03cd7730510558d6434f205743d71c3e197df608.zip
ibasso: Hopefully hack usb into building again.
Change-Id: I6f369d60319704ab4d2c18b80ba6e78902630790
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 8443ffed3a..aca2683d58 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -817,13 +817,6 @@ int usb_release_exclusive_storage(void)
return bccount;
}
-#ifdef HAVE_USB_POWER
-bool usb_powered_only(void)
-{
- return usb_state == USB_POWERED;
-}
-#endif /* HAVE_USB_POWER */
-
#ifdef USB_ENABLE_HID
void usb_set_hid(bool enable)
{
@@ -832,6 +825,13 @@ void usb_set_hid(bool enable)
}
#endif /* USB_ENABLE_HID */
+#ifdef HAVE_USB_POWER
+bool usb_powered_only(void)
+{
+ return usb_state == USB_POWERED;
+}
+#endif /* HAVE_USB_POWER */
+
#elif defined(USB_NONE)
/* Dummy functions for USB_NONE */