From patchwork Wed Mar 25 13:32:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Jiada" X-Patchwork-Id: 208031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32D9CC1975A for ; Wed, 25 Mar 2020 13:34:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1226E2076A for ; Wed, 25 Mar 2020 13:34:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727684AbgCYNet (ORCPT ); Wed, 25 Mar 2020 09:34:49 -0400 Received: from esa3.mentor.iphmx.com ([68.232.137.180]:53145 "EHLO esa3.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727710AbgCYNet (ORCPT ); Wed, 25 Mar 2020 09:34:49 -0400 IronPort-SDR: E6f/GLyf5nianUPCyVNnvLuEtkGmKmgHQKH5qSw8SaoSqW9s0an6IzGz9FNUpdf7cLvxiZG2VL ExSoEf6yZkThLyp8HAyj8etWhHWZD7PPpIG5TzjQ72r6tj6i9fxsEX0vAQ5uZPT2mFpXJDKHIC qf4Hp8CNckRgldV419RVqr8WpPsbHOrDfE4EGlu27mCpkJ/JhMo81OR/KLZgiMUQwSx1/3Z0NS uxAygoUuYcVAe2nkv9mS8I8Xy7qNzCimAwz291hPsXXZi2l2nw1/2DMASY9bPEaXHex2URG/7b O3Q= X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="47099692" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 25 Mar 2020 05:34:48 -0800 IronPort-SDR: V6IYeIZQL5BYr4u/HcUerB8rekDZCyIqj9ltoP/Xp0Aw2y6krhzJ0coTBYHCFceHrjMmmVn63V vR3po8JFGBresJgaB8Get866reIDaryFuJpEIMxzTyTmSCzb74B9p5Df7pbQXSZyl2Jqd/ih4S J03fPAQteO6BQQ3PaY6do34Vp6b/QFiRbC2vzF1y+FouPh75JrxAQywSWR+zgs7kh6VUP5/RTf N0eJqV00uRcazJ12bGLCH7o8C0K4PmoWvHWNCxpF9N7PYoEuhvojp2Ao6bcvM0qxmkKpShY6zD D/Y= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v9 17/55] Input: atmel_mxt_ts: Rename mxt_fw_version_show to fw_version_show Date: Wed, 25 Mar 2020 06:32:56 -0700 Message-ID: <20200325133334.19346-18-jiada_wang@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200325133334.19346-1-jiada_wang@mentor.com> References: <20200325133334.19346-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 Rename mxt_fw_version_show to fw_version_show to address checkpatch warning 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 0e30ff372a43..b2a37a9597f3 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3104,8 +3104,8 @@ static int mxt_configure_objects(struct mxt_data *data, } /* Firmware Version is returned as Major.Minor.Build */ -static ssize_t mxt_fw_version_show(struct device *dev, - struct device_attribute *attr, char *buf) +static ssize_t fw_version_show(struct device *dev, + struct device_attribute *attr, char *buf) { struct mxt_data *data = dev_get_drvdata(dev); struct mxt_info *info = data->info; @@ -3403,7 +3403,7 @@ static const struct attribute_group mxt_fw_attr_group = { .attrs = mxt_fw_attrs, }; -static DEVICE_ATTR(fw_version, S_IRUGO, mxt_fw_version_show, NULL); +static DEVICE_ATTR_RO(fw_version); static DEVICE_ATTR(hw_version, S_IRUGO, mxt_hw_version_show, NULL); static DEVICE_ATTR(object, S_IRUGO, mxt_object_show, NULL);