ab8500_fg_c..._to_permille(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ab8500_fg_convert_mah_to_permille ✨

okay so real talk, this is a page straight out of the Kernel API Manual and it's lowkey a tiny little function that just... does one cute thing. converting capacity units. that's her whole job. she's not complicated, she's just ✨necessary✨.


🌸 NAME 🌸

ab8500_fg_convert_mah_to_permille β€” literally just "Capacity in mAh to permille" πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ab8500_fg_convert_mah_to_permille (struct ab8500_fg *di , int
cap_mah );

bestie she takes two things and gives you back an int. that's it. that's the whole vibe check.


πŸŽ€ ARGUMENTS πŸŽ€

  • di β€” pointer to the ab8500_fg structure. yes the whole struct. she needs the context okay, don't @ her 🫢
  • cap_mah β€” capacity in mAh. the number you're bringing to the party πŸ“

πŸ’– DESCRIPTION πŸ’–

Converts capacity in mAh to capacity in permille.

that's it. that's the description. i told you she was uncomplicated 😭 converting. mAh. to permille. one direction. one job. main character energy honestly πŸ‘‘


🌈 SEE ALSO 🌈

first up, the actual home base β€” Kernel file ./drivers/power/supply/ab8500_fg.c πŸ“ and then the whole friend group:

like. that's a whole squad. iykyk πŸ”₯


ngl bestie, this page is short but she's part of a big family, so go read the rest of them if you want the full lore 🧚

and that's the wrap! πŸ’… this gem lives over in ./drivers/power/supply, dated October 2026 β€” go drink some water, charge your phone, and remember: mAh in, permille out, slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from