STRUCT SEC_PMIC_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sec_pmic_dev(9) β€” like, the whole vibe

okay bestie, so this is a page straight out of the Kernel API Manual, and it's all about struct sec_pmic_dev β€” the s2m/s5m master device for sub-drivers. yes, master. main character energy only πŸ‘‘


✨ NAME ✨

struct sec_pmic_dev β€” the s2m/s5m master device for sub-drivers 🫢


🌸 SYNOPSIS 🌸

struct sec_pmic_dev {
    struct device *dev;
    struct sec_platform_data *pdata;
    struct regmap *regmap_pmic;
    struct i2c_client *i2c;
    int device_type;
    int irq;
 };

that's the whole struct, no cap. every field is doing its little job and honestly? we stan πŸ’–


πŸ¦‹ Members πŸ¦‹

  • dev β€” the master device of the chip. the big boss, the head of the group chat πŸ’…
  • pdata β€” platform data, populated with data from DTS or board files. it's giving "pre-filled from the source" ✨
  • regmap_pmic β€” the regmap associated with the PMIC's I2C address. lowkey the translator bestie πŸŽ€
  • i2c β€” the I2C client of the main driver. that's the one holding it all together πŸ”₯
  • device_type β€” the type of device, and it matches enum sec_device_type. iykyk πŸ‘€
  • irq β€” the generic IRQ number for the device. it's the "hey, something happened!" ping 😭

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/mfd/samsung/core.h β€” go read it, bestie, it's iconic ⭐

and that's a wrap, babe 🧚 from ./include/linux/mfd/samsung, dated October 2026, struct sec_pmic_dev(9) β€” periodt πŸ’œ

πŸ“¦ where this page comes from