Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3055767rwb; Mon, 16 Jan 2023 03:10:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXv56TbUl60tkt2N8pmxUexqjcp23wjnN/Jwe9yYQHIe1fayLRIK1+jy4iWossw1DArmPZ31 X-Received: by 2002:a05:6a20:2a93:b0:b8:6c02:549b with SMTP id v19-20020a056a202a9300b000b86c02549bmr7067773pzh.7.1673867406735; Mon, 16 Jan 2023 03:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673867406; cv=none; d=google.com; s=arc-20160816; b=qxsHoXg+nDtKzp3rOdRnETxVoHC6ue2zr8AavcQACeWHBZVyPBavds1SuWpsMm0F45 xC1R+0OA/RL7UniPfT3uhn5dHoM7C0Q6ydMoSmy0wKWwRCvzJD7Ro7qazbgmdTDUWUiG 6JgBXImz808U3QrexyB52YlYLfj6NCy+/7mLFLWrD7USf9F9OzR7/O5xlHOOpyqg/Qa7 GoP3VZkKFSdgXIchZmC2/J8xhB5jdfuMCsw69aBingTSZAK9SofN9OBYrYPLYih3p/9j 7DNS/V6240LqdLORONX/OIvsjZkFvBnEKClZnCnUusxAM5vkt4ZpuDXzYdzw81PjQtNI mmcg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g27-20020a63521b000000b00491ad1ca2f2si28403503pgb.835.2023.01.16.03.10.00; Mon, 16 Jan 2023 03:10:06 -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 + 51 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=20J=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=20J=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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; -- 2.30.2