regulator_disable_regmap(9)
π regulator_disable_regmap(9) β the Kernel API Manual glow-up β¨
Okay so bestie, buckle in, because we're about to get into regulator_disable_regmap(9) and honestly? It's giving "small function, big main character energy" π This one lives in the Kernel API Manual and it's lowkey iconic for anyone doing regulator stuff with regmap.
β¨ NAME β¨
regulator_disable_regmap β the standard disable() for all my regmap users out there π«Ά no cap, this is the one you reach for.
πΈ SYNOPSIS πΈ
int regulator_disable_regmap (struct regulator_dev *rdev );
π¦ ARGUMENTS π¦
rdevβ the regulator we're operating on π like, this is the main character of the function, the one getting disabled.
π« DESCRIPTION π«
So here's the vibe: regulators that use regmap for their register I/O can just set the enable_reg and enable_mask fields in their descriptor, and then use this function as their disable operation. And why? Because it literally saves you some code πβ¨ it's the ultimate "work smarter not harder" moment. Obsessed.
π SEE ALSO π
The whole squad, fr fr β every single one of these is linked and you should show them love:
- Kernel file
./drivers/regulator/helpers.c regulator_is_enabled_regmap(9)regulator_enable_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)regulator_set_ramp_delay_regmap(9)
And that's the whole thing, bestie π this page is from ./drivers/regulator dated October 2026 in the Kernel API Manual. Now go forth and disable those regulators with confidence π you've got this, periodt. π
π¦ 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