input: Save keyboard's LED state to correct place
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 <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 954ecec..575f4b6 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -267,7 +267,7 @@
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)