regulator_ge...e_sel_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regulator_get_voltage_sel_regmap β€” the kernel API manual, bestie edition ✨

okay so you've wandered into regulator_ge...e_sel_regmap(9) (yes the name gets truncated, that's just how the header rolls, don't @ me) and honestly? you're in the right place. pull up a chair. 🫢


🌸 NAME 🌸

regulator_get_voltage_sel_regmap β€” the standard, no-thoughts-just-vibes get_voltage_sel for all my regmap girlies ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int regulator_get_voltage_sel_regmap (struct regulator_dev *rdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • rdev β€” the regulator we're operating on. the main character of this whole function, lowkey. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so here's the tea, bestie: if your regulator uses regmap for its register I/O β€” like, that's its whole thing β€” you can just set the vsel_reg and vsel_mask fields in your descriptor and then use this bad boy as your get_voltage_sel operation.

and that's it?? that's the whole function?? the way it saves you some code is genuinely iconic. no cap, it's giving "work smarter not harder" and we're obsessed. πŸ’…βœ¨

fr fr, this is the plug-and-play option. set two fields, get a whole operation. slay.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in no particular order (but actually in this exact order, respect it):

and if you wanna read the source itself (iconic behaviour, honestly), it lives right here:

  • Kernel file ./drivers/regulator/helpers.c

✨ that's the whole page, bestie ✨ no gatekeeping here β€” this one came straight out of ./drivers/regulator and it's stamped October 2026, so it's fresh. go read some regmap code and text me later, mwah πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from