STRUCT GPIO_CHARGER_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” today's page is struct gpio...latform_data(9), and the actual struct is struct gpio_charger_platform_data: literally the platform_data for gpio_charger devices. no cap, that's the whole assignment πŸ’…βœ¨

✨ SYNOPSIS ✨

here's the struct in all its iconic glory:

struct gpio_charger_platform_data {
    const char *name;
    enum power_supply_type type;
    char **supplied_to;
    size_t num_supplicants;
 };

🫢 Members 🫢

  • name β€” the name for the charger's power_supply device. it's giving "who dis" but make it kernel πŸŽ€
  • type β€” the type of the charger. simple, iconic, does exactly what it says πŸ¦‹
  • supplied_to β€” array of battery names to which this charger supplies power. the friend group it's powering, basically πŸ”‹πŸ«Ά
  • num_supplicants β€” number of entries in the supplied_to array. gotta know how many besties are in the group chat πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/power/gpio-charger.h β€” go read it, iykyk πŸ‘‘

kisses bestie πŸ’‹ source/version is ./include/linux/power, dated October 2026, page struct gpio...latform_data(9) β€” byeee 🫢🌸

πŸ“¦ where this page comes from