Lines Matching defs:led
111 static void lp5521_set_led_current(struct lp55xx_led *led, u8 led_current)
113 led->led_current = led_current;
114 lp55xx_write(led->chip, LP5521_REG_LED_CURRENT_BASE + led->chan_nr,
351 static int lp5521_multicolor_brightness(struct lp55xx_led *led)
353 struct lp55xx_chip *chip = led->chip;
358 for (i = 0; i < led->mc_cdev.num_colors; i++) {
361 led->mc_cdev.subled_info[i].channel,
362 led->mc_cdev.subled_info[i].brightness);
370 static int lp5521_led_brightness(struct lp55xx_led *led)
372 struct lp55xx_chip *chip = led->chip;
376 ret = lp55xx_write(chip, LP5521_REG_LED_PWM_BASE + led->chan_nr,
377 led->brightness);
387 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
388 struct lp55xx_chip *chip = led->chip;
409 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
410 struct lp55xx_chip *chip = led->chip;
441 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
442 struct lp55xx_chip *chip = led->chip;
463 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
464 struct lp55xx_chip *chip = led->chip;
523 struct lp55xx_led *led;
545 led = devm_kcalloc(&client->dev,
546 pdata->num_channels, sizeof(*led), GFP_KERNEL);
547 if (!led)
555 i2c_set_clientdata(client, led);
561 dev_info(&client->dev, "%s programmable led chip found\n", id->name);
563 ret = lp55xx_register_leds(led, chip);
583 struct lp55xx_led *led = i2c_get_clientdata(client);
584 struct lp55xx_chip *chip = led->chip;