STRUCT LM36274(9)
π struct lm36274(9) β like, the whole entire vibe β¨
okay so bestie, welcome to the struct lm36274 glow-up page from the Kernel API Manual β this is the little struct that holds literally everything the LM36274 LED driver needs to know about itself π she's giving main character energy in ./drivers/leds and honestly? iconic.
β¨ NAME β¨
struct lm36274 β no cap, that's the whole name. the original page left the description blank and I'm not gonna invent one for you π (iykyk β we don't make stuff up here).
π¦ SYNOPSIS π¦
here's the structure in all her glory, character for character, don't touch a single one:
struct lm36274 {
struct platform_device *pdev;
struct led_classdev led_dev;
struct ti_lmu_bank lmu_data;
struct regmap *regmap;
struct device *dev;
u32 led_sources[LM36274_MAX_STRINGS];
int num_leds;
};
πΈ Members πΈ
time for the member-by-member vibe check π₯ each one gets her moment:
pdevβ the platform device. that's her β¨led_devβ the led class device. literally the LED side of the operation π‘lmu_dataβ the register and setting values for the common code. shared, reusable, generous πregmapβ the device's register map. where all the addresses live πΊοΈdevβ a pointer to the device'sdevicestruct. yes bestie, the pointer points π«Άled_sourcesβ the LED strings supported live in this array. she's sizedLM36274_MAX_STRINGS, respect her bounds πnum_ledsβ the number of LED strings supported in that array. the count, the receipts, the truth β
π SEE ALSO π
- Kernel file
./drivers/leds/leds-lm36274.cβ go read the source, bestie, it ate π
π§ friendly reminder: this page is Kernel API Manual material, so the struct fields above are exact β don't go renaming anything or the vibe check fails fr fr π
that's the whole page, periodt π this cutie lives under ./drivers/leds, dated October 2026, and yes β she's still struct lm36274(9) in the footer, slay π
β¨
π¦ 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