regulator_s...delay_regmap(9)
β¨ 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 hereramp_delayβ the ramp-rate value, given in units of V/S (that'suV/uSfor 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:
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_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)
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
- 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