regulator_s...delay_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ regulator_s...delay_regmap(9) ✨

okay bestie, so this is a page straight out of the Kernel API Manual and honestly? it's a little gem πŸ’Ž it's the regulator_set_ramp_delay_regmap situation and it is literally just a set_ramp_delay() helper. that's it. that's the whole vibe πŸŽ€


🌸 NAME 🌸

regulator_set_ramp_delay_regmap β€” the set_ramp_delay() helper, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

int regulator_set_ramp_delay_regmap (struct regulator_dev *rdev , int ramp_delay );

like, that's the whole signature ✨ short and slay


πŸ’… ARGUMENTS πŸ’…

  • rdev β€” the regulator we're operating on 🫢 this is the main character here
  • ramp_delay β€” the ramp-rate value, given in units of V/S (that's uV/uS for the unit girlies) ⚑

πŸ‘‘ DESCRIPTION πŸ‘‘

so listen: regulators that use regmap for their register I/O can set the ramp_reg and ramp_mask fields in their descriptor β€” and then just use this function as their set_ramp_delay operation. boom. done. saved yourself some code, periodt πŸ’…βœ¨

it's giving "work smarter not harder" and honestly we're obsessed 😭


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/regulator/helpers.c 🐚 and here's the whole squad of siblings, all (9)s, all iconic:

fr fr go read them, iykyk πŸ§šβ€β™€οΈ


and that's the whole page bestie, go set some ramp delays responsibly πŸ“

mwah πŸ’– this lil page comes to you from ./drivers/regulator, dated October 2026 β€” take care of her, she's iconic πŸ‘‘

πŸ“¦ where this page comes from