Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1332541iog; Sat, 25 Jun 2022 06:44:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJUiQ68lJiANHNR8RFouvYye+i3WFGAVh7YI/ZG5Fv04DyRsU8w67TE5mpxJhPu2ZfszbM X-Received: by 2002:a17:906:794a:b0:722:efd0:862f with SMTP id l10-20020a170906794a00b00722efd0862fmr3946073ejo.650.1656164685946; Sat, 25 Jun 2022 06:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656164685; cv=none; d=google.com; s=arc-20160816; b=IgwaDXsgbOjlsnz/N/eJUGyN3VslVMuuf4hTJkETTHV7AMomEs55GIZj0v5sUdT9si TZg1mKJ8/5aGH+hSI5+0UztLAPBLK5aGCFFCWEd6zXMsmjgBHM09mPqA4i1ftNwSCn80 67F6U4C/65LFDjeProFIXIi1ggIBrKIg3SHAd9GdA2pfl88Wyar0dpIZHYf85Afj4Noi Kw6ceK0hIUDDwLXSHWCTy985qNDKjJFShaWajHoi0yRYxOB91bk2HylFn+oJsew5VlP4 ELt5FNEVOyj+vieUeHf2EDUFYewswCYcavekzDIfR5nkyvEtyQOiJHnPPqACyT/57o3U oi1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Ave09IOGGsVI7o5wbNdPR+5oXfThrVBWl1Nc/iKMVrU=; b=ileYk6gc8BqqwUyJT7YTABCkqPAByWW/cXMg/YxjkouWV5tLerjbHGR4IrwUmCCD6E UZ8usrAtrYAFWYT+iE1gKXeKt8O/GJ2nb9JCG2WB2k0b971GlAzFcOxsyfDfGAYmeFcD 3e5ar+YROHY0J7W0XoUohQmJUL2I7UKC//EzM4C8cJ85UK44FmDbnIaaC8AJrZD5pZy5 Yjl7cypatftrY3dEFNpnFWBVcTmppzrigAPlkR+1Rsv0SXcYiHc9lG2LmcsakL4EcULR iN51s4G309FtkehI/pflvctNiuRY5xSH7+tZt9dscnzRp0HztUE38tDsjstHbirGTMCR sPqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hq7RmT+v; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a170906380400b00722e5217355si3474696ejc.607.2022.06.25.06.44.19; Sat, 25 Jun 2022 06:44:45 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=Hq7RmT+v; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233074AbiFYN2x (ORCPT + 99 others); Sat, 25 Jun 2022 09:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233132AbiFYN2s (ORCPT ); Sat, 25 Jun 2022 09:28:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A763FEE01 for ; Sat, 25 Jun 2022 06:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656163725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ave09IOGGsVI7o5wbNdPR+5oXfThrVBWl1Nc/iKMVrU=; b=Hq7RmT+v+Pdh0cS8qfkDg6Dn2Dg4yNsaPF0rjJ95rDeBvSy0M4RwYdRJ2WwZTHvvzhoB/p g1oMwnyXxvI6NgqVA5JMsLRPBpd9xw5963i3K6KHMQ8jsUXxumDgSZZjkAOsVkY1O7t8ek vmGQTRCYbkXqX5tsiCE0BP+OaCiVUBw= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-428-0V2-pV4mPjiFk5l0fxUb4A-1; Sat, 25 Jun 2022 09:28:44 -0400 X-MC-Unique: 0V2-pV4mPjiFk5l0fxUb4A-1 Received: by mail-qv1-f72.google.com with SMTP id g29-20020a0caadd000000b004702ed3c3f5so5224704qvb.11 for ; Sat, 25 Jun 2022 06:28:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Ave09IOGGsVI7o5wbNdPR+5oXfThrVBWl1Nc/iKMVrU=; b=MSjSdEGxKEn8TV9iHIjbFnH5SAbBfvxkaL3+vcLuQhjb9uSD0oe1IukUJZx3+L5+xv j375yp6hisVrRu5xMWVU326xNdMgEiJC3RgLBKt+5I4QUrPZcB8t1J/8+Iuy4bMWJRlV haD/dV6kmXLxVUKjumQLD9Ynhe/W5kBq05LNZvowG5MzetfIdwGCsEaE2NpgcEYI+PnI AFa6KuDdePk0k7SCvzTF6v3XUXJt0x5ojTMmejtxgT2k6yqKGVxD3BZteTa42F0xxB54 bpUKYo6hVDMqdNVv4qEbtFwX4tb4FrjwkijaBxnQ7IwhAr7fcn+qft2cNrWWwwuI86aZ X7iQ== X-Gm-Message-State: AJIora9DiH2B8uujaL0QeWIqeqeNMIGB3Qpry98fKrl/W9fm71U72zUO APz0r+2a2qbK0uROh/XCKmmO4roAbeaNvVE5S5+zEi/G33aYXKzV9uTBjKfs3ZidEcN+qmxcn/K aY+lUZIo5UZekVHpDVFvX4ryw X-Received: by 2002:a05:620a:2807:b0:6a6:6ef1:fb9d with SMTP id f7-20020a05620a280700b006a66ef1fb9dmr2799992qkp.146.1656163723887; Sat, 25 Jun 2022 06:28:43 -0700 (PDT) X-Received: by 2002:a05:620a:2807:b0:6a6:6ef1:fb9d with SMTP id f7-20020a05620a280700b006a66ef1fb9dmr2799976qkp.146.1656163723628; Sat, 25 Jun 2022 06:28:43 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id l14-20020ac8148e000000b002f9399ccefasm3289481qtj.34.2022.06.25.06.28.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Jun 2022 06:28:43 -0700 (PDT) Subject: Re: [PATCH v3 1/3] mfd: intel-m10-bmc: rename the local variables To: Tianfei Zhang , yilun.xu@intel.com, lee.jones@linaro.org Cc: hao.wu@intel.com, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, russell.h.weight@intel.com, matthew.gerlach@linux.intel.com References: <20220624092229.45854-1-tianfei.zhang@intel.com> <20220624092229.45854-2-tianfei.zhang@intel.com> From: Tom Rix Message-ID: Date: Sat, 25 Jun 2022 06:28:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220624092229.45854-2-tianfei.zhang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 6/24/22 2:22 AM, Tianfei Zhang wrote: > It had better use ddata for local variables which > directly interacts with dev_get_drvdata()/dev_set_drvdata(). This is a cleanup, not related to the patchset, it should be split from the patchset. Tom > > Signed-off-by: Tianfei Zhang > --- > 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 8db3bcf5fccc..7e521df29c72 100644 > --- a/drivers/mfd/intel-m10-bmc.c > +++ b/drivers/mfd/intel-m10-bmc.c > @@ -86,15 +86,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; > > @@ -111,11 +111,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; >