aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r--arch/arm/mach-orion5x/dns323-setup.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c
index 8c06ccac44c2..d470864b4e42 100644
--- a/arch/arm/mach-orion5x/dns323-setup.c
+++ b/arch/arm/mach-orion5x/dns323-setup.c
@@ -252,27 +252,6 @@ error_fail:
252 * GPIO LEDs (simple - doesn't use hardware blinking support) 252 * GPIO LEDs (simple - doesn't use hardware blinking support)
253 */ 253 */
254 254
255#define ORION_BLINK_HALF_PERIOD 100 /* ms */
256
257static int dns323_gpio_blink_set(unsigned gpio, int state,
258 unsigned long *delay_on, unsigned long *delay_off)
259{
260
261 if (delay_on && delay_off && !*delay_on && !*delay_off)
262 *delay_on = *delay_off = ORION_BLINK_HALF_PERIOD;
263
264 switch(state) {
265 case GPIO_LED_NO_BLINK_LOW:
266 case GPIO_LED_NO_BLINK_HIGH:
267 orion_gpio_set_blink(gpio, 0);
268 gpio_set_value(gpio, state);
269 break;
270 case GPIO_LED_BLINK:
271 orion_gpio_set_blink(gpio, 1);
272 }
273 return 0;
274}
275
276static struct gpio_led dns323ab_leds[] = { 255static struct gpio_led dns323ab_leds[] = {
277 { 256 {
278 .name = "power:blue", 257 .name = "power:blue",
@@ -311,13 +290,13 @@ static struct gpio_led dns323c_leds[] = {
311static struct gpio_led_platform_data dns323ab_led_data = { 290static struct gpio_led_platform_data dns323ab_led_data = {
312 .num_leds = ARRAY_SIZE(dns323ab_leds), 291 .num_leds = ARRAY_SIZE(dns323ab_leds),
313 .leds = dns323ab_leds, 292 .leds = dns323ab_leds,
314 .gpio_blink_set = dns323_gpio_blink_set, 293 .gpio_blink_set = orion_gpio_led_blink_set,
315}; 294};
316 295
317static struct gpio_led_platform_data dns323c_led_data = { 296static struct gpio_led_platform_data dns323c_led_data = {
318 .num_leds = ARRAY_SIZE(dns323c_leds), 297 .num_leds = ARRAY_SIZE(dns323c_leds),
319 .leds = dns323c_leds, 298 .leds = dns323c_leds,
320 .gpio_blink_set = dns323_gpio_blink_set, 299 .gpio_blink_set = orion_gpio_led_blink_set,
321}; 300};
322 301
323static struct platform_device dns323_gpio_leds = { 302static struct platform_device dns323_gpio_leds = {