提交 9dd46c02 编写于 作者: D Dmitry Torokhov

Input: tca8418_keypad - remove double read of key event register

There is no need to tread the same register twice in a row.

Fixes: ea4348c8 ("Input: tca8418_keypad - hide gcc-4.9 -Wmaybe-un ...")
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 c852270a
...@@ -188,8 +188,6 @@ static void tca8418_read_keypad(struct tca8418_keypad *keypad_data) ...@@ -188,8 +188,6 @@ static void tca8418_read_keypad(struct tca8418_keypad *keypad_data)
input_event(input, EV_MSC, MSC_SCAN, code); input_event(input, EV_MSC, MSC_SCAN, code);
input_report_key(input, keymap[code], state); input_report_key(input, keymap[code], state);
/* Read for next loop */
error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, &reg);
} while (1); } while (1);
input_sync(input); input_sync(input);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册