STRUCT LM3532_LED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 a 1-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 as u32 led_strings[LM3532_MAX_CONTROL_BANKS], so there's a whole array of them, sized by LM3532_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