Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1367879ybj; Thu, 7 May 2020 23:01:06 -0700 (PDT) X-Google-Smtp-Source: APiQypKElHzpsP7a9wI3i3vGx4rFXNtAHzyOPAaGn1Z5ng6FGNtkYBSGjUt8V8cKTQtpThu+coWn X-Received: by 2002:a17:907:43c2:: with SMTP id i2mr508230ejs.185.1588917665973; Thu, 07 May 2020 23:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588917665; cv=none; d=google.com; s=arc-20160816; b=LAh+/e2l9nLJkIuWbf5u5oKCtbJrWwm5g6euNYB6RWzNHrHTzPbtkNkUektZ4AeXTy mJ08EHlThZhJhVpVPP02faA1bsz227aOybXdZbbBHhKhvZJtVQroa6x7BsF4K+o8ayqk p+3Ioo65/pnKSy9M0IIuGQcBXFmLLqLxWPifQXTUAy7DHHPYUneN42MTqSEIBVzR8NMS 3xSHUtTbIAsc+I+czGeHSNFcgV97QuyUlg+DTdVokT0LOrJWDxd1G3XIlrjpVXIjh+Da wrEuOlffzh7p5ZgSCgKf6fcahjgH+rSYAIc/wBAbk1J4ZW6l2F8gZz9gnbZqfgt4YBaJ kJOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=4h0jkoRla5F7mat0iyveJ2OdIFRoZ6LHAHQcnBYS8ik=; b=zFhAbEZ8XRUHVTuX7B2JnCh5CtOA9w6wzylJb6Bq5KOzZd6QdNvO8rBgSge3VcSFtL EyYkJ9fZ1S7W6247OesFlNzb7SX3haR4gvRcRFvt4mkq8o4ENE3P3xjfjrScW1fpFce0 jMstif+IpBvyrfdqMzZ4N281yeo8uABVEy90Dw3LeZRv/3JSY2u0b9maSe/keetcrExI gwgTZgH+4bDW99OoujyhIHNGdzAjbVLnWDnf2ViYzEmjvQHDjxNQWDWGhwg6op9qGh2b AfxnKIfBwrCVxl5dGUvSyyy7YrgWHmz6f9ZY2XQ0YdfBEA//iTNjxdzfc3QVezuLZd14 Cgjw== 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 o9si342431ejr.224.2020.05.07.23.00.43; Thu, 07 May 2020 23:01:05 -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 S1728015AbgEHF6n (ORCPT + 99 others); Fri, 8 May 2020 01:58:43 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:38715 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbgEHF6l (ORCPT ); Fri, 8 May 2020 01:58:41 -0400 IronPort-SDR: FWtHp10LBnQCDANlUKI5xXwAc2GTFgvG9C4nE3Uf8l6xv0VIMJnLoQki7ReflZ3PDPMZr07gBm gGnqqGv0KBRWg/NIv44OaC5vbqovaD6RCotqYakxo1im0jFjpSqe3n19jBGLfbAFEZ9vDHoFXY aKbt7ubAdilkt68LZExJ4rXNa8UXK7ZucxskvtRCrPjQiNCwSPr7FdwOfA+i+2qOTJxwv7AjSP maGLti7URXihI/Kj7fiP7mtqcUkSo87Q7KifRcr17L4pQNoP4/VzqUj2o/xsHqhI17o12dW53u 6dk= X-IronPort-AV: E=Sophos;i="5.73,366,1583222400"; d="scan'208";a="50670096" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 07 May 2020 21:58:39 -0800 IronPort-SDR: //l/3gpV2FKvIKRAfN8xgnI7tYEUoXVwcEdWDhLDhV4jLQdSud6gQVZJp+rvkrWUgRSIYJDUMJ dObz1kx5sc5I2V1gXwyszv00zyAhHQmYhwW7mD+kX4UfjyunoXxIKgRHpQxs7ZfTJrr0xYK5u6 J7LZsn18L06oBfxfRxstea3Y86OCu4HmsG3PzCzd5iav9BC8umibs6J749hrxvIAapGg9kpWrS +3BvsGcWZjmf0wMTELUhTwD7py1QHrogSmdgOTXledElNkls1leK/POGmIOoV66o233aavQkku fP8= From: Jiada Wang To: , , , , CC: , , , , Subject: [PATCH v11 26/56] Input: atmel_mxt_ts - rename mxt_object_show to object_show Date: Thu, 7 May 2020 22:56:26 -0700 Message-ID: <20200508055656.96389-27-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508055656.96389-1-jiada_wang@mentor.com> References: <20200508055656.96389-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename mxt_object_show() to object_show(), so that object attr can also use DEVICE_ATTR_[RO|WO] to align with other attrs. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 780850343089..c3dd6c486c12 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3171,8 +3171,8 @@ static ssize_t mxt_show_instance(char *buf, int count, return count; } -static ssize_t mxt_object_show(struct device *dev, - struct device_attribute *attr, char *buf) +static ssize_t object_show(struct device *dev, + struct device_attribute *attr, char *buf) { struct mxt_data *data = dev_get_drvdata(dev); struct mxt_object *object; @@ -3484,7 +3484,7 @@ static const struct attribute_group mxt_fw_attr_group = { static DEVICE_ATTR_RO(fw_version); static DEVICE_ATTR_RO(hw_version); -static DEVICE_ATTR(object, S_IRUGO, mxt_object_show, NULL); +static DEVICE_ATTR_RO(object); static DEVICE_ATTR_WO(update_cfg); static DEVICE_ATTR_RO(config_crc); -- 2.17.1