led: correct off/on locations in structure
authorJason Kridner <jkridner@beagleboard.org>
Wed, 20 Apr 2011 23:13:49 +0000 (18:13 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 4 Sep 2011 09:36:22 +0000 (11:36 +0200)
Although the initialization should probably be done with names, the
existing implementation has these structures filled in the opposite
order.

Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
common/cmd_led.c

index 8b468486e0f9538fc606c0b862cd0ec2ee73e978..d14dd5adab5d65a10aff55fd8304540ff51e9389 100644 (file)
@@ -34,8 +34,8 @@
 struct led_tbl_s {
        char            *string;        /* String for use in the command */
        led_id_t        mask;           /* Mask used for calling __led_set() */
-       void            (*on)(void);    /* Optional fucntion for turning LED on */
-       void            (*off)(void);   /* Optional fucntion for turning LED on */
+       void            (*off)(void);   /* Optional function for turning LED off */
+       void            (*on)(void);    /* Optional function for turning LED on */
 };
 
 typedef struct led_tbl_s led_tbl_t;