diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-11-13 20:03:49 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-11-13 20:04:04 -0500 |
commit | 03cd7730510558d6434f205743d71c3e197df608 (patch) | |
tree | 910e1a83b01eded7efae0ff67b880841e0da90dc /firmware/usb.c | |
parent | 43f90746d5610a36eaf7dc98b9fa3ca17ee6010e (diff) | |
download | rockbox-03cd7730510558d6434f205743d71c3e197df608.tar.gz rockbox-03cd7730510558d6434f205743d71c3e197df608.zip |
ibasso: Hopefully hack usb into building again.
Change-Id: I6f369d60319704ab4d2c18b80ba6e78902630790
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 14 |
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) | |||
817 | return bccount; | 817 | return bccount; |
818 | } | 818 | } |
819 | 819 | ||
820 | #ifdef HAVE_USB_POWER | ||
821 | bool usb_powered_only(void) | ||
822 | { | ||
823 | return usb_state == USB_POWERED; | ||
824 | } | ||
825 | #endif /* HAVE_USB_POWER */ | ||
826 | |||
827 | #ifdef USB_ENABLE_HID | 820 | #ifdef USB_ENABLE_HID |
828 | void usb_set_hid(bool enable) | 821 | void usb_set_hid(bool enable) |
829 | { | 822 | { |
@@ -832,6 +825,13 @@ void usb_set_hid(bool enable) | |||
832 | } | 825 | } |
833 | #endif /* USB_ENABLE_HID */ | 826 | #endif /* USB_ENABLE_HID */ |
834 | 827 | ||
828 | #ifdef HAVE_USB_POWER | ||
829 | bool usb_powered_only(void) | ||
830 | { | ||
831 | return usb_state == USB_POWERED; | ||
832 | } | ||
833 | #endif /* HAVE_USB_POWER */ | ||
834 | |||
835 | #elif defined(USB_NONE) | 835 | #elif defined(USB_NONE) |
836 | /* Dummy functions for USB_NONE */ | 836 | /* Dummy functions for USB_NONE */ |
837 | 837 | ||