From patchwork Thu Mar 19 14:59:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Jiada" X-Patchwork-Id: 11447351 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AF881139A for ; Thu, 19 Mar 2020 15:02:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 99B1F2173E for ; Thu, 19 Mar 2020 15:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727720AbgCSPCX (ORCPT ); Thu, 19 Mar 2020 11:02:23 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:16097 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728129AbgCSPCV (ORCPT ); Thu, 19 Mar 2020 11:02:21 -0400 IronPort-SDR: 0zTL7Za8JOUEyJPdPMenA9n7460q6vvYfF4VzN0cpemyXMwJxtlcpG0ZkS5ULfOYzlmxD8e+Eq P3PXeO4++u3unfcFIt6jcwE52SbZnRgdtHkriuY1BvJ6vbEVj73M2jOtOWFUuwDbqbSrUTBM1U x+8hufDwcqu8SovbEjB8nW4uv5OfukistON63N3rdHtUUjyYvwtHG2glOxVBULSFnRBwhOBjuI xE4Wfj6r90SoUrnRR9RfW4+NmGECBAolfm4JFmr/3+tJOenj7rpHnUUT0Ute8IVcfVdw7zeqp1 nWM= X-IronPort-AV: E=Sophos;i="5.70,572,1574150400"; d="scan'208";a="48850344" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 19 Mar 2020 07:02:19 -0800 IronPort-SDR: 7+VyomUZtwuDSYAh/SY6xAWH61GxtJJCC9q1OnWr8SWj/fLw5gaLoApLCfNrm9kXu4FPX7oWeH mbhS/18AQcub+EhPx3bzxG1WDZDSqq+xWFXhe8SrhXp8NCB3kx/4xZlHS/Grez27r193G3cO21 aXFarAcgjeZlNEpuheWnHUCG0h3TuWmpO+E2g5z1g4AXP9xwwDFDSvro3rr1DwFcbFL6uC2LeY aTGLE+v4+2pNFYdEu3sIRNDzxvRx5h0lNfUIxs/26AgXtv9Katg99ivA1M8TIvIcLYMvfqimpT R+s= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v8 30/52] Input: atmel_mxt_ts - orientation is not present in hover Date: Thu, 19 Mar 2020 07:59:54 -0700 Message-ID: <20200319150016.61398-31-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319150016.61398-1-jiada_wang@mentor.com> References: <20200319150016.61398-1-jiada_wang@mentor.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Nick Dyer When in hover, the orientation information is not sent Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-upstream commit 0c885d5bd276bd9240c43aa046fc407cbe2ae864) Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- 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 670159c2f218..2c3a59ff70c4 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1026,10 +1026,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: