Lines Matching defs:led
114 static void lp5521_set_led_current(struct lp55xx_led *led, u8 led_current)
116 led->led_current = led_current;
117 lp55xx_write(led->chip, LP5521_REG_LED_CURRENT_BASE + led->chan_nr,
352 static int lp5521_multicolor_brightness(struct lp55xx_led *led)
354 struct lp55xx_chip *chip = led->chip;
359 for (i = 0; i < led->mc_cdev.num_colors; i++) {
362 led->mc_cdev.subled_info[i].channel,
363 led->mc_cdev.subled_info[i].brightness);
371 static int lp5521_led_brightness(struct lp55xx_led *led)
373 struct lp55xx_chip *chip = led->chip;
377 ret = lp55xx_write(chip, LP5521_REG_LED_PWM_BASE + led->chan_nr,
378 led->brightness);
388 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
389 struct lp55xx_chip *chip = led->chip;
410 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
411 struct lp55xx_chip *chip = led->chip;
442 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
443 struct lp55xx_chip *chip = led->chip;
464 struct lp55xx_led *led = i2c_get_clientdata(to_i2c_client(dev));
465 struct lp55xx_chip *chip = led->chip;
524 struct lp55xx_led *led;
546 led = devm_kcalloc(&client->dev,
547 pdata->num_channels, sizeof(*led), GFP_KERNEL);
548 if (!led)
556 i2c_set_clientdata(client, led);
562 dev_info(&client->dev, "%s programmable led chip found\n", id->name);
564 ret = lp55xx_register_leds(led, chip);
584 struct lp55xx_led *led = i2c_get_clientdata(client);
585 struct lp55xx_chip *chip = led->chip;