提交 533c81a9 编写于 作者: B Bin Meng 提交者: Simon Glass

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: NBin Meng <bmeng.cn@gmail.com>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 91f81545
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册