STRUCT LP855X_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct lp855x_platform_data(9) πŸ’–

okay so bestie, welcome to the struct lp855x_platform_data(9) page β€” that's the Kernel API Manual, and honestly? it's giving "tiny struct, big backlight energy" ✨. This is the place where all the lp855 platform-specific data lives, and we're gonna go through it together, no skips, no cap 🫢.


✨ NAME ✨

struct lp855x_platform_data β€” literally the lp855 platform-specific data container πŸ‘‘. that's it, that's the name, and she ate.


🌸 SYNOPSIS 🌸

here's the glow-up, bestie β€” the whole struct, exactly as she is:

struct lp855x_platform_data {
    const char *name;
    u8 device_control;
    u8 initial_brightness;
    unsigned int period_ns;
    int size_program;
    struct lp855x_rom_data *rom_data;
 };

look at her. six members. zero notes. πŸ’…


πŸŽ€ Members πŸŽ€

okay so this is the part where we meet each member one by one, like a little friend group πŸ˜­πŸ’–:

  • name β€” the backlight driver name πŸ¦‹. and listen β€” if you don't define it, a default name gets set for you, so the struct is never out here nameless. iconic of her, honestly.
  • device_control β€” this one holds the value of the DEVICE CONTROL register ⭐. yes, the actual register value. very much main character energy.
  • initial_brightness β€” the initial value of backlight brightness 🌈. it's the first impression, the opening number, the "hi bestie, here's how bright we're starting" ✨.
  • period_ns β€” the platform-specific pwm period value ⏱️. unit is nano, so like, nanoseconds β€” tiny tiny units. and here's the catch: it's only valid when mode is PWM_BASED πŸ‘€. any other mode? not her moment, don't @ her.
  • size_program β€” the total size of lp855x_rom_data πŸ“. literally just the total size. she's the measure twice, cut once of the group.
  • rom_data β€” the list of new eeprom/eprom registers πŸ’ΎπŸ”₯. yes, a list, and yes, it's exactly the kind of thing that makes size_program matter. they're a package deal, iykyk.

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./include/linux/platform_data/lp855x.h β€” go read the header, bestie, it's right there πŸ§šπŸ’œ

and that's the whole page, periodt πŸŽ€βœ¨

kisses and good vibes from ./include/linux/platform_data β€” this one's dated October 2026, and it's page struct lp855x_platform_data(9) signing off, mwah πŸ’‹πŸ’–πŸ¦‹

πŸ“¦ where this page comes from