STRUCT GPIO_CHARGER_PLATFORM_DATA(9)
π 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'spower_supplydevice. 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 thesupplied_toarray. 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
- 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