]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/logicpd/zoom2/led.c
mx6: Revert "mx6: soc: Disable VDDPU regulator"
[karo-tx-uboot.git] / board / logicpd / zoom2 / led.c
index 42553727e4a1102676674f9e27659098292d2bde..5d37ac15f2fbf5d9eb762e44436d400c1ec208bc 100644 (file)
@@ -2,20 +2,7 @@
  * Copyright (c) 2009 Wind River Systems, Inc.
  * Tom Rix <Tom.Rix@windriver.com>
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <status_led.h>
@@ -36,7 +23,7 @@ static unsigned int saved_state[2] = {STATUS_LED_OFF, STATUS_LED_OFF};
 #define ZOOM2_LED_BLUE 154
 #define ZOOM2_LED_BLUE2        61
 
-void red_LED_off (void)
+void red_led_off(void)
 {
        /* red */
        if (!gpio_request(ZOOM2_LED_RED, "")) {
@@ -46,7 +33,7 @@ void red_LED_off (void)
        saved_state[STATUS_LED_RED] = STATUS_LED_OFF;
 }
 
-void blue_LED_off (void)
+void blue_led_off(void)
 {
        /* blue */
        if (!gpio_request(ZOOM2_LED_BLUE, "")) {
@@ -62,9 +49,9 @@ void blue_LED_off (void)
        saved_state[STATUS_LED_BLUE] = STATUS_LED_OFF;
 }
 
-void red_LED_on (void)
+void red_led_on(void)
 {
-       blue_LED_off ();
+       blue_led_off();
 
        /* red */
        if (!gpio_request(ZOOM2_LED_RED, "")) {
@@ -74,9 +61,9 @@ void red_LED_on (void)
        saved_state[STATUS_LED_RED] = STATUS_LED_ON;
 }
 
-void blue_LED_on (void)
+void blue_led_on(void)
 {
-       red_LED_off ();
+       red_led_off();
 
        /* blue */
        if (!gpio_request(ZOOM2_LED_BLUE, "")) {
@@ -102,14 +89,14 @@ void __led_toggle (led_id_t mask)
 {
        if (STATUS_LED_BLUE == mask) {
                if (STATUS_LED_ON == saved_state[STATUS_LED_BLUE])
-                       blue_LED_off ();
+                       blue_led_off();
                else
-                       blue_LED_on ();
+                       blue_led_on();
        } else if (STATUS_LED_RED == mask) {
                if (STATUS_LED_ON == saved_state[STATUS_LED_RED])
-                       red_LED_off ();
+                       red_led_off();
                else
-                       red_LED_on ();
+                       red_led_on();
        }
 }
 
@@ -117,13 +104,13 @@ void __led_set (led_id_t mask, int state)
 {
        if (STATUS_LED_BLUE == mask) {
                if (STATUS_LED_ON == state)
-                       blue_LED_on ();
+                       blue_led_on();
                else
-                       blue_LED_off ();
+                       blue_led_off();
        } else if (STATUS_LED_RED == mask) {
                if (STATUS_LED_ON == state)
-                       red_LED_on ();
+                       red_led_on();
                else
-                       red_LED_off ();
+                       red_led_off();
        }
 }