Lines Matching refs:leds
3 #include <linux/leds.h>
34 * NOTE: we reuse the platform_data structure of GPIO leds,
40 struct pwmled *leds;
48 leds = kcalloc(pdata->num_leds, sizeof(*leds), GFP_KERNEL);
49 if (!leds)
53 struct pwmled *led = leds + i;
54 const struct gpio_led *dat = pdata->leds + i;
100 platform_set_drvdata(pdev, leds);
106 led_classdev_unregister(&leds[i].cdev);
107 pwm_channel_free(&leds[i].pwmc);
110 kfree(leds);
118 struct pwmled *leds;
122 leds = platform_get_drvdata(pdev);
125 struct pwmled *led = leds + i;
131 kfree(leds);
137 MODULE_ALIAS("platform:leds-atmel-pwm");
141 .name = "leds-atmel-pwm",