summaryrefslogtreecommitdiff
path: root/include/input.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-11-12 05:33:03 -0800
committerSimon Glass <sjg@chromium.org>2015-11-19 20:13:42 -0700
commit377a06964370bd887ec15f77f3e4e179c27fe8b9 (patch)
tree67ebd8fa33bb8dbf37324fdf94c3fce3130e87ab /include/input.h
parentcd810918fd638df4e91f232ec889896c6155440a (diff)
downloadu-boot-imx-377a06964370bd887ec15f77f3e4e179c27fe8b9.zip
u-boot-imx-377a06964370bd887ec15f77f3e4e179c27fe8b9.tar.gz
u-boot-imx-377a06964370bd887ec15f77f3e4e179c27fe8b9.tar.bz2
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 <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/input.h')
-rw-r--r--include/input.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/input.h b/include/input.h
index ad120e4..2902b07 100644
--- a/include/input.h
+++ b/include/input.h
@@ -17,8 +17,8 @@ enum {
enum {
/* Keyboard LEDs */
INPUT_LED_SCROLL = 1 << 0,
- INPUT_LED_CAPS = 1 << 1,
- INPUT_LED_NUM = 1 << 2,
+ INPUT_LED_NUM = 1 << 1,
+ INPUT_LED_CAPS = 1 << 2,
};
/*