STRUCT MAX77759(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct max77759(9) β€” the Kernel API Manual glow-up

okay bestie so we're in section 9 of the Kernel API Manual today, and the main character is struct max77759 β€” literally the core max77759 internal data structure ✨ like, this is the blueprint, the whole vibe, the group chat roster of everything the driver needs 🫢


🌸 NAME 🌸

struct max77759 β€” the core max77759 internal data structure. that's it, that's the name, she's iconic and she knows it πŸ’–


✨ SYNOPSIS ✨

here's the whole look, no notes, copy it exactly or don't come to me 😭

struct max77759 {
    struct regmap *regmap_top;
    struct mutex maxq_lock;
    struct regmap *regmap_maxq;
    struct completion cmd_done;
    struct regmap *regmap_charger;
 };

πŸŽ€ MEMBERS πŸŽ€

okay so let's meet the cast, one by one, they all serve πŸ’…

  • regmap_top β€” the regmap for accessing TOP registers. yes queen, top registers, top energy πŸ‘‘
  • maxq_lock β€” the lock for serializing access to MaxQ. it's giving "one at a time please, we're not animals" πŸ”’
  • regmap_maxq β€” the regmap for accessing MaxQ registers. different regmap, same slay πŸ¦‹
  • cmd_done β€” used to signal completion of a MaxQ command. she's the "we're so back" notification fr fr βœ…
  • regmap_charger β€” regmap for accessing charger registers. charging up, obviously ⚑

🌈 DESCRIPTION 🌈

so like, the MAX77759? not one thing. she's a whole ensemble cast 😭 the chip comprises several sub-blocks, namely TOP, MaxQ, Charger, Fuel Gauge, and TCPCI. five besties, one silicon package, no cap πŸ’œ


πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, i promise they eat πŸ“

  • Kernel file ./include/linux/mfd/max77759.h enum max77759_chgr_chgin_dtls_status(9)
  • enum max77759_chgr_bat_dtls_states(9)
  • enum max77759_chgr_chg_dtls_states(9)
  • struct max77759_maxq_command(9)
  • struct max77759_maxq_response(9)
  • max77759_maxq_command(9)

lowkey a reminder bestie: every single one of those refs is listed exactly like the original, so don't come for me if you wanted them merged, i would never πŸ™ˆ

and that's the page!! sign-off time πŸŽ€ this one lives in ./include/linux/mfd, dated October 2026, and it's filed under struct max77759(9) β€” periodt, go touch some registers πŸ’–βœ¨

πŸ“¦ where this page comes from