From patchwork Tue Nov 8 14:42:56 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: 17080 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2752865wru; Tue, 8 Nov 2022 06:49:38 -0800 (PST) X-Google-Smtp-Source: AMsMyM5umCMOxPKzpO07VE5Lfq9ca2fTpg2d8glMc4cejtaKk8gk8u8RcjZ/21X8hcDYzT3vaNXf X-Received: by 2002:a17:906:6a26:b0:7ad:975c:9785 with SMTP id qw38-20020a1709066a2600b007ad975c9785mr57274309ejc.25.1667918978608; Tue, 08 Nov 2022 06:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667918978; cv=none; d=google.com; s=arc-20160816; b=qLpqrV1M1aP1yZHoJ+J7u0i2OdZMQrpE9YVHzLTGhnKHzOxnjomHKx13Mk3e4Mz3rN zGeNkHpaOIPl8RbKjaHjU1TTMgEfsxQqMHf3azeseKH8RigUOU4x8VHng2MmF6bDhzMz /3peGrJ9HsjCKrKdhavam0lcvFuRSTtJLUGM1IXvzBmMpO5ZAtblGbQcdCyasGdb+lSC 7jL/guN2el1kwlulXsri2Ul0GIRrl1x6jk0WridnSYlFjTxNPZmqWivnSS/Fnm6zOIfF QAp3cmoypvONDC4sx0hUGyllfLGE4pDaH67EszXuLYnQutrukqglTKSdA5QZaoPRjNbo Hyzw== 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=uwj2xc2jgH5HGtmuYSWnwklJ4mJ4vtJQkZsDAOQ0ZiQ=; b=pRi+69Betd3WVVvQ8Gz2z0UlHBNOOFhhvQp9QueCSTZCadM7J1xB9SWlPTTjogJSq3 k9diIIMYUen4rDpMiIdeFdsxhyHdjN4be7LKYfPIIMjCFR5GiS68xI3ye75gBqH4mxBI PWpx74tasEClH55PqhvDUqYvjAmrI21z3M1YB5AUmXTO0q6iI8zm10JzsbbySsIVgHy7 zdw5exdb+ULpbIjIx6eLsAIRh1mcM0ge6m+U6i8OUACrDrMW0X61MYawLrMc3/+HGSf3 5w1vyTMukGKPZyOIxuLd79mKznwoWI4DrtRvFEjSMzTNNUVERrhGKq0aayRea7aZmvdg BK/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nKO3VeL5; 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 by12-20020a0564021b0c00b00458d94f1a45si10342163edb.413.2022.11.08.06.49.14; Tue, 08 Nov 2022 06:49:38 -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=nKO3VeL5; 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 S234444AbiKHOnp (ORCPT + 99 others); Tue, 8 Nov 2022 09:43:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234474AbiKHOnh (ORCPT ); Tue, 8 Nov 2022 09:43:37 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEE6ED2D6; Tue, 8 Nov 2022 06:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667918610; x=1699454610; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qivsivPDEJsUiYkYuhDs3R/Ifrl+68cqLkvnLoS0vU8=; b=nKO3VeL5gr4uOQcFvLbSRRWGWSHBqoQPh5D7IsV02ZXbGB0zQZDLSGFh f1dMmZQlWjnnPqZVmwusHtxUzcmWnVEDOwsh71fjO/SYoxUykqcRQq/qT EffObFOUnjCch9+bMpb018c4GwXjTSScOJwKjCk0EEwkq8/6drWJLs5D6 LFBPSQ6bT7dRFaJH7GU6Z3liRbBWNwUPuKgDo9I33ksXRKILuzQe9ixT/ A9XB1OmKZ+4QCc3f2ai2JN8Yhzgqdx/h57lo2uxfrUu3O+cTmxC3gIADQ 10VCuLm1d2W2Qhm7EHrkdoTWRn0nFKown9c/zoVqMHRoilM8aHhIrCVEX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="374979568" X-IronPort-AV: E=Sophos;i="5.96,148,1665471600"; d="scan'208";a="374979568" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 06:43:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="638809735" X-IronPort-AV: E=Sophos;i="5.96,148,1665471600"; d="scan'208";a="638809735" Received: from ppkrause-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.249.44.73]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 06:43:27 -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 , linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 03/12] mfd: intel-m10-bmc: Rename the local variables Date: Tue, 8 Nov 2022 16:42:56 +0200 Message-Id: <20221108144305.45424-4-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221108144305.45424-1-ilpo.jarvinen@linux.intel.com> References: <20221108144305.45424-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?1748939811306492300?= X-GMAIL-MSGID: =?utf-8?q?1748939811306492300?= 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 762808906380..80487a2f0024 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;