max77802_set_suspend_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… max77802_set_suspend_mode(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a little regulator function that sets the opmode when the system goes night-night 😴✨


🌸 NAME 🌸

max77802_set_suspend_mode β€” sets the regulator opmode for when the system is suspended 🫢


✨ SYNOPSIS ✨

int max77802_set_suspend_mode (struct regulator_dev *rdev , unsigned int
mode );

like, that's the whole vibe. two args, one int back. no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • rdev β€” the regulator you're changing the mode of. it's the main character here πŸ‘‘
  • mode β€” the operating mode you want to set. that's the vibe you're assigning ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: it sets the operating mode for the regulators while the system is suspended. literally that's the whole job πŸ’–

this function is valid for the three different enable control logics:

  • Enable Control Logic1 by PWRREQ (BUCK 2-4 and LDOs 2, 4-19, 22-35)
  • Enable Control Logic2 by PWRREQ (LDOs 1, 20, 21)
  • Enable Control Logic3 by PWRREQ (LDO 3)

like yes, three whole logics, all by PWRREQ, all valid. iykyk 🌈

ok important one: if setting the regulator mode fails, the function only warns but does not return a negative error number β€” and the reason is lowkey iconic: it's so the regulator core doesn't stop setting the operating mode for the remaining regulators πŸ˜­πŸ™ˆ like it just keeps the party going for everyone else.

πŸ’œ SEE ALSO πŸ’œ


that's the whole page bestie 🫢✨ source/version vibes come from ./drivers/regulator, dated October 2026, filed under the Kernel API Manual β€” mwah, slay, periodt πŸ’…πŸŽ€πŸŒΊ

πŸ“¦ where this page comes from