STRUCT TSL2772_PLATFORM_DATA(9)
π 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 asstruct tsl2772_lux platform_lux_table[TSL2772_MAX_LUX_TABLE_SIZE];, so it's a whole array of them β one slot per entry, up toTSL2772_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 thatplatform_default_settingspoints 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
- 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