regulator_se...e_sel_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_se...e_sel_regmap(9) β€” Kernel API Manual πŸ’…

okay so bestie, you're in the Kernel API Manual and this page is like, the glow-up cheat code for regulator drivers. it's regulator_se...e_sel_regmap(9), and yes the name got truncated by the terminal, we don't talk about it 🫢


✨ NAME ✨

regulator_set_voltage_sel_regmap β€” the standard set_voltage_sel for all my regmap girlies πŸ’–

🌸 SYNOPSIS 🌸

int regulator_set_voltage_sel_regmap (struct regulator_dev *rdev ,
unsigned sel );

πŸŽ€ ARGUMENTS πŸŽ€

  • rdev β€” the regulator you're operating on, like, the main character here πŸ‘‘
  • sel β€” the selector you wanna set, no cap πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

soooo here's the tea β˜• β€” regulators that use regmap for their register I/O can just set the vsel_reg and vsel_mask fields in their descriptor, and then use this as their set_voltage_sel operation. that's it. that's the whole vibe. it literally saves you some code and honestly? we love an efficiency icon βœ¨πŸ’…

🌈 SEE ALSO 🌈

the kernel file it lives in, bestie:

  • ./drivers/regulator/helpers.c

and the whole friend group 🫢 (iykyk):


and that's the page, bestie!! πŸ§šβ€β™€οΈ this iconic little number lives in ./drivers/regulator, dated October 2026, and it answers to the name regulator_se...e_sel_regmap(9). slay, go set some voltage selectors πŸ’œβ­πŸŽ€

πŸ“¦ where this page comes from