[glsdk/meta-ti-glsdk.git] / recipes-bsp / u-boot / u-boot / 2011.06 / 0027-led-correct-off-on-locations-in-structure.patch
1 From 48393aa0119882009df057c974f0dec6051eff79 Mon Sep 17 00:00:00 2001
2 From: Jason Kridner <jkridner@beagleboard.org>
3 Date: Wed, 20 Apr 2011 18:13:49 -0500
4 Subject: [PATCH 27/30] led: correct off/on locations in structure
6 Although the initialization should probably be done with names, the
7 existing implementation has these structures filled in the opposite
8 order.
10 Signed-off-by: Jason Kridner <jkridner@beagleboard.org>
11 --
12 v2 changes:
13 * Corrected comment as well.
14 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
15 ---
16 common/cmd_led.c | 4 ++--
17 1 files changed, 2 insertions(+), 2 deletions(-)
19 diff --git a/common/cmd_led.c b/common/cmd_led.c
20 index 8b46848..d14dd5a 100644
21 --- a/common/cmd_led.c
22 +++ b/common/cmd_led.c
23 @@ -34,8 +34,8 @@
24 struct led_tbl_s {
25 char *string; /* String for use in the command */
26 led_id_t mask; /* Mask used for calling __led_set() */
27 - void (*on)(void); /* Optional fucntion for turning LED on */
28 - void (*off)(void); /* Optional fucntion for turning LED on */
29 + void (*off)(void); /* Optional function for turning LED off */
30 + void (*on)(void); /* Optional function for turning LED on */
31 };
33 typedef struct led_tbl_s led_tbl_t;
34 --
35 1.6.6.1