Lines Matching full:charger

17 /* Default current range by charger type. */
108 * usb_phy_notify_charger_work - notify the USB charger state
109 * @work: the charger work to notify the USB charger state
111 * This work can be issued when USB charger state has been changed or
112 * USB charger current has been changed, then we can notify the current
113 * what can be drawn to power user and the charger state to userspace.
115 * If we get the charger type from extcon subsystem, we can notify the
116 * charger state to power user automatically by usb_phy_get_charger_type()
119 * If we get the charger type from ->charger_detect() instead of extcon
121 * to set charger state when the charger state has been changed.
140 dev_warn(usb_phy->dev, "Unknown USB charger state: %d\n", in usb_phy_notify_charger_work()
200 * usb_phy_get_charger_type - get charger type from extcon subsystem
201 * @nb: the notifier block to determine charger type
205 * Determin the charger type from extcon subsystem which also means the
206 * charger state has been chaned, then we should notify this event.
218 * usb_phy_set_charger_current - set the USB charger current
222 * Usually we only change the charger default current when USB finished the
223 * enumeration as one SDP charger. As one SDP charger, usb_phy_set_power()
224 * will issue this function to change charger current when after setting USB
225 * configuration, or suspend/resume USB. For other type charger, we should
226 * use the default charger current and we do not suggest to issue this function
227 * to change the charger current.
229 * When USB charger current has been changed, we need to notify the power users.
271 * usb_phy_get_charger_current - get the USB charger current
309 * usb_phy_set_charger_state - set the USB charger state
311 * @state: the new state need to be set for charger
314 * detected the charger state has been changed, in this case the charger
526 * such as a charger.