From: Jason Kridner Date: Wed, 20 Apr 2011 23:13:49 +0000 (-0500) Subject: led: correct off/on locations in structure X-Git-Tag: v2011.09-rc1~68^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4086b51cb7eac451f96130affbc17094a9e7b75a;p=u-boot led: correct off/on locations in structure 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 Signed-off-by: Koen Kooi Signed-off-by: Joel A Fernandes Signed-off-by: Sandeep Paulraj --- diff --git a/common/cmd_led.c b/common/cmd_led.c index 8b468486e0..d14dd5adab 100644 --- a/common/cmd_led.c +++ b/common/cmd_led.c @@ -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;