STRUCT WCD934X_DDATA(9)
π struct wcd934x_ddata(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β and today's main character is struct wcd934x_ddata, aka the wcd934x driver data π like literally the lil' bundle of everything the wcd934x driver needs to keep track of. she's giving "backstage pass holder" energy, ngl. πΈ
β¨ SYNOPSIS β¨
no cap, here's the whole struct in all her glory β copy it exactly, don't be weird about it:
struct wcd934x_ddata {
struct regulator_bulk_data supplies[WCD934X_MAX_SUPPLY];
struct regmap_irq_chip_data *irq_data;
struct regmap *regmap;
struct clk *extclk;
struct device *dev;
int irq;
};
π¦ Members π¦
suppliesβ the wcd934x regulator supplies, bestie. yes, plural, she's an array ofstruct regulator_bulk_data, and there'sWCD934X_MAX_SUPPLYof them because hydration is important πirq_dataβ the wcd934x irq_chip data, pointer tostruct regmap_irq_chip_data. she's the interrupt lore keeper β¨regmapβ the wcd934x regmap pointer, astruct regmap *. the register map bestie herself π«Άextclkβ the External clock,struct clk *. she ticks, she tocks, she keeps everything on beat β°πdevβ the device instance of the wcd934x slim device, astruct device *. this is the "who am i, really" field πirqβ the irq for wcd934x, a plain oldint. one number, endless interruptions π
π SEE ALSO π
- Kernel file
./include/linux/mfd/wcd934x/wcd934x.hβ go read it, iykyk ππ₯
real talk: this struct is just a cozy lil' container, but every pointer in here is load-bearing, so don't go yeeting fields out unless you actually know what you're doing π
and that's the whole vibe check, bestie π this page came from ./include/linux/mfd/wcd934x and it's dated October 2026, page struct wcd934x_ddata(9) β slay, periodt, go write some driver code πβ¨ππ¦πΈ
π¦ 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