• Home
  • Raw
  • Download

Lines Matching full:charger

17 /* Default current range by charger type. */
90 * usb_phy_notify_charger_work - notify the USB charger state
91 * @work: the charger work to notify the USB charger state
93 * This work can be issued when USB charger state has been changed or
94 * USB charger current has been changed, then we can notify the current
95 * what can be drawn to power user and the charger state to userspace.
97 * If we get the charger type from extcon subsystem, we can notify the
98 * charger state to power user automatically by usb_phy_get_charger_type()
101 * If we get the charger type from ->charger_detect() instead of extcon
103 * to set charger state when the charger state has been changed.
129 dev_warn(usb_phy->dev, "Unknown USB charger state: %d\n", in usb_phy_notify_charger_work()
162 * usb_phy_get_charger_type - get charger type from extcon subsystem
163 * @nb: the notifier block to determine charger type
167 * Determin the charger type from extcon subsystem which also means the
168 * charger state has been chaned, then we should notify this event.
180 * usb_phy_set_charger_current - set the USB charger current
184 * Usually we only change the charger default current when USB finished the
185 * enumeration as one SDP charger. As one SDP charger, usb_phy_set_power()
186 * will issue this function to change charger current when after setting USB
187 * configuration, or suspend/resume USB. For other type charger, we should
188 * use the default charger current and we do not suggest to issue this function
189 * to change the charger current.
191 * When USB charger current has been changed, we need to notify the power users.
233 * usb_phy_get_charger_current - get the USB charger current
271 * usb_phy_set_charger_state - set the USB charger state
273 * @state: the new state need to be set for charger
276 * detected the charger state has been changed, in this case the charger
495 * such as a charger.