STRUCT STMPE_CLIENT_INFO(9)
π NAME
struct stmpe_client_info β the i2c-or-spi-specific routines/info bestie π
like it's literally the little bundle that tells the rest of the driver "here's how this bus does things."
Oh and hey β this one lives in the Kernel API Manual, so you know it's the real deal, not some random README energy. π
β¨ SYNOPSIS
Ok so the whole struct, exactly as it is, no edits, no notes:
struct stmpe_client_info {
void *data;
int irq;
void *client;
struct device *dev;
int (*read_byte)(struct stmpe *stmpe, u8 reg);
int (*write_byte)(struct stmpe *stmpe, u8 reg, u8 val);
int (*read_block)(struct stmpe *stmpe, u8 reg, u8 len, u8 *values);
int (*write_block)(struct stmpe *stmpe, u8 reg, u8 len, const u8
*values);
void (*init)(struct stmpe *stmpe);
};
Likeβ¦ the function-pointer section is giving main character energy and honestly? deserved. π₯
π MEMBERS
Here's the lineup, one by one, no skipping, no "you get the idea" nonsense:
dataβ client specific data π«Άread_byteβ reads a single byte, one (1) byte, that's the whole job β¨write_byteβ writes a single byte, same deal πread_blockβ reads a block, aka multiple bytes, because why stop at one πwrite_blockβ writes a block, aka multiple bytes, block party time πΈinitβ the client init routine, and plot twist: it gets called during probe β
Little heads-up bestie: the struct up there in SYNOPSIS also hasirq,client, anddevfields, but the Members list doesn't spell out descriptions for them β so I'm not gonna make anything up, that's not the vibe. π
π¦ SEE ALSO
Go peek at these, fr fr:
- Kernel file
./drivers/mfd/stmpe.h struct stmpe_variant_block(9)struct stmpe_variant_info(9)
And that's the page! π This lil' gem came from ./drivers/mfd and it's dated October 2026, filed under struct stmpe_client_info(9) β slay, go read the source, ily, bye π§ββοΈπ
π¦ 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