[PATCH v1 29/63] Input: atmel_mxt_ts - orientation is not present in hover

From: Jiada Wang
Date: Fri Aug 16 2019 - 04:34:23 EST


From: Nick Dyer <nick.dyer@xxxxxxxxxxx>

When in hover, the orientation information is not sent

Signed-off-by: Nick Dyer <nick.dyer@xxxxxxxxxxx>
(cherry picked from ndyer/linux/for-upstream commit 0c885d5bd276bd9240c43aa046fc407cbe2ae864)
Signed-off-by: George G. Davis <george_davis@xxxxxxxxxx>
Signed-off-by: Jiada Wang <jiada_wang@xxxxxxxxxx>
---
drivers/input/touchscreen/atmel_mxt_ts.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index 86c016dbec0d..ba608d04ee82 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -1028,10 +1028,6 @@ static void mxt_proc_t100_message(struct mxt_data *data, u8 *message)
distance = MXT_DISTANCE_HOVERING;
hover = true;
active = true;
-
- if (data->t100_aux_vect)
- orientation = message[data->t100_aux_vect];
-
break;

case MXT_T100_TYPE_FINGER:
--
2.19.2