input: Save keyboard's LED state to correct place
authorBin Meng <bmeng.cn@gmail.com>
Thu, 12 Nov 2015 13:33:01 +0000 (05:33 -0800)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:41 +0000 (20:13 -0700)
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>
drivers/input/input.c

index 954ecec595efc0be4a3c82d2492ed8628c0870a3..575f4b66f0ad2aef328dbcd604140983bcd9ccc3 100644 (file)
@@ -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)