ab8500_charger_get_usb_cur(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ab8500_charger_get_usb_cur(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today we're doing the ab8500_charger_get_usb_cur page, and it's lowkey a tiny charger-core baddie. ✨

πŸŽ€ NAME πŸŽ€

ab8500_charger_get_usb_cur β€” get usb current. that's the whole name, no cap. πŸ’–

✨ SYNOPSIS ✨

int ab8500_charger_get_usb_cur (struct ab8500_charger *di );

🫢 ARGUMENTS 🫢

  • di β€” pointer to the ab8500_charger structure. bestie, that's the whole argument. πŸ’…

🌸 DESCRIPTION 🌸

okay so the usb stack provides the maximum current that can be drawn from the standard usb host. this will be in uA. this function converts current in uA to a value that can be written to the register. iconic behavior, honestly. πŸŽ€

and the return tea: it returns -1 if charging is not allowed. no cap, that's the condition. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

the whole SEE ALSO friend group, no skips, periodt:


and that's the tea β˜• β€” this page's source/version is ./drivers/power/supply, dated October 2026, and the page name is ab8500_charger_get_usb_cur(9). bye bestie, go charge something responsibly πŸ’œπŸ«Ά

πŸ“¦ where this page comes from