STRUCT STMPE(9)
πΈ 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 fordev_dbg.clientβ client -i2corspi.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 ofSTMPE_IDX_*.irqβ irq number for stmpe.num_gpiosβ number of gpios, differs for variants.ierβ cache of IER registers forbus_lock.oldierβ cache of IER registers forbus_lock.pdataβ platform data.
π«Ά tiny note: the struct also hasdomain,sample_time,mod_12b,ref_sel, andadc_freqin 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
- 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