Lines Matching defs:led
110 struct adp8870_led *led;
197 struct adp8870_led *led = container_of(work, struct adp8870_led, work);
199 adp8870_write(led->client, ADP8870_ISC1 + led->id - 1,
200 led->new_brightness >> 1);
206 struct adp8870_led *led;
208 led = container_of(led_cdev, struct adp8870_led, cdev);
209 led->new_brightness = value;
213 schedule_work(&led->work);
216 static int adp8870_led_setup(struct adp8870_led *led)
218 struct i2c_client *client = led->client;
221 ret = adp8870_write(client, ADP8870_ISC1 + led->id - 1, 0);
225 ret = adp8870_set_bits(client, ADP8870_ISCC, 1 << (led->id - 1));
229 if (led->id > 4)
231 (led->flags & 0x3) << ((led->id - 5) * 2));
234 (led->flags & 0x3) << ((led->id - 1) * 2));
244 struct adp8870_led *led, *led_dat;
248 led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led),
250 if (led == NULL)
269 led_dat = &led[i];
311 data->led = led;
317 led_classdev_unregister(&led[i].cdev);
318 cancel_work_sync(&led[i].work);
332 led_classdev_unregister(&data->led[i].cdev);
333 cancel_work_sync(&data->led[i].work);
934 if (data->led)