usb_phy_set_charger_state(9)
usb_phy_set_charger_state(9) π β¨
okay so bestie, welcome to the Kernel API Manual page for usb_phy_set_charger_state(9) β yes, the manual name is literally right there, we're doing this.
πΈ NAME πΈ
usb_phy_set_charger_state β set the USB charger state, periodt.
β¨ SYNOPSIS β¨
not me copy-pasting the exact signature, because yes:
void usb_phy_set_charger_state (struct usb_phy *usb_phy , enum
usb_charger_state state );
π ARGUMENTS π
usb_phyβ the USB phy to be used, bestie.stateβ the new state need to be set for charger. no cap.
π¦ DESCRIPTION π¦
okay so π
the usb phy driver can issue this function when the usb phy driver detected the charger state has been changed. in this case, the charger type should be get from ->charger_detect β yes, that exact thing, iykyk.
π SEE ALSO π
the whole squad of references, gathered for your reading pleasure:
- Kernel file
./drivers/usb/phy/phy.c usb_phy_notify_charger_work(9)usb_phy_get_charger_type(9)usb_phy_set_charger_current(9)usb_phy_get_charger_current(9)devm_usb_get_phy(9)usb_get_phy(9)devm_usb_get_phy_by_node(9)devm_usb_get_phy_by_phandle(9)usb_put_phy(9)usb_add_phy(9)usb_add_phy_dev(9)usb_remove_phy(9)usb_phy_set_event(9)
mwah π β source/version: ./drivers/usb/phy Β· date: October 2026 Β· page: usb_phy_set_charger_state(9). bye bestie, go set that charger state π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms