From patchwork Thu Nov 17 12:05:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 21601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp362049wrr; Thu, 17 Nov 2022 04:07:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6qqLDtYnI/CaS5WsgI94KxiXBeqtvYsivVpH18ir3KpZif6VdkFDhiERz5PblJzMl9r15+ X-Received: by 2002:a05:6402:17c6:b0:462:f2e2:53aa with SMTP id s6-20020a05640217c600b00462f2e253aamr1830844edy.384.1668686867208; Thu, 17 Nov 2022 04:07:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668686867; cv=none; d=google.com; s=arc-20160816; b=Y0MXg50H8LK7RTdsn8IiMhUHsUvljphQXdESvN9ipB8D3ANcTxBWdzi0lDmsXokwMT E1jA+xemaj7KHNXN39zjHyGc+ZsDZ3wRbOBqf9Hky+CRnW+uXLqir42ApFCwIt1+GqNo X9Qbrw2MH+KZ7s61bQhBkDoW0xkJ3goXeD4FLwyhgyVFHHUSV5dC775duIaeycyIYquk G6PQ+EMof1LfKcmZ0nrAU8gkqZvqmVx8PnQiWkcqq9HcI9CDMSNI9ShxDVF7j6RbzuIK sw+jXKFAP32Ff1CqUdhLWAhC3fTXaOULM46Ivod/eZ8/MohCGWvEoqCycGCPLaAPMzDI lLiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3fglik4UOZm3Pj63pIt+1out2sfeQDHSIzZw+kOhQQM=; b=sAwmeRhr3FdKF9/oR2xwXwxXc8mqKXMsMQzG4oyBUBwzOu7Yh5RhNfGzJHAIaofGGr hsodcl4cMXrggpqQr5MsEd/hO3sR7ihl3drDKk7BnHiyt+AtQaqTCesPjF1Z0quQdDKK FA34njaKWgjMUI1mPLlG4TTU64eDe8/TxZCk2g3lAAj8DDVsNYJi7/TOAygKmVaRsCS1 nOQ2mOOu9vdAXd/TTRtEjhQYroc81vfqmHh7A/hHM4HN/WtH7QlBRbACRdc2DOxT47nu Lb/Dt9laiAMz3xO1dOi/x9Z6XPQ7B3t5FlZLN3Ar/Bt6IpOpRdUnnVxiX98G9ZQdOBiN 1Q/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GWIvXIGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg3-20020a17090705c300b007aed286a00dsi444319ejb.814.2022.11.17.04.07.24; Thu, 17 Nov 2022 04:07:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GWIvXIGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239971AbiKQMG6 (ORCPT + 99 others); Thu, 17 Nov 2022 07:06:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbiKQMG5 (ORCPT ); Thu, 17 Nov 2022 07:06:57 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 980FC5E9FA; Thu, 17 Nov 2022 04:06:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668686816; x=1700222816; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=F6zWASVpJF1rSsxD/df+vQjBNXxQMazvDrkx5nubrOo=; b=GWIvXIGNOvcpf8SrRLjrqPlNtxO1A49fR0WFH650sp5QZyx4z1iRgf19 euNeQT/NxHs/LMFoO1W06ft1ynGVRhOnvmRVsDyZCjXhAKMhMbqEXksJY 4Is+YMq3D+xj+nJhtjPYZhFzCXwKIrEOvEP03wLFtAzSJcRryXKGDDa2U aGLvsxHN9dyOtwmENI1nQBppS1yV+6aqYiTIN5xwtf+rymIPdozkTUfnO /d/KkKkWOFujSEMUnSDwxyGBkSAQHq1rp8VL7Kxve4ULMx/Jf8MchGf2E Lis8U6CDZ5eltakGY4BuuG9Q79hFi+LEUe1pLVdTFz1H3UTMNSidgMOwl A==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="312845807" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="312845807" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 04:06:53 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="968855624" X-IronPort-AV: E=Sophos;i="5.96,171,1665471600"; d="scan'208";a="968855624" Received: from kvehmane-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.61.113]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2022 04:06:48 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-fpga@vger.kernel.org, Xu Yilun , Wu Hao , Tom Rix , Moritz Fischer , Lee Jones , Matthew Gerlach , Russ Weight , Tianfei zhang , Mark Brown , Greg KH , Marco Pagani , linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 02/11] mfd: intel-m10-bmc: Rename the local variables Date: Thu, 17 Nov 2022 14:05:06 +0200 Message-Id: <20221117120515.37807-3-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221117120515.37807-1-ilpo.jarvinen@linux.intel.com> References: <20221117120515.37807-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749745000484252850?= X-GMAIL-MSGID: =?utf-8?q?1749745000484252850?= Local variables directly interact with dev_get_drvdata/dev_set_drvdata should be named ddata. Co-developed-by: Tianfei zhang Signed-off-by: Tianfei zhang Reviewed-by: Russ Weight Signed-off-by: Ilpo Järvinen --- drivers/mfd/intel-m10-bmc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/intel-m10-bmc.c b/drivers/mfd/intel-m10-bmc.c index 12c522c16d83..2c26203c4799 100644 --- a/drivers/mfd/intel-m10-bmc.c +++ b/drivers/mfd/intel-m10-bmc.c @@ -81,15 +81,15 @@ static DEVICE_ATTR_RO(bmcfw_version); static ssize_t mac_address_show(struct device *dev, struct device_attribute *attr, char *buf) { - struct intel_m10bmc *max10 = dev_get_drvdata(dev); + struct intel_m10bmc *ddata = dev_get_drvdata(dev); unsigned int macaddr_low, macaddr_high; int ret; - ret = m10bmc_sys_read(max10, M10BMC_MAC_LOW, &macaddr_low); + ret = m10bmc_sys_read(ddata, M10BMC_MAC_LOW, &macaddr_low); if (ret) return ret; - ret = m10bmc_sys_read(max10, M10BMC_MAC_HIGH, &macaddr_high); + ret = m10bmc_sys_read(ddata, M10BMC_MAC_HIGH, &macaddr_high); if (ret) return ret; @@ -106,11 +106,11 @@ static DEVICE_ATTR_RO(mac_address); static ssize_t mac_count_show(struct device *dev, struct device_attribute *attr, char *buf) { - struct intel_m10bmc *max10 = dev_get_drvdata(dev); + struct intel_m10bmc *ddata = dev_get_drvdata(dev); unsigned int macaddr_high; int ret; - ret = m10bmc_sys_read(max10, M10BMC_MAC_HIGH, &macaddr_high); + ret = m10bmc_sys_read(ddata, M10BMC_MAC_HIGH, &macaddr_high); if (ret) return ret;