summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-11-12 13:33:01 (GMT)
committerSimon Glass <sjg@chromium.org>2015-11-20 03:13:41 (GMT)
commit533c81a94988362fe7379bebd13ee0f701b38454 (patch)
treedd46d0a9b2de9583a799c0c79ddf807c48153fb1 /drivers/input
parent91f815450f2c96dcf0507653767c8ae27f54ea2c (diff)
downloadu-boot-533c81a94988362fe7379bebd13ee0f701b38454.tar.xz
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/input.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)