max77802_set_suspend_mode(9)
π 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 π
- Kernel file
./drivers/regulator/max77802-regulator.c max77802_set_suspend_disable(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms