diff options
author | Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> | 2011-12-19 18:08:54 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-12-22 11:59:49 -0500 |
commit | f6fc8a6a1a08e520ae58b9abd54152aa101af14a (patch) | |
tree | 7120dd14e3a022452c1f481f17c3985ff9e55517 /drivers/leds | |
parent | 5ca6180fa6d7333fb5fabf30420b0e3cc32dd731 (diff) |
LED: drop leds-ams-delta driver
This driver is no longer needed after the Amstrad Delta on-board LED
devices have been converted to leds-gpio compatible.
Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/Kconfig | 7 | ||||
-rw-r--r-- | drivers/leds/Makefile | 1 | ||||
-rw-r--r-- | drivers/leds/leds-ams-delta.c | 137 |
3 files changed, 0 insertions, 145 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index ff203a421863..352374630c17 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig | |||
@@ -74,13 +74,6 @@ config LEDS_S3C24XX | |||
74 | This option enables support for LEDs connected to GPIO lines | 74 | This option enables support for LEDs connected to GPIO lines |
75 | on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440. | 75 | on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440. |
76 | 76 | ||
77 | config LEDS_AMS_DELTA | ||
78 | tristate "LED Support for the Amstrad Delta (E3)" | ||
79 | depends on LEDS_CLASS | ||
80 | depends on MACH_AMS_DELTA | ||
81 | help | ||
82 | This option enables support for the LEDs on Amstrad Delta (E3). | ||
83 | |||
84 | config LEDS_NET48XX | 77 | config LEDS_NET48XX |
85 | tristate "LED Support for Soekris net48xx series Error LED" | 78 | tristate "LED Support for Soekris net48xx series Error LED" |
86 | depends on LEDS_CLASS | 79 | depends on LEDS_CLASS |
diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index e4f6bf568880..f2b75b2c2ee9 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile | |||
@@ -12,7 +12,6 @@ obj-$(CONFIG_LEDS_LOCOMO) += leds-locomo.o | |||
12 | obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o | 12 | obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o |
13 | obj-$(CONFIG_LEDS_MIKROTIK_RB532) += leds-rb532.o | 13 | obj-$(CONFIG_LEDS_MIKROTIK_RB532) += leds-rb532.o |
14 | obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o | 14 | obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o |
15 | obj-$(CONFIG_LEDS_AMS_DELTA) += leds-ams-delta.o | ||
16 | obj-$(CONFIG_LEDS_NET48XX) += leds-net48xx.o | 15 | obj-$(CONFIG_LEDS_NET48XX) += leds-net48xx.o |
17 | obj-$(CONFIG_LEDS_NET5501) += leds-net5501.o | 16 | obj-$(CONFIG_LEDS_NET5501) += leds-net5501.o |
18 | obj-$(CONFIG_LEDS_WRAP) += leds-wrap.o | 17 | obj-$(CONFIG_LEDS_WRAP) += leds-wrap.o |
diff --git a/drivers/leds/leds-ams-delta.c b/drivers/leds/leds-ams-delta.c deleted file mode 100644 index 8c00937bf7e7..000000000000 --- a/drivers/leds/leds-ams-delta.c +++ /dev/null | |||
@@ -1,137 +0,0 @@ | |||
1 | /* | ||
2 | * LEDs driver for Amstrad Delta (E3) | ||
3 | * | ||
4 | * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #include <linux/module.h> | ||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/platform_device.h> | ||
15 | #include <linux/leds.h> | ||
16 | #include <plat/board-ams-delta.h> | ||
17 | |||
18 | /* | ||
19 | * Our context | ||
20 | */ | ||
21 | struct ams_delta_led { | ||
22 | struct led_classdev cdev; | ||
23 | u8 bitmask; | ||
24 | }; | ||
25 | |||
26 | static void ams_delta_led_set(struct led_classdev *led_cdev, | ||
27 | enum led_brightness value) | ||
28 | { | ||
29 | struct ams_delta_led *led_dev = | ||
30 | container_of(led_cdev, struct ams_delta_led, cdev); | ||
31 | |||
32 | if (value) | ||
33 | ams_delta_latch1_write(led_dev->bitmask, led_dev->bitmask); | ||
34 | else | ||
35 | ams_delta_latch1_write(led_dev->bitmask, 0); | ||
36 | } | ||
37 | |||
38 | static struct ams_delta_led ams_delta_leds[] = { | ||
39 | { | ||
40 | .cdev = { | ||
41 | .name = "ams-delta::camera", | ||
42 | .brightness_set = ams_delta_led_set, | ||
43 | }, | ||
44 | .bitmask = AMS_DELTA_LATCH1_LED_CAMERA, | ||
45 | }, | ||
46 | { | ||
47 | .cdev = { | ||
48 | .name = "ams-delta::advert", | ||
49 | .brightness_set = ams_delta_led_set, | ||
50 | }, | ||
51 | .bitmask = AMS_DELTA_LATCH1_LED_ADVERT, | ||
52 | }, | ||
53 | { | ||
54 | .cdev = { | ||
55 | .name = "ams-delta::email", | ||
56 | .brightness_set = ams_delta_led_set, | ||
57 | }, | ||
58 | .bitmask = AMS_DELTA_LATCH1_LED_EMAIL, | ||
59 | }, | ||
60 | { | ||
61 | .cdev = { | ||
62 | .name = "ams-delta::handsfree", | ||
63 | .brightness_set = ams_delta_led_set, | ||
64 | }, | ||
65 | .bitmask = AMS_DELTA_LATCH1_LED_HANDSFREE, | ||
66 | }, | ||
67 | { | ||
68 | .cdev = { | ||
69 | .name = "ams-delta::voicemail", | ||
70 | .brightness_set = ams_delta_led_set, | ||
71 | }, | ||
72 | .bitmask = AMS_DELTA_LATCH1_LED_VOICEMAIL, | ||
73 | }, | ||
74 | { | ||
75 | .cdev = { | ||
76 | .name = "ams-delta::voice", | ||
77 | .brightness_set = ams_delta_led_set, | ||
78 | }, | ||
79 | .bitmask = AMS_DELTA_LATCH1_LED_VOICE, | ||
80 | }, | ||
81 | }; | ||
82 | |||
83 | static int ams_delta_led_probe(struct platform_device *pdev) | ||
84 | { | ||
85 | int i, ret; | ||
86 | |||
87 | for (i = 0; i < ARRAY_SIZE(ams_delta_leds); i++) { | ||
88 | ams_delta_leds[i].cdev.flags |= LED_CORE_SUSPENDRESUME; | ||
89 | ret = led_classdev_register(&pdev->dev, | ||
90 | &ams_delta_leds[i].cdev); | ||
91 | if (ret < 0) | ||
92 | goto fail; | ||
93 | } | ||
94 | |||
95 | return 0; | ||
96 | fail: | ||
97 | while (--i >= 0) | ||
98 | led_classdev_unregister(&ams_delta_leds[i].cdev); | ||
99 | return ret; | ||
100 | } | ||
101 | |||
102 | static int ams_delta_led_remove(struct platform_device *pdev) | ||
103 | { | ||
104 | int i; | ||
105 | |||
106 | for (i = 0; i < ARRAY_SIZE(ams_delta_leds); i++) | ||
107 | led_classdev_unregister(&ams_delta_leds[i].cdev); | ||
108 | |||
109 | return 0; | ||
110 | } | ||
111 | |||
112 | static struct platform_driver ams_delta_led_driver = { | ||
113 | .probe = ams_delta_led_probe, | ||
114 | .remove = ams_delta_led_remove, | ||
115 | .driver = { | ||
116 | .name = "ams-delta-led", | ||
117 | .owner = THIS_MODULE, | ||
118 | }, | ||
119 | }; | ||
120 | |||
121 | static int __init ams_delta_led_init(void) | ||
122 | { | ||
123 | return platform_driver_register(&ams_delta_led_driver); | ||
124 | } | ||
125 | |||
126 | static void __exit ams_delta_led_exit(void) | ||
127 | { | ||
128 | platform_driver_unregister(&ams_delta_led_driver); | ||
129 | } | ||
130 | |||
131 | module_init(ams_delta_led_init); | ||
132 | module_exit(ams_delta_led_exit); | ||
133 | |||
134 | MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>"); | ||
135 | MODULE_DESCRIPTION("Amstrad Delta LED driver"); | ||
136 | MODULE_LICENSE("GPL"); | ||
137 | MODULE_ALIAS("platform:ams-delta-led"); | ||