regulator_ge...e_sel_regmap(9)
π 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):
regulator_is_enabled_regmap(9)regulator_enable_regmap(9)regulator_disable_regmap(9)regulator_get_voltage_sel_pickable_regmap(9)regulator_set_voltage_sel_pickable_regmap(9)regulator_set_voltage_sel_regmap(9)regulator_map_voltage_iterate(9)regulator_map_voltage_ascend(9)regulator_map_voltage_linear(9)regulator_map_voltage_linear_range(9)regulator_map_voltage_pickable_linear_range(9)regulator_desc_list_voltage_linear(9)regulator_list_voltage_linear(9)regulator_list_voltage_pickable_linear_range(9)regulator_desc_list_voltage_linear_range(9)regulator_list_voltage_linear_range(9)regulator_list_voltage_table(9)regulator_set_bypass_regmap(9)regulator_set_soft_start_regmap(9)regulator_set_pull_down_regmap(9)regulator_get_bypass_regmap(9)regulator_set_active_discharge_regmap(9)regulator_set_current_limit_regmap(9)regulator_get_current_limit_regmap(9)regulator_bulk_set_supply_names(9)regulator_is_equal(9)regulator_find_closest_bigger(9)regulator_set_ramp_delay_regmap(9)
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
- 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