STRUCT STMPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is struct stmpe(9) β€” the STMPE MFD structure, and bestie it's giving kernel-internals main character energy. It's a struct page, not a command, so no cap: we're looking at fields, not flags. πŸ’…


✨ SYNOPSIS ✨

here's the whole struct, verbatim, because we do not mess with code:

struct stmpe {
    struct regulator *vcc;
    struct regulator *vio;
    struct mutex lock;
    struct mutex irq_lock;
    struct device *dev;
    struct irq_domain *domain;
    void *client;
    struct stmpe_client_info *ci;
    enum stmpe_partnum partnum;
    struct stmpe_variant_info *variant;
    const u8 *regs;
    int irq;
    int num_gpios;
    u8 ier[2];
    u8 oldier[2];
    struct stmpe_platform_data *pdata;
    u8 sample_time;
    u8 mod_12b;
    u8 ref_sel;
    u8 adc_freq;
};

πŸ’… Members πŸ’…

time for the member-by-member vibe check, bestie:

  • vcc β€” optional VCC regulator.
  • vio β€” optional VIO regulator.
  • lock β€” lock protecting I/O operations.
  • irq_lock β€” IRQ bus lock.
  • dev β€” device, mostly for dev_dbg.
  • client β€” client - i2c or spi.
  • ci β€” client specific information.
  • partnum β€” part number.
  • variant β€” the detected STMPE model number.
  • regs β€” list of addresses of registers which are at different addresses on different variants. Indexed by one of STMPE_IDX_*.
  • irq β€” irq number for stmpe.
  • num_gpios β€” number of gpios, differs for variants.
  • ier β€” cache of IER registers for bus_lock.
  • oldier β€” cache of IER registers for bus_lock.
  • pdata β€” platform data.
🫢 tiny note: the struct also has domain, sample_time, mod_12b, ref_sel, and adc_freq in the code block above, but this page doesn't give each one its own member blurb, so I'm not inventing lore. Periodt.

πŸ” SEE ALSO πŸ”

  • Kernel file ./include/linux/mfd/stmpe.h β€” go read the header, iykyk.

shoutout to the footer info: this page comes from ./include/linux/mfd, dated October 2026, and it's struct stmpe(9) β€” bye bestie, slay your kernel adventures πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from