regulator_ma...linear_range(9)
πΈ regulator_map_voltage_linear_range β the kernel API manual page, bestie edition πΈ
okay so this is regulator_ma...linear_range(9) from the Kernel API Manual β literally the glow-up guide for regulator_map_voltage_linear_range. stay with me, it's cute and it's important π
β¨ NAME β¨
regulator_map_voltage_linear_range β it's map_voltage() but make it multiple linear ranges. iconic behaviour only π
π¦ SYNOPSIS π¦
int regulator_map_voltage_linear_range (struct regulator_dev *rdev , int min_uV , int max_uV );
that's the whole signature, no notes, chef's kiss β¨
π ARGUMENTS π
rdevβ the regulator we're operating on. the main character of this whole situation πmin_uVβ the lower bound for voltage. the floor, the bare minimum, the "i will not be accepting less" πΈmax_uVβ the upper bound for voltage. the ceiling, the limit, the "don't push it" π«Ά
β DESCRIPTION β
so if you're a driver and you've got linear_ranges chillin' in your descriptor? you can literally use this as your map_voltage callback. that's it, that's the whole vibe. no cap π₯
it's giving "drop-in replacement, zero drama" and honestly? we love that for you π
π SEE ALSO π
the kernel file lives at ./drivers/regulator/helpers.c β go say hi π§
and now the friendship circle, the whole group chat, everyone's invited:
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_get_voltage_sel_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_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)
periodt. that's the list, every single one, don't skip a single bestie ππ
ngl this page is short but it's mighty β if you're writing a regulator driver with linear_ranges in the descriptor, this callback is the one. slay π¦
kisses and a little sign-off: this one's straight out of the kernel source tree at ./drivers/regulator, dated October 2026, and yeah β the page is regulator_ma...linear_range(9), same as it ever was. ily, go map some voltages π
πβ
π¦ 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