STRUCT TPS6594(9)
π struct tps6594(9) β the kernel API manual, bestie edition β¨
okay so this page is literally about struct tps6594 β that's the device private data structure for this chip, and honestly? she's giving main character energy in ./include/linux/mfd/tps6594.h. iykyk π¦
β¨ NAME β¨
struct tps6594 β the device private data structure, no cap π
πΈ SYNOPSIS πΈ
struct tps6594 {
struct device *dev;
unsigned long chip_id;
unsigned short reg;
bool use_crc;
struct regmap *regmap;
int irq;
struct regmap_irq_chip_data *irq_data;
};
likeβ¦ look at her. seven members. every one of them pulling her weight. periodt π
π Members π
devβ the MFD parent device π«Ά this is the parent device the whole thing hangs off of.chip_idβ the chip ID β that's it, that's the field.regβ the I2C slave address or the SPI chip select number π (yes bestie, it does double duty depending on which bus you're on).use_crcβ iftrue, use CRC for the I2C and SPI interface protocols π₯ like a little checksum bouncer at the door.regmapβ the regmap for accessing the device registers π§ this is the key to the register kingdom.irqβ the irq generated by the device π the interrupt, the vibes, the "notice me" signal.irq_dataβ regmap irq data used for the irq chip πΈ the irq chip's own little regmap irq data situation.
ngl every single member here is exact β don't go renaming any of them, fr fr. copy them character for character. π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/mfd/tps6594.hπ go read the header, bestie, she's right there.
that's the whole page, and honestly? iconic. anyway this one lives in ./include/linux/mfd, and the version stamp says October 2026 β so like, future vibes only πβ¨ mwah, study up and slay π
π
π¦ 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