1 #include <linux/kernel.h>
6 #include <linux/slab.h>
7 #include <linux/module.h>
45 pdata = pdev->
dev.platform_data;
54 for (i = 0; i < pdata->
num_leds; i++) {
61 led->
cdev.brightness_set = pwmled_brightness;
84 tmp = (led->
pwmc.mck / (1 << 5)) / 100;
88 led->
cdev.brightness * 255);
102 platform_set_drvdata(pdev, leds);
107 for (i = i - 1; i >= 0; i--) {
122 pdata = pdev->
dev.platform_data;
123 leds = platform_get_drvdata(pdev);
125 for (i = 0; i < pdata->
num_leds; i++) {
132 platform_set_drvdata(pdev,
NULL);
138 .name =
"leds-atmel-pwm",
142 .probe = pwmled_probe,