wm8400_register_regulator(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wm8400_register_regulator(9)

okay so real talk β€” this is a page straight out of the Kernel API Manual, and the star of the show is wm8400_register_regulator. Say it with me: wm-eight-four-zero-zero. iconic. πŸŽ€


✨ NAME ✨

wm8400_register_regulator β€” enables software control of a WM8400 regulator πŸ¦‹

Like, that's the whole vibe. You want software to be the one calling the shots on a WM8400 regulator? This is the function that makes it happen, bestie.


🌸 SYNOPSIS 🌸

int wm8400_register_regulator (struct device *dev , int reg , struct regulator_init_data *initdata );

Three args, one int back. Clean. No notes. πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the WM8400 device to operate on. this is your main character device, the one you're doing all this for 🫢
  • reg β€” the regulator to control. literally just which regulator you want software to babysit ✨
  • initdata β€” regulator initdata for the regulator. yes, that's the description. it's the initdata, for the regulator. iykyk 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's what's happening: this function enables software control of a WM8400 regulator via the regulator API. That's the whole quest. Software goes from spectator to player. πŸ’€

And when is it supposed to be called? it is intended to be called from the platform_init callback of the WM8400 MFD driver. Not randomly, not from wherever, not from your cousin's driver β€” from platform_init in the WM8400 MFD driver. periodt. πŸ”₯


🧚 SEE ALSO 🧚

  • Kernel file ./drivers/regulator/wm8400-regulator.c β€” go read the source, bestie, it ate 🌸

ngl this one's short and sweet, so go forth and register those regulators responsibly πŸ’œ

okay byeee, this page lives under ./drivers/regulator, dated October 2026, and it's brought to you by wm8400_register_regulator(9) β€” see u in the next man page πŸŽ€β­πŸ¦‹

πŸ“¦ where this page comes from