STRUCT EMC2305_PLATFORM_DATA(9)
π struct emc2305_platform_data(9) π
okay bestie, welcome to the Kernel API Manual β section 9, the good section. today's main character is struct emc2305_platform_data, aka the EMC2305 driver's platform data. it's giving "little struct, big responsibilities." let's get into it π
β¨ NAME β¨
struct emc2305_platform_data β EMC2305 driver platform data
like, that's literally it. that's the whole vibe. it's the platform data the EMC2305 driver runs on π¦
πΈ SYNOPSIS πΈ
struct emc2305_platform_data {
u8 max_state;
u8 pwm_num;
u8 pwm_output_mask;
u8 pwm_polarity_mask;
bool pwm_separate;
u8 pwm_min[EMC2305_PWM_MAX];
u16 pwm_freq[EMC2305_PWM_MAX];
};
no cap, that's the whole shape of it. seven members, one struct, zero notes. look at those array declarations β EMC2305_PWM_MAX is doing the heavy lifting in both of them π
π Members π
okay so let's meet the members one by one, they all have their own little jobs:
max_stateβ maximum cooling state of the cooling device; π₯ that's the ceiling, the top of the range, the "we can't go any colder than this" energypwm_numβ number of active channels; like how many of them are actually awake and doing stuff β¨pwm_output_maskβ PWM output mask πpwm_polarity_maskβ PWM polarity mask πpwm_separateβ separate PWM settings for every channel; yup, this one's abool, so it's a yes/no situation β every channel gets its own settings when it's on πpwm_minβ array of minimum PWM per channel; typeu8, sizedEMC2305_PWM_MAX, one minimum per channel πpwm_freqβ array of PWM frequency per channel; typeu16this time (upgraded!), sizedEMC2305_PWM_MAX, one frequency per channel β
lowkey obsessed with the fact thatpwm_minisu8andpwm_freqisu16. the frequency got the glow-up. as it should π
π«Ά SEE ALSO π«Ά
- Kernel file
./include/linux/platform_data/emc2305.hβ yeah, go read the header, that's where the real lore lives π
that's the whole page bestie, you ate it π
so this one's from ./include/linux/platform_data, dated October 2026, and the page itself is struct emc23...latform_data(9) β yes the title's truncated, we don't know her full name either, it's an icon thing π mwah, go touch some PWM channels, ily π§π
π¦ 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