STRUCT WCD934X_DDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 of struct regulator_bulk_data, and there's WCD934X_MAX_SUPPLY of them because hydration is important πŸ’…
  • irq_data β€” the wcd934x irq_chip data, pointer to struct regmap_irq_chip_data. she's the interrupt lore keeper ✨
  • regmap β€” the wcd934x regmap pointer, a struct 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, a struct device *. this is the "who am i, really" field 😭
  • irq β€” the irq for wcd934x, a plain old int. 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