Skip to content

Commit

Permalink
input: Save keyboard's LED state to correct place
Browse files Browse the repository at this point in the history
Currently keyboard's LED state is wrongly saved to config->leds in
process_modifier(). It should really be config->flags.

Signed-off-by: Bin Meng <[email protected]>
Acked-by: Simon Glass <[email protected]>
  • Loading branch information
lbmeng authored and sjg20 committed Nov 20, 2015
1 parent 91f8154 commit 533c81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static struct input_key_xlate *process_modifier(struct input_config *config,
if (flip != -1) {
int leds = 0;

config->leds ^= flip;
config->flags ^= flip;
if (config->flags & FLAG_NUM_LOCK)
leds |= INPUT_LED_NUM;
if (config->flags & FLAG_CAPS_LOCK)
Expand Down

0 comments on commit 533c81a

Please sign in to comment.