Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2928274rdg; Mon, 16 Oct 2023 21:48:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgDvPkngLZkkPtUxMQE0B2pLc4YFvn39pRqX00TXPttX3XztRwzRn5HWCaiTZ0WYX1SP27 X-Received: by 2002:a05:6a20:1607:b0:15e:9c50:73ee with SMTP id l7-20020a056a20160700b0015e9c5073eemr1195849pzj.53.1697518095162; Mon, 16 Oct 2023 21:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697518095; cv=none; d=google.com; s=arc-20160816; b=dZGq6u3kmr2UFbBUXcuuOBXwkktBDEUW1/r3Ce1VF/Jv8B7zdVMB6uqfGNV3qDJl/K Y3Qdlavlse5JYiggVD/ZQVcznK8049v5Q0YSviMVaQEAPum2IyQYpZuqOgEXujHMkKRD NMUg+bvSXR8zNac9AA2AZrpFBICc5PmxT0MBuf5sDiib1moD3MM/bIXgqCq5/2E7+cny 7F/mGEzvOJLgO9VN1TsLJVscTzJczpW/A5108u+43FTSz0bazm1lg3jrWk+NemJ6YdMx wuLarNDxtyLnhW0iQE/7JA0ltqxUvtrlQp83/pcjWzFIgGNxRUqDIAFuI96VCu20iZnQ Pplg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=91VBfy8MlK6h8xhN26uGVvVTiR7aGe5n9JQ5Xt05oGA=; fh=1nhEBYpitjBmJPupf4UBmOlgh6SNxvKIOm6TUYT899c=; b=zhrjlzzNMmIs5n/2DUxOsNirDZJAJIRvCTXkMf2Op9+EEEzG3Fi77cURI12mDWYWPT FdVfz9dhjCG1A2DaQkxOOmn6D5iAgbapGjR1KOSQwanLX4Q9oJkgfGOrOIaI5DNjS1fa mda+RVewINawfgUVTHBeE0I+4G7o/0qIfBV4QbJtlaOXSTR8MG65aZDie5srSCNC75zy 9kq2u5VYn2I8wFJPgPyIyijH4Pra45Jn3NUr4J4bJ0yti5MM66YYJ580q9z633FR7dH9 nm2W9uu3fph5Oz6WeAFNg38GqgV/HgJTjEuRkrDUcPJTycfD5elhkgvcY4aU5YVNov7D hJRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=a37R7m26; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f14-20020a170902ce8e00b001c4248c3f8bsi985840plg.559.2023.10.16.21.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 21:48:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=a37R7m26; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5EEC6802FBAC; Mon, 16 Oct 2023 21:48:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234276AbjJQEsJ (ORCPT + 99 others); Tue, 17 Oct 2023 00:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234361AbjJQEsH (ORCPT ); Tue, 17 Oct 2023 00:48:07 -0400 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3FEEF2 for ; Mon, 16 Oct 2023 21:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=91VBfy8MlK6h8xhN26uGVvVTiR7aGe5n9JQ5Xt05oGA=; b=a37R7m26HP2Xe8reoHtzOYjQUFQP0woq4SOIxjsdGTpuHCN8ZDBCzJgc b+v9IuF087pystSS9fuOaxcHudS84S4EiCFGEGDPGJpDEHeDgcRIGrOg7 vMprw/2KdTBzZD24+gR1GAvHOtEBnb2WDM+ob/zIqRow+UX9G5/3R2r1l E=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,231,1694728800"; d="scan'208";a="68896285" Received: from unknown (HELO hadrien) ([87.129.180.234]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 06:48:01 +0200 Date: Tue, 17 Oct 2023 06:48:00 +0200 (CEST) From: Julia Lawall To: Gilbert Adikankwu cc: forest@alittletooquiet.net, gregkh@linuxfoundation.org, outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] staging: vt6655: Rename variable bUpdateBBVGA In-Reply-To: <9bd935c464671db2654c654964812cc48f4603d3.1697495598.git.gilbertadikankwu@gmail.com> Message-ID: References: <9bd935c464671db2654c654964812cc48f4603d3.1697495598.git.gilbertadikankwu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 21:48:14 -0700 (PDT) On Mon, 16 Oct 2023, Gilbert Adikankwu wrote: > Remove bool Type encoding "b" from variable name and replace camelcase > with snakecase. > > Mute checkpatch.pl error: > > CHECK: Avoid CamelCase: > > Signed-off-by: Gilbert Adikankwu > --- > drivers/staging/vt6655/baseband.c | 2 +- > drivers/staging/vt6655/channel.c | 2 +- > drivers/staging/vt6655/device.h | 2 +- > drivers/staging/vt6655/device_main.c | 6 +++--- > 4 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c > index 7d47b266b87e..f7824396c5ff 100644 > --- a/drivers/staging/vt6655/baseband.c > +++ b/drivers/staging/vt6655/baseband.c > @@ -2087,7 +2087,7 @@ bool bb_vt3253_init(struct vnt_private *priv) > /* {{ RobertYu: 20050104 */ > } else { > /* No VGA Table now */ > - priv->bUpdateBBVGA = false; > + priv->update_bbvga = false; > priv->bbvga[0] = 0x1C; I wonder about the name bbvga in the line above. Does the initial b mean byte or is it a lowercase version of BBVGA? julia > } > > diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c > index 6ac7d470c041..c11bc2dbc356 100644 > --- a/drivers/staging/vt6655/channel.c > +++ b/drivers/staging/vt6655/channel.c > @@ -86,7 +86,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) > return ret; > > /* Set VGA to max sensitivity */ > - if (priv->bUpdateBBVGA && > + if (priv->update_bbvga && > priv->bbvga_current != priv->bbvga[0]) { > priv->bbvga_current = priv->bbvga[0]; > > diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h > index 68bfadacfa7c..b166d296b82d 100644 > --- a/drivers/staging/vt6655/device.h > +++ b/drivers/staging/vt6655/device.h > @@ -246,7 +246,7 @@ struct vnt_private { > unsigned char byAutoFBCtrl; > > /* For Update BaseBand VGA Gain Offset */ > - bool bUpdateBBVGA; > + bool update_bbvga; > unsigned int uBBVGADiffCount; > unsigned char bbvga_new; > unsigned char bbvga_current; > diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c > index b08fcf7e6edc..b654fc24d725 100644 > --- a/drivers/staging/vt6655/device_main.c > +++ b/drivers/staging/vt6655/device_main.c > @@ -179,7 +179,7 @@ device_set_options(struct vnt_private *priv) > priv->byBBType = priv->opts.bbp_type; > priv->byPacketType = priv->byBBType; > priv->byAutoFBCtrl = AUTO_FB_0; > - priv->bUpdateBBVGA = true; > + priv->update_bbvga = true; > priv->preamble_type = 0; > > pr_debug(" byShortRetryLimit= %d\n", (int)priv->byShortRetryLimit); > @@ -423,7 +423,7 @@ static void device_init_registers(struct vnt_private *priv) > /* initialize BBP registers */ > bb_vt3253_init(priv); > > - if (priv->bUpdateBBVGA) { > + if (priv->update_bbvga) { > priv->bbvga_current = priv->bbvga[0]; > priv->bbvga_new = priv->bbvga_current; > bb_set_vga_gain_offset(priv, priv->bbvga[0]); > @@ -1040,7 +1040,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) > long dbm; > int i; > > - if (!priv->bUpdateBBVGA) > + if (!priv->update_bbvga) > return; > > if (priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL) > -- > 2.34.1 > > >