usb: move usb charging function prototype from usb_core.h to usb.h
Change-Id: Id29c60d3aa26f8badca6c38c1cbb2e5a39c554dc Reviewed-on: http://gerrit.rockbox.org/1094 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
This commit is contained in:
parent
66690ca987
commit
268114ee66
2 changed files with 7 additions and 10 deletions
|
@ -127,6 +127,13 @@ void usb_charging_enable(int state);
|
|||
#ifdef HAVE_USBSTACK
|
||||
void usb_charger_update(void);
|
||||
#endif /* HAVE_USBSTACK */
|
||||
/* hardware which knows how to control usb current should use one
|
||||
* of the following to find out from the usb stack how much is ok
|
||||
*/
|
||||
/* implemented by target, called by usb when value changes */
|
||||
void usb_charging_maxcurrent_change(int maxcurrent);
|
||||
/* implemented by usb, called by target to get value */
|
||||
int usb_charging_maxcurrent(void);
|
||||
#endif /* HAVE_USB_CHARGING_ENABLE */
|
||||
#endif /* HAVE_USB_POWER */
|
||||
#ifdef HAVE_USBSTACK
|
||||
|
|
|
@ -63,15 +63,5 @@ void usb_core_release_endpoint(int dir);
|
|||
void usb_core_hotswap_event(int volume,bool inserted);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_USB_CHARGING_ENABLE
|
||||
/* hardware which knows how to control usb current should use one
|
||||
* of the following to find out from the usb stack how much is ok
|
||||
*/
|
||||
/* implemented by target, called by usb when value changes */
|
||||
void usb_charging_maxcurrent_change(int maxcurrent);
|
||||
/* implemented by usb, called by target to get value */
|
||||
int usb_charging_maxcurrent(void);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue