usb_phy_set_charger_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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