From patchwork Wed Mar 25 13:32:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Jiada" X-Patchwork-Id: 208030 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=unavailable 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 7D899C54FD0 for ; Wed, 25 Mar 2020 13:35:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C7F5207FF for ; Wed, 25 Mar 2020 13:35:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbgCYNe6 (ORCPT ); Wed, 25 Mar 2020 09:34:58 -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 S1727710AbgCYNe5 (ORCPT ); Wed, 25 Mar 2020 09:34:57 -0400 IronPort-SDR: ro3kBhvIdIbxK3tlMVLFAp9BV/ar5UjRZD1ChQzI2s9r+qWvXSliiyx9ucmMnO/no/WVaNBidg buVPrJDKtZrYIX4Pa0hNnVPd0rFL423llMmDRip38gVKbN6atbC1Eoane8aW4icdDOftTN8+1x wz/5znyenZfb/g0VLg9Wo6tnBQm5YwhrSiZhkybDS5ldTnWVyFPcmCwEstXbBDzfAgD6ZB2pnq 0jjBO7kVe6tD4IhJ7PgK0NbOw3oneEBAHHqst8ry9D8qHSPi/4ufGvndNJctuk7/3xbGqSXGva QsU= X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="47099695" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 25 Mar 2020 05:34:56 -0800 IronPort-SDR: XrjtwLy5nBpo4nU6I/7z9rRSjiGDjOnqx/WM33akTaHa1MIJYnVOTJYL/Twek4jFXjl7ax4FgD 5Sn14Ggq2/zV0GpRZVlyPkUoCLcEkHRXb3QuCXlqrejuV+gRU9Ehr3Rog4oDOWjLFA3De8qvh1 5WRzGVmCbzgcdCMbtGgFT3KQ2USMIcC0fm/hxqtmphoTqlP0m8IyRkgtrFDQsXyI5gcdGr8FFt RcoyJGbvU2GlEkxwXiBY2LzAMlSwHW6B0sB7WDl4//dDyRGOjDR5jUz18R79+0p+0W7kVV1fie T3s= From: Jiada Wang To: , , , , , CC: , , , , Subject: [PATCH v9 19/55] Input: atmel_mxt_ts: rename mxt_update_fw_store to update_fw_store Date: Wed, 25 Mar 2020 06:32:58 -0700 Message-ID: <20200325133334.19346-20-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_update_fw_store to update_fw_store, to address checkpatch warning. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index cec823de4096..720574417219 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3366,9 +3366,9 @@ static int mxt_update_file_name(struct device *dev, char **file_name, return 0; } -static ssize_t mxt_update_fw_store(struct device *dev, - struct device_attribute *attr, - const char *buf, size_t count) +static ssize_t update_fw_store(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t count) { struct mxt_data *data = dev_get_drvdata(dev); int error; @@ -3392,7 +3392,7 @@ static ssize_t mxt_update_fw_store(struct device *dev, return count; } -static DEVICE_ATTR(update_fw, 0200, NULL, mxt_update_fw_store); +static DEVICE_ATTR_WO(update_fw); static struct attribute *mxt_fw_attrs[] = { &dev_attr_update_fw.attr,