STRUCT LM3530_DATA(9)
π 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
- 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