leds-da903x.c (141bfeea561fd19e599153e31d1b46e86ffa5753) | leds-da903x.c (df07cf81268192e42c4cdf91f5f4bf9aaac1b2f0) |
---|---|
1/* 2 * LEDs driver for Dialog Semiconductor DA9030/DA9034 3 * 4 * Copyright (C) 2008 Compulab, Ltd. | 1/* 2 * LEDs driver for Dialog Semiconductor DA9030/DA9034 3 * 4 * Copyright (C) 2008 Compulab, Ltd. |
5 * Mike Rapoport <mike@compulab.co.il> | 5 * Mike Rapoport <mike@compulab.co.il> |
6 * 7 * Copyright (C) 2006-2008 Marvell International Ltd. | 6 * 7 * Copyright (C) 2006-2008 Marvell International Ltd. |
8 * Eric Miao <eric.miao@marvell.com> | 8 * Eric Miao <eric.miao@marvell.com> |
9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License version 2 as 12 * published by the Free Software Foundation. 13 */ 14 15#include <linux/module.h> 16#include <linux/kernel.h> --- 63 unchanged lines hidden (view full) --- 80 break; 81 } 82} 83 84static void da903x_led_set(struct led_classdev *led_cdev, 85 enum led_brightness value) 86{ 87 struct da903x_led *led; | 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License version 2 as 12 * published by the Free Software Foundation. 13 */ 14 15#include <linux/module.h> 16#include <linux/kernel.h> --- 63 unchanged lines hidden (view full) --- 80 break; 81 } 82} 83 84static void da903x_led_set(struct led_classdev *led_cdev, 85 enum led_brightness value) 86{ 87 struct da903x_led *led; |
88 | 88 |
89 led = container_of(led_cdev, struct da903x_led, cdev); 90 led->new_brightness = value; 91 schedule_work(&led->work); 92} 93 94static int __devinit da903x_led_probe(struct platform_device *pdev) 95{ 96 struct led_info *pdata = pdev->dev.platform_data; --- 48 unchanged lines hidden (view full) --- 145} 146 147static struct platform_driver da903x_led_driver = { 148 .driver = { 149 .name = "da903x-led", 150 .owner = THIS_MODULE, 151 }, 152 .probe = da903x_led_probe, | 89 led = container_of(led_cdev, struct da903x_led, cdev); 90 led->new_brightness = value; 91 schedule_work(&led->work); 92} 93 94static int __devinit da903x_led_probe(struct platform_device *pdev) 95{ 96 struct led_info *pdata = pdev->dev.platform_data; --- 48 unchanged lines hidden (view full) --- 145} 146 147static struct platform_driver da903x_led_driver = { 148 .driver = { 149 .name = "da903x-led", 150 .owner = THIS_MODULE, 151 }, 152 .probe = da903x_led_probe, |
153 .remove = __devexit_p(da903x_led_remove), | 153 .remove = da903x_led_remove, |
154}; 155 156module_platform_driver(da903x_led_driver); 157 158MODULE_DESCRIPTION("LEDs driver for Dialog Semiconductor DA9030/DA9034"); | 154}; 155 156module_platform_driver(da903x_led_driver); 157 158MODULE_DESCRIPTION("LEDs driver for Dialog Semiconductor DA9030/DA9034"); |
159MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>"); 160MODULE_AUTHOR("Mike Rapoport <mike@compulab.co.il>"); | 159MODULE_AUTHOR("Eric Miao <eric.miao@marvell.com>" 160 "Mike Rapoport <mike@compulab.co.il>"); |
161MODULE_LICENSE("GPL"); 162MODULE_ALIAS("platform:da903x-led"); | 161MODULE_LICENSE("GPL"); 162MODULE_ALIAS("platform:da903x-led"); |