Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2805763rdg; Mon, 16 Oct 2023 16:01:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHxyUH1E7fzWj2dACBQoLGEaIy+QyPwD4t2LV5W+1A0ulVdbWTTVj4mBQKGLS+LJAaDuEI X-Received: by 2002:a17:90b:3d81:b0:27d:12e1:7e2c with SMTP id pq1-20020a17090b3d8100b0027d12e17e2cmr276177pjb.19.1697497282336; Mon, 16 Oct 2023 16:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697497282; cv=none; d=google.com; s=arc-20160816; b=JzF2FQbgI4nxaL57veA2ljMrDGi0IkLCBnbWG32v5cWOfq4liwC4q5Z2kA4ANVterj NtAEfl0LnUCUICIOBYQvjrmjlyqVsrc5hfZcxGRrJqNjiJk/1l5fOXAtixb9VQgHTWH2 gJ8hMqDG8ZYQvyML7BpxJK1mxDO3f73Y/1mpsQQ0/VRUmgQVxL9LwrUvD+1C4EEM88HK 5F5ZSrUI4L7kza5TgnIq2njakHTXFOpbjs/Opr3IskYfLinA6DG9MfgDSYGhqQf3/1U3 YXK/vPXLdMUez3pcEnSnJ7dTN+SKbLDvHdhuWsCCFcwGXqgIIsG0UAugnWzTz9VsGUiE ltag== 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=n2IYm2IJHgZqgLhrQSi41vFLt6AS98aZ4cbdFPTivNc=; fh=zF+ABB6M142DeB8jI5f0YB10JTabSFMh+t95kEDseyU=; b=wSG9DYuQzGW8YDbDG6QXXXFLQRqLMR3BTE1ks30OpzfluK74Paao8rK4gA4gYItcYO h8eKTSVjxGvnwkxR+yzy9q0d/3IwHPhzh2QYh1FySlpm/yJnrc1avITcCn79hhbIXLFu U9IqdgACK7sb1oLAZXEu/F5o01GkDs2SYubYzlNYEcw0MkXVrWPEzyRZtxOeUzGbhcCG 9k6tZxJd27gfeOvdq7dBZu6ULmcjAZKlgE/OCG3hHiOSHnnUJZeN0xA9vgxvxATXH/Oo ZlZ9K0Av2Jt1mA2+EfBIYPTnzWzKJeQgpTMn7PGk9DjCj9aGnxin/FuFlikmGTZ23N76 4pgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nW0U2rnz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c66-20020a633545000000b005a99db74449si371445pga.370.2023.10.16.16.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 16:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nW0U2rnz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EFE90805B9EC; Mon, 16 Oct 2023 16:01:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234270AbjJPXBO (ORCPT + 99 others); Mon, 16 Oct 2023 19:01:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234213AbjJPXBM (ORCPT ); Mon, 16 Oct 2023 19:01:12 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEEAEE1 for ; Mon, 16 Oct 2023 16:01:04 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-d9a6399cf78so4325201276.0 for ; Mon, 16 Oct 2023 16:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697497264; x=1698102064; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n2IYm2IJHgZqgLhrQSi41vFLt6AS98aZ4cbdFPTivNc=; b=nW0U2rnzzGhOKakpKdXG0aNsSwKl34/D3c0Pt1N0UC65832TFzgDqp5dnchRejVLKF iccDaD3U5bsqg8DNz3XIUx52fuGepN9TNBOApo9OphtfL4WpNntfGH5aT0m4KWmn4uZR 0cd6HloELGbA2YM+K4GjchYAsHUge9Cgh+fiEMVQXs8vRSHzqetH9tbfjne5MzFz0QB5 U5IvJUkGS/eecxq8mPGzdDlPWW9XycFZ7SnCNoTJQE/GiRquOZtG7jj+g2uWPwSZ2nzy O83KHJ+7s1tV9CiJtZ0wAOoAzMmwjtzctb+TNVuD19DIQh+vbsf05DKDYL66t7+QTDqT KBWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697497264; x=1698102064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n2IYm2IJHgZqgLhrQSi41vFLt6AS98aZ4cbdFPTivNc=; b=YyPuO+OS2RdfhR23n7EYsZDIGEmP4Eyty2W7MWYin/TgUScp3xORdRWyOHRPp9x4Pl 3WBYqQowHmwTQLkbsRzY4oCF2v9GWIgYLZaUgDFjMDxWC6rDzsonv0yLwjVGN/u6cZxG gV11JftihvPaNDU2mPtkmCitFl66YsnGNRcX7n1SKLdJQgMt+t0v+sBhNv3Q7dn8k4Be nFFKrNOZxw3Lvz1Um4y4K12dEyuffFnVFqVkKac7jd8MAgU3cYpiCdB/IMF/NRGyXYke btw4OnfldB8Q7/4+mYBoryiXAfx0XXxOEZdFQZLyQ1O9/y1TmSkN0JPIWEOy60xziz1u i3FQ== X-Gm-Message-State: AOJu0YxNYR1e/bcOfHU0ddLMiSWBvPyyw6oj7YbTWVW6qt3KjGT2vYIp mOfDFYfliZrlEfHq+XbQLTph/XOzate/pUObcfM= X-Received: by 2002:a25:9004:0:b0:d9a:45e7:c7f1 with SMTP id s4-20020a259004000000b00d9a45e7c7f1mr105065ybl.30.1697497263716; Mon, 16 Oct 2023 16:01:03 -0700 (PDT) Received: from gilbert-PC ([105.112.31.148]) by smtp.gmail.com with ESMTPSA id 5-20020a250905000000b00d9b33e0b952sm58047ybj.8.2023.10.16.16.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 16:01:03 -0700 (PDT) From: Gilbert Adikankwu To: forest@alittletooquiet.net, gregkh@linuxfoundation.org, outreachy@lists.linux.dev Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gilbert Adikankwu Subject: [PATCH 3/4] staging: vt6655: Rename variable byCurPwr Date: Mon, 16 Oct 2023 23:58:56 +0100 Message-Id: <4c24962988ac990ae21c95e4a1754cfabfd2db8d.1697495598.git.gilbertadikankwu@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 16:01:20 -0700 (PDT) Remove byte Type encoding "by" from variable name and replace camelcase with snakecase Mute checkpatch.pl error: CHECK: Avoid CamelCase: Signed-off-by: Gilbert Adikankwu --- drivers/staging/vt6655/channel.c | 4 ++-- drivers/staging/vt6655/device.h | 2 +- drivers/staging/vt6655/device_main.c | 2 +- drivers/staging/vt6655/rf.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c index 7b864136a0a8..771c1364b0f0 100644 --- a/drivers/staging/vt6655/channel.c +++ b/drivers/staging/vt6655/channel.c @@ -118,9 +118,9 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) /* set HW default power register */ VT6655_MAC_SELECT_PAGE1(priv->port_offset); RFbSetPower(priv, RATE_1M, priv->current_ch); - iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWRCCK); + iowrite8(priv->cur_pwr, priv->port_offset + MAC_REG_PWRCCK); RFbSetPower(priv, RATE_6M, priv->current_ch); - iowrite8(priv->byCurPwr, priv->port_offset + MAC_REG_PWROFDM); + iowrite8(priv->cur_pwr, priv->port_offset + MAC_REG_PWROFDM); VT6655_MAC_SELECT_PAGE0(priv->port_offset); spin_unlock_irqrestore(&priv->lock, flags); diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index b3ac6237010b..6df1694d556b 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -264,7 +264,7 @@ struct vnt_private { /* For RF Power table */ unsigned char byCCKPwr; unsigned char byOFDMPwrG; - unsigned char byCurPwr; + unsigned char cur_pwr; char byCurPwrdBm; unsigned char abyCCKPwrTbl[CB_MAX_CHANNEL_24G + 1]; unsigned char abyOFDMPwrTbl[CB_MAX_CHANNEL + 1]; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index b654fc24d725..2152c6850e61 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -359,7 +359,7 @@ static void device_init_registers(struct vnt_private *priv) RFbInit(priv); /* Get Desire Power Value */ - priv->byCurPwr = 0xFF; + priv->cur_pwr = 0xFF; priv->byCCKPwr = SROMbyReadEmbedded(priv->port_offset, EEP_OFS_PWR_CCK); priv->byOFDMPwrG = SROMbyReadEmbedded(priv->port_offset, EEP_OFS_PWR_OFDMG); diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c index bf9a10563b12..d319ec21c97b 100644 --- a/drivers/staging/vt6655/rf.c +++ b/drivers/staging/vt6655/rf.c @@ -438,12 +438,12 @@ bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH) break; } - if (priv->byCurPwr == byPwr) + if (priv->cur_pwr == byPwr) return true; ret = RFbRawSetPower(priv, byPwr, rate); if (ret) - priv->byCurPwr = byPwr; + priv->cur_pwr = byPwr; return ret; } -- 2.34.1