From 377a06964370bd887ec15f77f3e4e179c27fe8b9 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 12 Nov 2015 05:33:03 -0800 Subject: input: Change LED state bits to conform i8042 compatible keyboard When sending LED update command to an i8042 compatible keyboard, bit1 is 'Num Lock' and bit2 is 'Caps Lock' in the data byte. But input library defines bit1 as 'Caps Lock' and bit2 as 'Num Lock'. This causes a wrong LED to be set on an i8042 compatible keyboard. Change the LED state bits to be i8042 compatible, and change the keyboard flags as well. Signed-off-by: Bin Meng Acked-by: Simon Glass --- drivers/input/input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers') diff --git a/drivers/input/input.c b/drivers/input/input.c index e02e2643c9..526769692b 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -19,9 +19,9 @@ enum { /* These correspond to the lights on the keyboard */ - FLAG_NUM_LOCK = 1 << 0, - FLAG_CAPS_LOCK = 1 << 1, - FLAG_SCROLL_LOCK = 1 << 2, + FLAG_SCROLL_LOCK = 1 << 0, + FLAG_NUM_LOCK = 1 << 1, + FLAG_CAPS_LOCK = 1 << 2, /* Special flag ORed with key code to indicate release */ KEY_RELEASE = 1 << 15, -- cgit v1.2.1