STRUCT LM3532_LED(9)
πΈ struct lm3532_led(9) πΈ
okay bestie, welcome to the Kernel API Manual β¨ β today we're looking at struct lm3532_led, and honestly? she's giving "small struct, big responsibilities" energy. no NAME description in the original (yeah, it's literally blank after the dash), so let's just get into it π«Ά
π NAME
struct lm3532_led β (no description given in the original, she's mysterious like that π)
β¨ SYNOPSIS
struct lm3532_led {
struct led_classdev led_dev;
struct lm3532_data *priv;
int control_bank;
int mode;
int ctrl_brt_pointer;
int num_leds;
int full_scale_current;
unsigned int enabled:1;
u32 led_strings[LM3532_MAX_CONTROL_BANKS];
};
look at her. nine members. perfectly coiffed. no cap, this is the whole struct and you're gonna know every single field π
π¦ Members
led_devβ the led class device π like, the actual LED-classdev situation, this is her main character field.privβ a pointer to the device data structure π«Ά yes bestie, the device data, capital-D Data.control_bankβ the control bank that this LED is associated to π which bank is she in? this field knows.modeβ the mode of the LED string β¨ whatever mode that string is vibing in.ctrl_brt_pointerβ the zone target register that controls the sink π register-coded. it points. it controls the sink. iconic.num_ledsβ the number of LED strings supported in this array π counting the strings, one by one.full_scale_currentβ the full-scale current setting for the current sink β‘ full scale, baby. that's the setting.enabledβ the enabled status π it's a1-bit bitfield (unsigned int enabled:1), so she's either on or she's not. binary queen.led_stringsβ the LED strings supported in this array π typed asu32 led_strings[LM3532_MAX_CONTROL_BANKS], so there's a whole array of them, sized byLM3532_MAX_CONTROL_BANKS.
π‘ quick vibe check: every field above is copied exactly as the kernel header has it β don't go renaming ctrl_brt_pointer to something cuter, the compiler will NOT be your bestie about it π
π₯ SEE ALSO
- Kernel file
./drivers/leds/leds-lm3532.c struct lm3532_data(9)
okay that's the whole struct, you ate that π§β¨ go forth and light up some LEDs. this lil tour came to you from ./drivers/leds, dated October 2026 β and the page itself is struct lm3532_led(9), in case you forgot already ππ periodt.
π¦ 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