Skip to content
Snippets Groups Projects
Commit 4086b51c authored by Jason Kridner's avatar Jason Kridner Committed by Albert ARIBAUD
Browse files

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: default avatarJason Kridner <jkridner@beagleboard.org>
Signed-off-by: default avatarKoen Kooi <koen@dominion.thruhere.net>
Signed-off-by: default avatarJoel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent 4421acf8
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
struct led_tbl_s { struct led_tbl_s {
char *string; /* String for use in the command */ char *string; /* String for use in the command */
led_id_t mask; /* Mask used for calling __led_set() */ led_id_t mask; /* Mask used for calling __led_set() */
void (*on)(void); /* Optional fucntion for turning LED on */ void (*off)(void); /* Optional function for turning LED off */
void (*off)(void); /* Optional fucntion for turning LED on */ void (*on)(void); /* Optional function for turning LED on */
}; };
typedef struct led_tbl_s led_tbl_t; typedef struct led_tbl_s led_tbl_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment