STRUCT LP8727_PLATFORM_DATA(9)
β¨ NAME β¨
okay so welcome to the Kernel API Manual, bestie β the main character of this page is struct lp8727_platform_data(9). That's the name. No cap. π
π§ SYNOPSIS π§
here's the whole struct layout, exactly as it is, no edits:
struct lp8727_platform_data {
u8 (*get_batt_present)(void);
u16 (*get_batt_level)(void);
u8 (*get_batt_capacity)(void);
u8 (*get_batt_temp)(void);
struct lp8727_chg_param *ac;
struct lp8727_chg_param *usb;
unsigned int debounce_msec;
};
we're just looking respectfully. π«Ά
π Members π
member-by-member vibe check:
get_batt_presentβ checks battery status: exists or not. literally that. πget_batt_levelβ gets battery voltage, in mV. slay.get_batt_capacityβ gets battery capacity, in %. iconic.get_batt_tempβ gets battery temperature. temperature tea βacβ charging parameters for AC type charger. periodt.usbβ charging parameters for USB type charger. yes bestie.debounce_msecβ interrupt debounce time. iykyk. β±οΈ
π₯ SEE ALSO π₯
- Kernel file
./include/linux/platform_data/lp8727.h struct lp8727_chg_param(9)
bestie, if you need the charger parameter struct too, it's right there in the SEE ALSO. don't leave it on read. π
mwah π that's the whole page β source/version is ./include/linux/platform_data, dated October 2026, and it's all for struct lp8727_platform_data(9). πβ¨
π¦ 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