ab8500_charg..._output_curr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ab8500_charger_set_output_curr πŸ’…

okay so real talk, bestie β€” this little cutie lives in the Kernel API Manual, and its whole entire personality is setting the charger output current. that's it. that's the vibe. πŸŽ€


🌸 NAME 🌸

ab8500_charger_set_output_curr β€” set charger output current, periodt πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int ab8500_charger_set_output_curr (struct ab8500_charger *di , int
ich_out_ua );

like, she takes two things and gives you back an int. iconic behavior ngl πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • di β€” pointer to the ab8500_charger structure. yes bestie, the whole struct, we're going in 🫢
  • ich_out_ua β€” output charger current, in uA. that's microamps, so like, tiny units but big responsibility πŸ’…

✨ DESCRIPTION ✨

Set charger output current. that's the mission, that's the whole plot 🌈

She returns an error code in case of failure, else 0 (on success). so like β€” 0 means slay, anything else means 😭. keep an eye on that return value, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/power/supply/ab8500_charger.c β€” plus literally the whole extended friend group, no cap:

like i said. the whole group chat. πŸ«ΆπŸ’œ


ngl bestie, if you're poking at charger current in the kernel, you already know what you're doing. go off πŸ‘‘

and that's the tea πŸ“ β€” this page comes from ./drivers/power/supply, stamped October 2026, and it's filed under the same ab8500_charg..._output_curr(9) header you scrolled in on. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from