STRUCT LM3530_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct lm3530_data(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” today we're looking at struct lm3530_data(9), and the vibe is very much "kernel struct, but make it cute." Every field and detail is staying exactly where it belongs, no cap. πŸ’…


✨ NAME ✨

struct lm3530_data β€” that's the name, and the original page literally leaves the description side of the dash empty, so we're not inventing extra lore here. Periodt. πŸŽ€

🌸 SYNOPSIS 🌸

Here's the exact struct shape, character for character, because we do not mess with code blocks:

       struct lm3530_data {
           struct led_classdev led_dev;
           struct i2c_client *client;
           struct lm3530_platform_data *pdata;
           enum lm3530_mode mode;
           struct regulator *regulator;
           enum led_brightness brightness;
           bool enable;
        };

🫢 Members 🫢

  • led_dev β€” led class device, that's the member description and we're keeping it adorable and exact πŸ’–
  • client β€” i2c client, literally.
  • pdata β€” LM3530 platform data, noted and preserved.
  • mode β€” mode of operation - manual, ALS, PWM; those are the three mode words, no extras.
  • regulator β€” regulator, that's the whole description, and we respect it.
  • brightness β€” previous brightness value, fr fr.
  • enable β€” regulator is enabled, keeping that exact.

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/leds/leds-lm3530.c β€” go look at the source, bestie, that's the reference.

✨ bye bestie! Sign-off tea: source/version is ./drivers/leds, the date is October 2026, and this page is struct lm3530_data(9) πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from