Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2988656rdg; Tue, 17 Oct 2023 00:33:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGglciHfySWJXinOkM+8ypdoLNB5orpVDr5HNaMvIveBh2g+ubVvs9sXOT4sLdyrEEcku/g X-Received: by 2002:aa7:8895:0:b0:6be:2d29:3ceb with SMTP id z21-20020aa78895000000b006be2d293cebmr1611900pfe.4.1697528031093; Tue, 17 Oct 2023 00:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697528031; cv=none; d=google.com; s=arc-20160816; b=ncFZjP/LNZSp+hxazsnE2XzHySeBTGEOT9Cp1D8U9MpgUx49kr2V2McqRp8PUYYpxc bjXoyZFvrj1iXB+h6SR/XE/rRs379ZZV+CiCSURcalxUzlzy/0wvmtJ4RjtTvKi/RZjm UXM6ye3H2peNz7mccX3SKJx40TtXTyklQCMrz7vtMRRcoYiropjtb1kI3NBXOJQyvzLJ I0mGPadvjOXX9LTcJKmRmNm4dzTQXkQOauaFJXB/xwjRFLTR/2QJSUx6YBb2dnJ6EdaJ 1u8tvw/NRDSZJe55Kcl61+oQBIxPS2Ll4ra7ENAcVBM9bLmY+1Y4hZBv081bjcd/IKZc oMRA== 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=VdT5aVa9/7XZ19+lqwEAJM4k0MdpmtN5n6Vjg5pryhY=; fh=6Li/wmeFtOOtAQ+mNqghC/8hZY6wX/yI7MWUO3ucJrA=; b=OykNY4zTMYkaJcqz53poJgbwJe6yKrtLb70YG60Xfh/gJRfAGgpk56G04HOs1fTinS c4gs2YKo8Bclol/Vbgox3NttMUC1TmKjGVz5hdZ4Bx7GW+1fQwcE5UkTy130OsVYpaWK WOz8pNpvOd3/wuUPm5IlRf5fxso3EKEQSOjEjpLmMJRIdKffz1kkrs1JZz5xqXXcHlvV or3du6S4SelAhgBwhKcBOHVER+Me725n34j8AofRP6nX9MWX80rvbnTuCsoYmZ0PDvGd lNzAfRr7rR+zgn/yWd89QIiWf0gqx57UCTBCp55UGWI06ov00gFGx+3ajlI9OMKO862/ RlVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=klU1bxGn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h18-20020a056a001a5200b00691018e3f4dsi1084508pfv.201.2023.10.17.00.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:33:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=klU1bxGn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 288028056C46; Tue, 17 Oct 2023 00:33:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232725AbjJQHdb (ORCPT + 99 others); Tue, 17 Oct 2023 03:33:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232300AbjJQHda (ORCPT ); Tue, 17 Oct 2023 03:33:30 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8756C83 for ; Tue, 17 Oct 2023 00:33:27 -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=VdT5aVa9/7XZ19+lqwEAJM4k0MdpmtN5n6Vjg5pryhY=; b=klU1bxGnGJeCYlQOOkm2t/dYgOjJHhyL0acn7eHujkCKG0Qs9dnNGqcY S8jSb2wfFjn/BZuLZ4DRglwQVV6Evn4RB9nNRX1sg05foLD8njK0zwsaz hMSZ9AO1iF+aYlsqQLBq2OxxMrhqYLkAXD2PYOC6X9dpA6VuMGGPT+UZD Q=; Authentication-Results: mail2-relais-roc.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="131596095" Received: from clt-128-93-180-172.vpn.inria.fr ([128.93.180.172]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 09:33:25 +0200 Date: Tue, 17 Oct 2023 09:33:24 +0200 (CEST) From: Julia Lawall To: Gilbert Adikankwu cc: Julia Lawall , outreachy@lists.linux.dev, forest@alittletooquiet.net, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] staging: vt6655: Rename variable bUpdateBBVGA In-Reply-To: Message-ID: <4124e456-bad6-af50-8237-85efbba31076@inria.fr> References: <9bd935c464671db2654c654964812cc48f4603d3.1697495598.git.gilbertadikankwu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:33:48 -0700 (PDT) On Tue, 17 Oct 2023, Gilbert Adikankwu wrote: > On Tue, Oct 17, 2023 at 06:48:00AM +0200, Julia Lawall wrote: > > > > > > 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 > > Hello, > > bbvga is lowercase version of BBGVA. It was added with this commit 11b896e65f4bff7e412b3abca366ea0bdadc8834 OK thanks for the confirmation. julia > > Thanks > Gilbert > > > > > } > > > > > > 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 > > > > > > > > > > >