STRUCT AD5791_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct ad5791_platform_data(9) πŸ’–

okay bestie, so this is a page from the Kernel API Manual β€” yes, that Kernel API Manual β€” and it's all about struct ad5791_platform_data, the little bundle of platform specific information you hand over so the AD5791 driver knows what's up. she's small, she's tidy, she's giving "three fields and a dream" energy ✨


🌸 NAME 🌸

struct ad5791_platform_data β€” platform specific information

like, literally just the platform-specific deets. that's the whole vibe check. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ad5791_platform_data {
    u16 vref_pos_mv;
    u16 vref_neg_mv;
    bool use_rbuf_gain2;
 };

three members, no cap. here's the tea on each one πŸ‘‡


πŸŽ€ Members πŸŽ€

  • vref_pos_mv β€” Vdd Positive Analog Supply Volatge (mV). yeah, the source spells it "Volatge" 😭 β€” we're keeping it, it's iconic, we don't gatekeep typos here. it's a u16 and it's in millivolts, periodt.
  • vref_neg_mv β€” Vdd Negative Analog Supply Volatge (mV). the negative twin πŸ’œ same deal: u16, millivolts, matching energy.
  • use_rbuf_gain2 β€” ext. amplifier connected in gain of two configuration. it's a bool, so it's a yes/no slay: flip it when your external amp is wired up in that gain-of-two setup. πŸ”₯
ngl, all three of these are exactly what the driver gets handed at probe time β€” nothing more, nothing less. don't go inventing fields, bestie, she has a strict guest list πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/iio/dac/ad5791.h β€” go read the header, it's the main character of this whole situation πŸ‘‘

and that's the whole page, bestie!! shipped from ./include/linux/iio/dac, dated October 2026, and yes the page itself is titled struct ad5791_platform_data(9) β€” she said "put my name on it" and honestly? deserved. πŸŽ€πŸ¦‹πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from