STRUCT LM3697_LED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct lm3697_led(9) ✨

okay bestie, welcome to the kernel API manual for struct lm3697_led πŸ’… this is from the lm3697 chapter of the Kernel API Manual and honestly it's giving "small struct, big job" energy. let's get into it 🫢


🌸 NAME 🌸

struct lm3697_led β€” literally the struct that represents one LED in the LM3697 driver. that's it, that's the name section (the og page left it blank, so we're all just vibing here 😭)


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole thing, character for character, no cap:

struct lm3697_led {
    u32 hvled_strings[LM3697_MAX_LED_STRINGS];
    char label[LED_MAX_NAME_SIZE];
    struct led_classdev led_dev;
    struct lm3697 *priv;
    struct ti_lmu_bank lmu_data;
    int control_bank;
    int enabled;
    int num_leds;
 };

πŸŽ€ Members πŸŽ€

  • hvled_strings β€” the array of LED strings that are associated with a control bank. like, the whole string squad for that bank ✨
  • label β€” the LED's label. its name tag. its little nametag at the LED party 🏷️
  • led_dev β€” the LED class device. the main character of this struct fr πŸ‘‘
  • priv β€” pointer to the device struct. iykyk πŸ’œ
  • lmu_data β€” the register and setting values for common code. the shared brain cell of the operation 🧠
  • control_bank β€” the control bank this LED is associated to. 0 is control bank A, 1 is control bank B. pick your fighter πŸ’…
  • enabled β€” the LED brightness level (or LED_OFF). so if it's off, it's off off πŸ’€
  • num_leds β€” the number of LEDs available. count 'em, bestie πŸ”’

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/leds/leds-lm3697.c
  • struct lm3697(9)

ngl this struct is small but she is doing the work β€” register values, labels, class devices, bank assignments, all of it. iconic behavior ✨

and that's the whole page, bestie! this little gem lives in ./drivers/leds and this particular rendering is dated October 2026 β€” go off, calendar πŸ“…πŸ’– mwah, see u in the next manpage πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from