STRUCT LP50XX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct lp50xx β€” and the original literally gives us the struct name plus a dash, with no description after it. That’s the whole vibe, bestie. πŸ’…

✨ SYNOPSIS ✨

Okay so here’s the struct in all its exact, untouched glory:

       struct lp50xx {
           struct gpio_desc *enable_gpio;
           struct regulator *regulator;
           struct i2c_client *client;
           struct regmap *regmap;
           struct device *dev;
           struct mutex lock;
           const struct lp50xx_chip_info *chip_info;
           struct lp50xx_led leds[];
        };

πŸŽ€ Members πŸŽ€

  • enable_gpio β€” hardware enable gpio. that’s the whole job, no cap.
  • regulator β€” LED supply regulator pointer. πŸ’‘
  • client β€” pointer to the I2C client.
  • regmap β€” device register map.
  • dev β€” pointer to the devices device struct (yes, β€œdevices”, we’re keeping it exactly).
  • lock β€” lock for reading/writing the device.
  • chip_info β€” chip specific information (ie num_leds).
  • leds β€” array of LED strings. iconic. ✨

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/leds/leds-lp50xx.c and struct lp50xx_chip_info(9) β€” those are the refs, bestie. 🫢

That’s the whole page, babes. It comes from the ./drivers/leds source/version, dated October 2026, and it’s struct lp50xx(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from