STRUCT TSL2772_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct tsl2772_platform_data(9) β€” the kernel API manual page, bestie edition πŸ’–

Okay so picture this: you're deep in the kernel API manual, section 9, and you've stumbled onto struct tsl2772_platform_data. Don't panic. She's literally just a little struct that carries your platform callback, your glass, and your defaults. Sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

struct tsl2772_platform_data β€” Platform callback, glass and defaults πŸŽ€


🌸 SYNOPSIS 🌸

Here's the whole vibe, copied exactly, no cap:

struct tsl2772_platform_data {
    struct tsl2772_lux platform_lux_table[TSL2772_MAX_LUX_TABLE_SIZE];
    struct tsl2772_settings *platform_default_settings;
 };

Two members. That's it. She's compact and she knows it. πŸ’…


πŸ¦‹ Members πŸ¦‹

  • platform_lux_table β€” Device specific glass coefficents ✨ (yep, that's how the original spells it, we don't gatekeep spelling around here). It's declared as struct tsl2772_lux platform_lux_table[TSL2772_MAX_LUX_TABLE_SIZE];, so it's a whole array of them β€” one slot per entry, up to TSL2772_MAX_LUX_TABLE_SIZE.
  • platform_default_settings β€” Device specific power on defaults πŸ”₯ This one's a pointer, struct tsl2772_settings *platform_default_settings; β€” so it's pointing at your settings struct, not holding a whole copy. Main character energy, honestly.
Not me emphasizing this: these are device specific values, both of them. Your glass coefficients and your power-on defaults come from your platform, not from the struct itself. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/linux/platform_data/tsl2772.h β€” go read the header, it's the source of truth 🫢
  • struct tsl2772_settings(9) β€” the settings struct that platform_default_settings points at πŸ’œ

🌈 and that's the tea 🌈

That was struct tsl2772_platform_data(9) from the kernel API manual β€” two members, zero drama, all the platform data you need. Slay.

Source: ./include/linux/platform_data Β· October 2026 Β· struct tsl27...latform_data(9) β€” ok bye bestie, go forth and configure your glass table πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from