pf9453_regu...sable_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pf9453_regulator_disable_regmap β€” from the Kernel API Manual, bestie

okay so picture this: it's a kernel API manual page, the vibe is immaculate, and the function we're stanning today is pf9453_regulator_disable_regmap. she's a manual page 9 entry, she lives in the kernel, and she is literally just here to turn a regulator off for the regmap girlies. no cap. πŸŽ€


✨ NAME ✨

pf9453_regulator_disable_regmap β€” disable regulator for regmap users 🫢

like, that's the whole job. she disables. for the regmap users specifically. iconic behavior honestly.


🌸 SYNOPSIS 🌸

int pf9453_regulator_disable_regmap (struct regulator_dev *rdev );

that's it, that's the whole signature. one (1) argument, returns an int. the way she keeps it simple?? obsessed. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdev β€” regulator to operate on πŸ’œ

that's the regulator you're operating on, bestie. she's the main character here, you just hand her over and let the function do her thing.


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea 🍡 β€” regulators that use regmap for their register I/O can set the enable_reg and enable_mask fields in their descriptor, and then use this function as their disable operation.

and that's the flex: it saves some code. that's it. that's the whole point. you don't gotta hand-roll your own disable op, you just point at this one and the enable_reg / enable_mask situation handles itself. lowkey elegant, highkey slay. πŸ’…

so: enable_reg βœ…, enable_mask βœ… β€” set them in the descriptor, use this as the disable op, save yourself some code. periodt. πŸ”₯


πŸ‘‘ RETURN πŸ‘‘

0 on success, or negative errno. 😭

so like β€” zero means we ate, negative errno means something went sideways. check it, don't ignore it, iykyk. 🩷

fr fr check that return value. a negative errno is your code telling you something happened and you're just gonna ignore her?? πŸ™ˆ

🌈 SEE ALSO 🌈

go read the source file too, she's got the full lore. the enable one is basically her sister, and the voltage-select and ramp-delay ones are the rest of the squad. all linked, all worth a peek. 🧚


and that's the page!! πŸŽ€ sign-off time: this whole vibe comes from ./drivers/regulator, dated October 2026. screenshot it, cite it, live by it. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from