From: Bin Meng Date: Thu, 12 Nov 2015 13:33:01 +0000 (-0800) Subject: input: Save keyboard's LED state to correct place X-Git-Tag: KARO-TXSD-2017-03-15~2696 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=533c81a94988362fe7379bebd13ee0f701b38454;p=karo-tx-uboot.git 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 Acked-by: Simon Glass --- diff --git a/drivers/input/input.c b/drivers/input/input.c index 954ecec595..575f4b66f0 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -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)