pf9453_regu...sable_regmap(9)
π pf9453_regulator_disable_regmap β from the Kernel API Manual, bestie
okay so picture this: it's a kernel API manual page, the vibe is immaculate, and the function we're stanning today is pf9453_regulator_disable_regmap. she's a manual page 9 entry, she lives in the kernel, and she is literally just here to turn a regulator off for the regmap girlies. no cap. π
β¨ NAME β¨
pf9453_regulator_disable_regmap β disable regulator for regmap users π«Ά
like, that's the whole job. she disables. for the regmap users specifically. iconic behavior honestly.
πΈ SYNOPSIS πΈ
int pf9453_regulator_disable_regmap (struct regulator_dev *rdev );
that's it, that's the whole signature. one (1) argument, returns an int. the way she keeps it simple?? obsessed. β¨
π¦ ARGUMENTS π¦
rdevβ regulator to operate on π
that's the regulator you're operating on, bestie. she's the main character here, you just hand her over and let the function do her thing.
π DESCRIPTION π
okay so here's the tea π΅ β regulators that use regmap for their register I/O can set the enable_reg and enable_mask fields in their descriptor, and then use this function as their disable operation.
and that's the flex: it saves some code. that's it. that's the whole point. you don't gotta hand-roll your own disable op, you just point at this one and the enable_reg / enable_mask situation handles itself. lowkey elegant, highkey slay. π
so: enable_reg β
, enable_mask β
β set them in the descriptor, use this as the disable op, save yourself some code. periodt. π₯
π RETURN π
0 on success, or negative errno. π
so like β zero means we ate, negative errno means something went sideways. check it, don't ignore it, iykyk. π©·
fr fr check that return value. a negative errno is your code telling you something happened and you're just gonna ignore her?? π
π SEE ALSO π
- Kernel file
./drivers/regulator/pf9453-regulator.c pf9453_regulator_enable_regmap(9)βpf9453_regulator_set_voltage_sel_regmap(9)pf9453_regulator_set_ramp_delay_regmap(9)
go read the source file too, she's got the full lore. the enable one is basically her sister, and the voltage-select and ramp-delay ones are the rest of the squad. all linked, all worth a peek. π§
and that's the page!! π sign-off time: this whole vibe comes from ./drivers/regulator, dated October 2026. screenshot it, cite it, live by it. 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