STRUCT LP8727_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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