Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1523028ybs; Mon, 25 May 2020 19:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP201vBvUQZQW7Ofqbs+txtNsTSyuck+NxOx27er5WJh0uCLGp6A66bsFUgAIBAZX9IYzD X-Received: by 2002:a05:6402:642:: with SMTP id u2mr16994145edx.59.1590459077575; Mon, 25 May 2020 19:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590459077; cv=none; d=google.com; s=arc-20160816; b=eGytPb8lCFgWdmV28bf5C9XTJZ8JRxseYS+IFfSp75g3M+nrYQf09zZaAsjrKQ5Bf7 B6dmwrTgRFEey5/C8HIUxS7fjplvv7V9ckHFVpj0qRqS/6+tw1idmJiwS067r7N8Y3W+ j6tJXFH0O4JWNIM0odqqb1gpWU9V7cBWp1nFEzM/zm+gUln0VsIrur/VeusLDWL4KvPv 6yUVPT3axT6FKJQcsdxLcRhSvufkOqqB5emRRNmYngxTZE41YcTK5ChhBUTMHbTnMSl1 2a6jBuSWi3hAq2vzEHq2OS6deAGdf0rdTbm7bYfyAjOIpZi4iZ9age9drenglk28JVK9 MsoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=JF2UzdKGmZHmwD1GUCzuIm7UC4UYvUQbo6sKcd88cUM=; b=I+hgMcUZD9cv5mUbthnmyk8F1ylh/eK4i7KOadKo+Aus9Pb7yL+f/QCkIjHI9Kt1a/ T9ABAqBVcDujECinvXChrYt6UBIpVdDudUr0v71V/BLO4TQFI6qfXhXkzSM6+ZB4bK1L PGYpaD7yEg9UmOgqBG3r5+wwaU2JtmbILfkq1hqHUH/nFuZT7P/93Tayzsggz9yEmrt/ PO31Fms72OW5vObW8Rjoq+HQWbKYBNgqx0WmnU+2thv/v1hDAGyscIGLYH4CtbPB92k6 EThgbw+9msTGmnJ2+4TABueP3aGzG5oFxYcd4Zd3tTRRo6uyRzcYv0l7xVMOgafpk52P yn0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ha26si11083497ejb.32.2020.05.25.19.10.54; Mon, 25 May 2020 19:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388478AbgEZCJA (ORCPT + 99 others); Mon, 25 May 2020 22:09:00 -0400 Received: from emcscan.emc.com.tw ([192.72.220.5]:48817 "EHLO emcscan.emc.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388417AbgEZCI7 (ORCPT ); Mon, 25 May 2020 22:08:59 -0400 X-Greylist: delayed 580 seconds by postgrey-1.27 at vger.kernel.org; Mon, 25 May 2020 22:08:58 EDT X-IronPort-AV: E=Sophos;i="5.56,253,1539619200"; d="scan'208";a="35733622" Received: from unknown (HELO webmail.emc.com.tw) ([192.168.10.1]) by emcscan.emc.com.tw with ESMTP; 26 May 2020 09:59:17 +0800 Received: from 192.168.10.23 by webmail.emc.com.tw with MailAudit ESMTP Server V5.0(20966:0:AUTH_RELAY) (envelope-from ); Tue, 26 May 2020 09:59:16 +0800 (CST) Received: from 49.216.87.26 by webmail.emc.com.tw with Mail2000 ESMTPA Server V7.00(2480:0:AUTH_LOGIN) (envelope-from ); Tue, 26 May 2020 09:59:15 +0800 (CST) From: "Jingle.Wu" To: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com Cc: phoenix@emc.com.tw, dave.wang@emc.com.tw, josh.chen@emc.com.tw, "Jingle.Wu" Subject: [PATCH] Input: elantench - Remove read registers in attr Signed-off-by: Jingle Wu Date: Wed, 27 May 2020 01:59:40 +0800 Message-Id: <20200526175940.4298-1-jingle.wu@emc.com.tw> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --- drivers/input/mouse/elantech.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 2d8434b7b623..5bdf2b19118e 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1280,7 +1280,7 @@ static ssize_t elantech_set_int_attr(struct psmouse *psmouse, elantech_show_int_attr, \ elantech_set_int_attr) -ELANTECH_INT_ATTR(reg_07, 0x07); +/*ELANTECH_INT_ATTR(reg_07, 0x07); ELANTECH_INT_ATTR(reg_10, 0x10); ELANTECH_INT_ATTR(reg_11, 0x11); ELANTECH_INT_ATTR(reg_20, 0x20); @@ -1289,13 +1289,13 @@ ELANTECH_INT_ATTR(reg_22, 0x22); ELANTECH_INT_ATTR(reg_23, 0x23); ELANTECH_INT_ATTR(reg_24, 0x24); ELANTECH_INT_ATTR(reg_25, 0x25); -ELANTECH_INT_ATTR(reg_26, 0x26); +ELANTECH_INT_ATTR(reg_26, 0x26);*/ ELANTECH_INFO_ATTR(debug); ELANTECH_INFO_ATTR(paritycheck); ELANTECH_INFO_ATTR(crc_enabled); static struct attribute *elantech_attrs[] = { - &psmouse_attr_reg_07.dattr.attr, + /*&psmouse_attr_reg_07.dattr.attr, &psmouse_attr_reg_10.dattr.attr, &psmouse_attr_reg_11.dattr.attr, &psmouse_attr_reg_20.dattr.attr, @@ -1304,7 +1304,7 @@ static struct attribute *elantech_attrs[] = { &psmouse_attr_reg_23.dattr.attr, &psmouse_attr_reg_24.dattr.attr, &psmouse_attr_reg_25.dattr.attr, - &psmouse_attr_reg_26.dattr.attr, + &psmouse_attr_reg_26.dattr.attr,*/ &psmouse_attr_debug.dattr.attr, &psmouse_attr_paritycheck.dattr.attr, &psmouse_attr_crc_enabled.dattr.attr, -- 2.17.1