STRUCT TPS6594(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” if true, 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