Lines Matching defs:led
108 struct adp8860_led *led;
182 struct adp8860_led *led = container_of(work, struct adp8860_led, work);
184 adp8860_write(led->client, ADP8860_ISC1 - led->id + 1,
185 led->new_brightness >> 1);
191 struct adp8860_led *led;
193 led = container_of(led_cdev, struct adp8860_led, cdev);
194 led->new_brightness = value;
195 schedule_work(&led->work);
198 static int adp8860_led_setup(struct adp8860_led *led)
200 struct i2c_client *client = led->client;
203 ret = adp8860_write(client, ADP8860_ISC1 - led->id + 1, 0);
204 ret |= adp8860_set_bits(client, ADP8860_ISCC, 1 << (led->id - 1));
206 if (led->id > 4)
208 (led->flags & 0x3) << ((led->id - 5) * 2));
211 (led->flags & 0x3) << ((led->id - 1) * 2));
221 struct adp8860_led *led, *led_dat;
225 led = devm_kcalloc(&client->dev, pdata->num_leds, sizeof(*led),
227 if (led == NULL)
243 led_dat = &led[i];
285 data->led = led;
291 led_classdev_unregister(&led[i].cdev);
292 cancel_work_sync(&led[i].work);
306 led_classdev_unregister(&data->led[i].cdev);
307 cancel_work_sync(&data->led[i].work);
762 if (data->led)