Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1531062ybs; Mon, 25 May 2020 19:28:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7aGN5SdSN7jHIfsItN2jeXzSVUDNoEmExUmXFY9O2JSuKha1wNaxYF87F6FoP0wlazuxx X-Received: by 2002:a17:906:6c94:: with SMTP id s20mr21577147ejr.416.1590460132379; Mon, 25 May 2020 19:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590460132; cv=none; d=google.com; s=arc-20160816; b=u/ww4xNojdms09Ix7iRnUQDW0vGrFF5oi0iUcY9Hs0twV0FEmeP40tBpyyHcDzTrWM 9+oO9Jjmu1FOOzhf+NqPFciKHpzkYHowGT/9mdyh6yGqjsMz/5/L84HYsPim4uWwBOqK TxO3mII+j5b7wtdQgVdYnkq/zEi/CbR5Dz0a9JTNMIbTsd3IsfxJtq2Icwq0PHfU5zMi 0Z7jTY7lLB1g5xqJ3HGhSZeY+Ntk/e+S+1QiTt2p8MOtOu7/1VXHW1VNUlZ9jQOCyNqj al7hkxtxQOw9AEHLfmCj18JlnRpWO5P01TJkWh9nbb3/TdTE4LH/6eNOpUuQay9lbhZK p7dA== 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=NqL8oqBdVBIiDnHeO4vEaPOFvro8dtc2t02RUCtjoT8=; b=rTUc3Hvq2AmUSSNMWGVpCawVJNcwwJ2Ab+xtaqvSvpPQ5bETP06c1UHYiIwpMZRG9t P4kH39IePIO8w4/vWh/JR3hJ6l87kfz4IT3V5nRSBMnbwaOGTNGZoX0kTYMEzOqr7c+W mXBePfmDk3NYoVedXy1USVEeoubzBqTlg2jDe33UoeEQLlejo+scM1VvwqJjXFjuSGSX t/C0h4IEcdnfTQ4kVXA+kNMQWWptEbUE2MLLIl1LUkqmC7R09/PVO/+OzsV/6VtKQHcz 6rUv5JOJf1LQSUGc4n0zYRQ8PtlbzTRPMl7x7SJ+DWAk4pYER4EBmw4dA3Rzgsaqf/OK R5Uw== 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 h6si10064749edl.221.2020.05.25.19.28.15; Mon, 25 May 2020 19:28:52 -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 S2388439AbgEZCWx (ORCPT + 99 others); Mon, 25 May 2020 22:22:53 -0400 Received: from emcscan.emc.com.tw ([192.72.220.5]:33958 "EHLO emcscan.emc.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388393AbgEZCWx (ORCPT ); Mon, 25 May 2020 22:22:53 -0400 X-IronPort-AV: E=Sophos;i="5.56,253,1539619200"; d="scan'208";a="35734191" Received: from unknown (HELO webmail.emc.com.tw) ([192.168.10.1]) by emcscan.emc.com.tw with ESMTP; 26 May 2020 10:22:51 +0800 Received: from 192.168.10.23 by webmail.emc.com.tw with MailAudit ESMTP Server V5.0(122906:0:AUTH_RELAY) (envelope-from ); Tue, 26 May 2020 10:22:49 +0800 (CST) Received: from 49.216.87.26 by webmail.emc.com.tw with Mail2000 ESMTPA Server V7.00(2482:0:AUTH_LOGIN) (envelope-from ); Tue, 26 May 2020 10:22:48 +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: elantech - Remove read/write registers in attr. Date: Tue, 26 May 2020 10:22:46 +0800 Message-Id: <20200526022246.4542-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 New Elan IC would not be accessed with the specific regiters. Signed-off-by: Jingle Wu --- drivers/input/mouse/elantech.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 2d8434b7b623..fa1aa5f441f5 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1280,31 +1280,11 @@ 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_10, 0x10); -ELANTECH_INT_ATTR(reg_11, 0x11); -ELANTECH_INT_ATTR(reg_20, 0x20); -ELANTECH_INT_ATTR(reg_21, 0x21); -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_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_10.dattr.attr, - &psmouse_attr_reg_11.dattr.attr, - &psmouse_attr_reg_20.dattr.attr, - &psmouse_attr_reg_21.dattr.attr, - &psmouse_attr_reg_22.dattr.attr, - &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_debug.dattr.attr, &psmouse_attr_paritycheck.dattr.attr, &psmouse_attr_crc_enabled.dattr.attr, -- 2.17.1