From: Zhou weixin Date: Tue, 17 Jan 2017 11:05:51 +0000 (+0800) Subject: HID: hid-alps: fix touchpad data report error after the android restart X-Git-Tag: firefly_0821_release~735 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bc87c8c251bc77f02d7f904b99491c8d43115f9a;p=firefly-linux-kernel-4.4.55.git HID: hid-alps: fix touchpad data report error after the android restart Change-Id: Id4204bc9b20ca257da65bcdec02eab8a6e398d02 Signed-off-by: Zhou weixin --- diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index 7a45231ef6aa..5593f83e2dc6 100644 --- a/drivers/hid/hid-alps.c +++ b/drivers/hid/hid-alps.c @@ -322,6 +322,7 @@ static int T4_raw_event(struct alps_dev *hdata, u8 *data, int size) input_mt_report_slot_state(hdata->input, MT_TOOL_FINGER, 1); } else { input_mt_report_slot_state(hdata->input, MT_TOOL_FINGER, 0); + input_report_abs(hdata->input, ABS_MT_PRESSURE, 0); continue; }