STRUCT STMPE_VARIANT_INFO(9)
πΈ NAME πΈ
struct stmpe_variant_info β variant-specific information. Okay bestie, this is the Kernel API Manual page for that exact struct, and itβs giving extremely niche kernel-struct main character energy. β¨
β¨ SYNOPSIS β¨
struct stmpe_variant_info {
const char *name;
u16 id_val;
u16 id_mask;
int num_gpios;
int af_bits;
const u8 *regs;
struct stmpe_variant_block *blocks;
int num_blocks;
int num_irqs;
int (*enable)(struct stmpe *stmpe, unsigned int blocks, bool
enable);
int (*get_altfunc)(struct stmpe *stmpe, enum stmpe_block block);
int (*enable_autosleep)(struct stmpe *stmpe, int autosleep_timeout);
};
π Members π
Vibe check on every member, because they all matter β no skipping, fr fr. π
nameβ part name πid_valβ content ofCHIPIDregister βid_maskβ bits valid inCHIPIDregister for comparison withid_valπnum_gpiosβ number of GPIOS πaf_bitsβ number of bits used to specify the alternate function π¦regsβ variant specific registers. πblocksβ list of blocks present on this device π§num_blocksβ number of blocks present on this device π₯num_irqsβ number of internal IRQs available on this device β‘enableβ callback to enable the specified blocks. Called with the I/O lock held. πget_altfuncβ callback to get the alternate function number for the specific block π―enable_autosleepβ callback to configure autosleep with specified timeout π
bestie note: enable is literally called with the I/O lock held β that detail is iconic and important, so donβt lose it. π
π SEE ALSO π
- Kernel file
./drivers/mfd/stmpe.hπ struct stmpe_variant_block(9)struct stmpe_client_info(9)
Thatβs the whole page, bestie. Source/version situation: ./drivers/mfd, dated October 2026, and itβs the manual for struct stmpe_variant_info(9). Mwah πβ¨
π¦ 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