From patchwork Mon Jan 16 10:08:37 2023 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: 44057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1114481wrn; Mon, 16 Jan 2023 02:17:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXs0XSBnHbjtM3YmbyJ7V6Y6uRpvS1MAX1POFrIFZWKkPCGkKe/dzXj3Z+FazsVCPdyrzAyG X-Received: by 2002:a05:6a20:d2cc:b0:b8:8a19:d6ad with SMTP id ir12-20020a056a20d2cc00b000b88a19d6admr3290083pzb.24.1673864279219; Mon, 16 Jan 2023 02:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673864279; cv=none; d=google.com; s=arc-20160816; b=JXDTFu7HmKXtYK0goagk5sD+PKa8MV0Gg6Z7iYS4HUbFvZMP3e6Is7/WqEEPRCFxX4 6PAgFt/eA41hCGrPC6o5FIzHvv1+CzCl8sW/I94RB1qNjxwm3U1/PI9IUf5dtJ8h1Vbf OzdwvFKaBFhhjkWYiWCHTQg9wxjj9Y8C92aUqELaRxnx8smz0hP9dl7PDF6LRgB2mCi0 EGPzJsF2fEBjsgGXI6At41XsF1YxTXa0zPY9nY+o8nscwmV3/RSzs9aj+TDRSbh74S+g 7V9cbN9Mr1xrWO50zGdNhO0quOAI8CliG6ui7xoF0GSBVSvsw4pmsA1+9UjLghipID1A C0tQ== 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=eTGYlT1qpUTtS4odO4+dyDu7pwamPhlY8fvfPkFvueA=; b=oremxdFU8lgbbro5rL0kTivrFaHyQnHBNyWhlVzB4lQHwiYG6O8wWABWvpPBez02xR TN/FpHk0YqcJ2AFCsAxfNTVyxDN/brQEzymYFMV1+q2PKfI4n5YSDDMbqj18oycqCCkD 8hmtHM8mTNDRadq05W/xr45Vba1fMp4b0Wjpp9SSMQ8HwgT0iqYn0m6xZvXqdadKSGzu faauZqerKDkMh3GLLW8DHGOLzjWOtrWoAOipMrf9RwYYX/D2mvXJM2oK6KkMmGF88U1K O3YOLWpoGsfeQ2hHP9+Ag19s6MqunqWnDAlH8pq8eUc6riGRNjVQ3fdAgAo3EwnuX3bO l8AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DjAbi5hj; 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 m37-20020a635825000000b004790f4d8a1bsi28471842pgb.227.2023.01.16.02.17.44; Mon, 16 Jan 2023 02:17:59 -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=DjAbi5hj; 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 S230103AbjAPKKn (ORCPT + 99 others); Mon, 16 Jan 2023 05:10:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjAPKJy (ORCPT ); Mon, 16 Jan 2023 05:09:54 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E94151E9EB; Mon, 16 Jan 2023 02:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673863750; x=1705399750; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hne77rTTDgqKXtmh6Wsfa8xdZDdc7CB+WTAPS1dNziw=; b=DjAbi5hjgaEGO9ZP/7qo6pZWfbOdxT/2NF75/JvA7sQY/MA/4K6D2P4K uC4y8CWVSE+PYei/w7uVgKv/b8ofxROrloXv5oiKzMbtUugDMj8mv1PUi JNXyKVAB1hFj5LiB8CGKNx0/PrfE5zPShx8RK1wQconHEcX21qxvO4mO2 Zg+/OAu3yRBWnW+vmQfpm8FCMis52bVZ+jubd2ROY+cdnGUCRqTOyru6f nLAUWbja0z4E3rWY36985bF4Ud9u0LOVS47Og87hUCG9CfAO/Ou2PcCO/ dP8HNh/RYt64nzxDeMYtI08E8+nsb/dtb4/NtKRnxWgNuzFJhQLdYjLJ/ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10591"; a="326489286" X-IronPort-AV: E=Sophos;i="5.97,220,1669104000"; d="scan'208";a="326489286" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 02:09:10 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10591"; a="832785669" X-IronPort-AV: E=Sophos;i="5.97,220,1669104000"; d="scan'208";a="832785669" Received: from xsanroma-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.39.155]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 02:09:07 -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 , Marco Pagani , linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v6 03/11] mfd: intel-m10-bmc: Rename the local variables Date: Mon, 16 Jan 2023 12:08:37 +0200 Message-Id: <20230116100845.6153-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230116100845.6153-1-ilpo.jarvinen@linux.intel.com> References: <20230116100845.6153-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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?1755173910518936942?= X-GMAIL-MSGID: =?utf-8?q?1755173910518936942?= Local variables directly interact with dev_get_drvdata/dev_set_drvdata should be named ddata. Reviewed-by: Russ Weight Reviewed-by: Xu Yilun Acked-for-MFD-by: Lee Jones 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;