Lines Matching defs:leds
2 * leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip
16 * This helper chip can drive up to 8 leds, with two programmable DIM modes;
20 * The DIM modes are used to set _blink_ patterns for leds, the pattern is
26 * leds, the camera flash light and the displays backlights.
32 #include <linux/leds.h>
35 #include <linux/leds-lp3944.h>
48 /* These registers are not used to control leds in LP3944, they can store
80 struct lp3944_led_data leds[LP3944_LEDS_MAX];
241 /* Special case: the leds subsystem requires a default user
254 /* invert duty cycle for inverted leds, this has the same effect of
260 /* NOTE: using always the first DIM mode, this means that all leds
263 * We could find a way later to have two leds blinking in hardware
311 struct lp3944_led *pled = &pdata->leds[i];
312 struct lp3944_led_data *led = &data->leds[i];
361 switch (pdata->leds[i].type) {
365 led_classdev_unregister(&data->leds[i].ldev);
366 cancel_work_sync(&data->leds[i].work);
422 switch (data->leds[i].type) {
425 led_classdev_unregister(&data->leds[i].ldev);
426 cancel_work_sync(&data->leds[i].work);