Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp780390rdb; Sun, 1 Oct 2023 05:26:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkzSstHIXUU7YoyKSvv9DvTOeS+nvTQ9dJXztc6IJbQJvcKzxEyanvHqgRKIdpDP/C/A+u X-Received: by 2002:a05:6e02:219d:b0:34f:d674:63e8 with SMTP id j29-20020a056e02219d00b0034fd67463e8mr12255279ila.22.1696163169938; Sun, 01 Oct 2023 05:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696163169; cv=none; d=google.com; s=arc-20160816; b=vR1xbh7AHmNein044ngQygusPIRYJYk+V11WNzoBE3iUrFeUUoW6KFhLZdeb8c3/cm 0IDTHhlZ2Mxk7UufxJ5dW6phqLqjfafiyiBeTU2QEsm2d/f3L4GMFSAgJX+lsbj0SkYn pqV039xRfxsQpOKLHzYjddKBBSdq3YJkHHRQeN1vYmKA1BmV5vbQDsxCRd5/SfHqxrAu ovvyelz0X9Vztf8+ffEoF9OE9PcAbbPeGcu9R4oQkVeD+ry2YZVH1xdA3KJOSQVyoNaM ypjHo7/zKncBPXDJIuYsH8ahNUi33JA4NqHfPqS9RehOhkbYOvBxI5PPhNMIotN1nO5+ 5+Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=RRFoBKVV7I1mTgjaVz0LFS8Idil3+mH+AD5v2iGxmww=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=BybNhm+78PoUgK3III9iMBQ4fM25vXKi7nrThj0RJd/7JnS5spzC8UxUaWVhWoHiPd Jf6T0HqSfnnpokAOIZnwyVt6deDHLqHdYOXdgSLtg9gzaMyXFSWplVTVbaUKFrrj5ZHJ nII2w011eaWrjwG05Uqt4NKXhy7y9B3/Stqr+YYZFsirmvA2qdkG4VPjpytlbtvNd0aR dA0SNCC4mYs+mYVxGiq4acaTy3pIc8yBkPRfIEaTe2VYzFkWgfsez8TX8fNs/HPLWPUr V5XuY2UFGuAsL6ursjkjWZ/Szc63TMUyi0ivouQz6q9Y8RrLkqdhamhowGcVyBW++wrF Y9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XLh504kz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0056a670ebd73si29666670pgu.498.2023.10.01.05.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 05:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XLh504kz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id CAA418227784; Sat, 30 Sep 2023 23:52:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234351AbjJAGnZ (ORCPT + 99 others); Sun, 1 Oct 2023 02:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233771AbjJAGnY (ORCPT ); Sun, 1 Oct 2023 02:43:24 -0400 Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B729F for ; Sat, 30 Sep 2023 23:43:20 -0700 (PDT) Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-57ba2cd3507so6649536eaf.2 for ; Sat, 30 Sep 2023 23:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696142600; x=1696747400; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=RRFoBKVV7I1mTgjaVz0LFS8Idil3+mH+AD5v2iGxmww=; b=XLh504kzD3q5NwOWSWbP6zngTx/kTiReQs8wnMscXH4bsn93l1dX0C4nG4FmMgc+of Rtf+1fzIOzysSvBgjWr4jRR4EQF6TiuLSpHMgJ6jNwJZdScmeyzSnw7LkKBoNOGct/T3 p3VhgZUXCgZXaz/uLImYLH6BjNj6jMGP0xT4E/jX3r0ER6P5MntnyDsEta4TNVulmMPg HrursuMEVEWHnGPa9Xk5i5qIDYsvbN3AXCnGeDo9YsVUiX4Cn9rvrfMQxEBKd2AMG4QN PyStB4JL/XU2bgtwUGkdc92lFYSGVyIdILvEU04fIY9+6sk27Y+1sTub/js1kkP7vMc4 YUhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696142600; x=1696747400; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RRFoBKVV7I1mTgjaVz0LFS8Idil3+mH+AD5v2iGxmww=; b=glTmrb6FzqOIq4peikq4c85eT8hSc7S2o7PIScN+v9bBRbk3XdCthdMljDO+77c5Uz 8fmQxmUOZ0wB/S/6bmjQQokZlhq5yUOPc9z4AjDiXquBvF4gkl0q72i1XvqsmORweX+m gIjwheiZNh2zWkpHah89Gfwj0loGCohVfLaANikBziDch/5yByRVWcAcA3jcRqHawaA2 9Ao/cbW1h18uj1E//FoXuGWDIO6+i1ChqYFbEZNPQySevNUE8Cken5Lb6oJ0ghvUdAun GzUuII9p+8Wil4HpcWlZiBlyvkSPBX2Amg7B0p9RrT2SnaXIoHurwO/9kG3pGiBgX8h8 +Xqg== X-Gm-Message-State: AOJu0Yzml0iPOwJ61s2frEN3AnJGhuausfGh/vVhVQW/u3Nr5PU4QOlm U1V1sw+ZihimnAhM0l49I7Q= X-Received: by 2002:a05:6358:7250:b0:13a:a85b:d024 with SMTP id i16-20020a056358725000b0013aa85bd024mr9378607rwa.30.1696142599541; Sat, 30 Sep 2023 23:43:19 -0700 (PDT) Received: from ubuntu.myguest.virtualbox.org ([171.61.192.246]) by smtp.gmail.com with ESMTPSA id z35-20020a056a001da300b00692c5b1a731sm13405590pfw.186.2023.09.30.23.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 23:43:18 -0700 (PDT) Date: Sun, 1 Oct 2023 12:13:14 +0530 From: Pavan Bobba To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Type encoding info dropped from arrary name "abyBBVGA" and variable names "byBBVGACurrent", "byBBVGANew" Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1mwXnP3tkU9W1WO7" Content-Disposition: inline X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,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 (howler.vger.email [0.0.0.0]); Sat, 30 Sep 2023 23:52:14 -0700 (PDT) --1mwXnP3tkU9W1WO7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This patchset series consist of fixes to issues found by checkpatch Pavan Bobba (3): staging: vt6655: Type encoding info dropped from array name "abyBBVGA" staging: vt6655: Type encoding info dropped from variable name "byBBVGACurrent" staging: vt6655: Type encoding info dropped from variable name "byBBVGANew" drivers/staging/vt6655/baseband.c | 40 ++++++++++++++-------------- drivers/staging/vt6655/channel.c | 6 ++--- drivers/staging/vt6655/device.h | 6 ++--- drivers/staging/vt6655/device_main.c | 24 ++++++++--------- 4 files changed, 38 insertions(+), 38 deletions(-) -- 2.34.1 --1mwXnP3tkU9W1WO7 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-PATCH-1-3-staging-vt6655-Type-encoding-info-dropped-.patch" From 6894dff7cc5a780627e0335e8f5cdc8b353eea53 Mon Sep 17 00:00:00 2001 Message-Id: <6894dff7cc5a780627e0335e8f5cdc8b353eea53.1696141471.git.opensource206@gmail.com> In-Reply-To: References: From: Pavan Bobba Date: Thu, 28 Sep 2023 18:27:27 +0530 Subject: [PATCH 1/3] [PATCH 1/3] staging: vt6655: Type encoding info dropped from array name "abyBBVGA" To: Greg Kroah-Hartman ,linux-staging@lists.linux.dev,linux-kernel@vger.kernel.org array name "abyBBVGA" updated like below: a.type encoding info dropped from name b.camelcase name replaced by snakecase Issue found by checkpatch Signed-off-by: Pavan Bobba --- drivers/staging/vt6655/baseband.c | 38 ++++++++++++++-------------- drivers/staging/vt6655/channel.c | 4 +-- drivers/staging/vt6655/device.h | 2 +- drivers/staging/vt6655/device_main.c | 8 +++--- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index 0ae2ab3987c6..a19a75f5d761 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c @@ -2016,10 +2016,10 @@ bool bb_vt3253_init(struct vnt_private *priv) iowrite32(0x23, iobase + MAC_REG_ITRTMSET); vt6655_mac_reg_bits_on(iobase, MAC_REG_PAPEDELAY, BIT(0)); } - priv->abyBBVGA[0] = 0x18; - priv->abyBBVGA[1] = 0x0A; - priv->abyBBVGA[2] = 0x0; - priv->abyBBVGA[3] = 0x0; + priv->bbvga[0] = 0x18; + priv->bbvga[1] = 0x0A; + priv->bbvga[2] = 0x0; + priv->bbvga[3] = 0x0; priv->dbm_threshold[0] = -70; priv->dbm_threshold[1] = -50; priv->dbm_threshold[2] = 0; @@ -2034,10 +2034,10 @@ bool bb_vt3253_init(struct vnt_private *priv) result &= bb_write_embedded(priv, vt3253b0_agc[ii][0], vt3253b0_agc[ii][1]); - priv->abyBBVGA[0] = 0x1C; - priv->abyBBVGA[1] = 0x10; - priv->abyBBVGA[2] = 0x0; - priv->abyBBVGA[3] = 0x0; + priv->bbvga[0] = 0x1C; + priv->bbvga[1] = 0x10; + priv->bbvga[2] = 0x0; + priv->bbvga[3] = 0x0; priv->dbm_threshold[0] = -70; priv->dbm_threshold[1] = -48; priv->dbm_threshold[2] = 0; @@ -2056,10 +2056,10 @@ bool bb_vt3253_init(struct vnt_private *priv) iowrite8(0x23, iobase + MAC_REG_ITRTMSET); vt6655_mac_reg_bits_on(iobase, MAC_REG_PAPEDELAY, BIT(0)); - priv->abyBBVGA[0] = 0x14; - priv->abyBBVGA[1] = 0x0A; - priv->abyBBVGA[2] = 0x0; - priv->abyBBVGA[3] = 0x0; + priv->bbvga[0] = 0x14; + priv->bbvga[1] = 0x0A; + priv->bbvga[2] = 0x0; + priv->bbvga[3] = 0x0; priv->dbm_threshold[0] = -60; priv->dbm_threshold[1] = -50; priv->dbm_threshold[2] = 0; @@ -2074,10 +2074,10 @@ bool bb_vt3253_init(struct vnt_private *priv) result &= bb_write_embedded(priv, vt3253b0_agc[ii][0], vt3253b0_agc[ii][1]); - priv->abyBBVGA[0] = 0x1C; - priv->abyBBVGA[1] = 0x10; - priv->abyBBVGA[2] = 0x0; - priv->abyBBVGA[3] = 0x0; + priv->bbvga[0] = 0x1C; + priv->bbvga[1] = 0x10; + priv->bbvga[2] = 0x0; + priv->bbvga[3] = 0x0; priv->dbm_threshold[0] = -70; priv->dbm_threshold[1] = -48; priv->dbm_threshold[2] = 0; @@ -2088,7 +2088,7 @@ bool bb_vt3253_init(struct vnt_private *priv) } else { /* No VGA Table now */ priv->bUpdateBBVGA = false; - priv->abyBBVGA[0] = 0x1C; + priv->bbvga[0] = 0x1C; } if (by_local_id > REV_ID_VT3253_A1) { @@ -2126,7 +2126,7 @@ bb_set_short_slot_time(struct vnt_private *priv) /* patch for 3253B0 Baseband with Cardbus module */ bb_read_embedded(priv, 0xE7, &by_bb_vga); - if (by_bb_vga == priv->abyBBVGA[0]) + if (by_bb_vga == priv->bbvga[0]) by_bb_rx_conf |= 0x20; /* 0010 0000 */ bb_write_embedded(priv, 0x0A, by_bb_rx_conf); /* CR10 */ @@ -2140,7 +2140,7 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data) bb_read_embedded(priv, 0x0A, &by_bb_rx_conf); /* CR10 */ /* patch for 3253B0 Baseband with Cardbus module */ - if (by_data == priv->abyBBVGA[0]) + if (by_data == priv->bbvga[0]) by_bb_rx_conf |= 0x20; /* 0010 0000 */ else if (priv->short_slot_time) by_bb_rx_conf &= 0xDF; /* 1101 1111 */ diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c index e90e0b43505d..e20701815db9 100644 --- a/drivers/staging/vt6655/channel.c +++ b/drivers/staging/vt6655/channel.c @@ -87,8 +87,8 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) /* Set VGA to max sensitivity */ if (priv->bUpdateBBVGA && - priv->byBBVGACurrent != priv->abyBBVGA[0]) { - priv->byBBVGACurrent = priv->abyBBVGA[0]; + priv->byBBVGACurrent != priv->bbvga[0]) { + priv->byBBVGACurrent = priv->bbvga[0]; bb_set_vga_gain_offset(priv, priv->byBBVGACurrent); } diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 8c90539cc3d7..b662c74a2dc7 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -250,7 +250,7 @@ struct vnt_private { unsigned int uBBVGADiffCount; unsigned char byBBVGANew; unsigned char byBBVGACurrent; - unsigned char abyBBVGA[BB_VGA_LEVEL]; + unsigned char bbvga[BB_VGA_LEVEL]; long dbm_threshold[BB_VGA_LEVEL]; unsigned char byBBPreEDRSSI; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index f76f482f4c06..385848df8848 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -424,9 +424,9 @@ static void device_init_registers(struct vnt_private *priv) bb_vt3253_init(priv); if (priv->bUpdateBBVGA) { - priv->byBBVGACurrent = priv->abyBBVGA[0]; + priv->byBBVGACurrent = priv->bbvga[0]; priv->byBBVGANew = priv->byBBVGACurrent; - bb_set_vga_gain_offset(priv, priv->abyBBVGA[0]); + bb_set_vga_gain_offset(priv, priv->bbvga[0]); } bb_set_rx_antenna_mode(priv, priv->byRxAntennaMode); @@ -1053,7 +1053,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) for (i = 0; i < BB_VGA_LEVEL; i++) { if (dbm < priv->dbm_threshold[i]) { - priv->byBBVGANew = priv->abyBBVGA[i]; + priv->byBBVGANew = priv->bbvga[i]; break; } } @@ -1510,7 +1510,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw, priv->short_slot_time = false; CARDbSetPhyParameter(priv, priv->byBBType); - bb_set_vga_gain_offset(priv, priv->abyBBVGA[0]); + bb_set_vga_gain_offset(priv, priv->bbvga[0]); } if (changed & BSS_CHANGED_TXPOWER) -- 2.34.1 --1mwXnP3tkU9W1WO7 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0002-PATCH-2-3-staging-vt6655-Type-encoding-info-dropped-.patch" From d40eb60e6cccf2b5432904abb74bc009fac5e2e1 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Pavan Bobba Date: Thu, 28 Sep 2023 20:26:02 +0530 Subject: [PATCH 2/3] [PATCH 2/3] staging: vt6655: Type encoding info dropped from variable name "byBBVGACurrent" To: Greg Kroah-Hartman ,linux-staging@lists.linux.dev,linux-kernel@vger.kernel.org variable name "byBBVGACurrent" updated like below: a.type encoding info dropped from name b.camelcase name replaced by snakecase Issue found by checkpatch Signed-off-by: Pavan Bobba --- drivers/staging/vt6655/baseband.c | 2 +- drivers/staging/vt6655/channel.c | 6 +++--- drivers/staging/vt6655/device.h | 2 +- drivers/staging/vt6655/device_main.c | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c index a19a75f5d761..7d47b266b87e 100644 --- a/drivers/staging/vt6655/baseband.c +++ b/drivers/staging/vt6655/baseband.c @@ -2146,7 +2146,7 @@ void bb_set_vga_gain_offset(struct vnt_private *priv, unsigned char by_data) by_bb_rx_conf &= 0xDF; /* 1101 1111 */ else by_bb_rx_conf |= 0x20; /* 0010 0000 */ - priv->byBBVGACurrent = by_data; + priv->bbvga_current = by_data; bb_write_embedded(priv, 0x0A, by_bb_rx_conf); /* CR10 */ } diff --git a/drivers/staging/vt6655/channel.c b/drivers/staging/vt6655/channel.c index e20701815db9..6ac7d470c041 100644 --- a/drivers/staging/vt6655/channel.c +++ b/drivers/staging/vt6655/channel.c @@ -87,10 +87,10 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch) /* Set VGA to max sensitivity */ if (priv->bUpdateBBVGA && - priv->byBBVGACurrent != priv->bbvga[0]) { - priv->byBBVGACurrent = priv->bbvga[0]; + priv->bbvga_current != priv->bbvga[0]) { + priv->bbvga_current = priv->bbvga[0]; - bb_set_vga_gain_offset(priv, priv->byBBVGACurrent); + bb_set_vga_gain_offset(priv, priv->bbvga_current); } /* clear NAV */ diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index b662c74a2dc7..9ae7171d02ee 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -249,7 +249,7 @@ struct vnt_private { bool bUpdateBBVGA; unsigned int uBBVGADiffCount; unsigned char byBBVGANew; - unsigned char byBBVGACurrent; + unsigned char bbvga_current; unsigned char bbvga[BB_VGA_LEVEL]; long dbm_threshold[BB_VGA_LEVEL]; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 385848df8848..6990129ceb10 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -424,8 +424,8 @@ static void device_init_registers(struct vnt_private *priv) bb_vt3253_init(priv); if (priv->bUpdateBBVGA) { - priv->byBBVGACurrent = priv->bbvga[0]; - priv->byBBVGANew = priv->byBBVGACurrent; + priv->bbvga_current = priv->bbvga[0]; + priv->byBBVGANew = priv->bbvga_current; bb_set_vga_gain_offset(priv, priv->bbvga[0]); } @@ -1058,7 +1058,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) } } - if (priv->byBBVGANew == priv->byBBVGACurrent) { + if (priv->byBBVGANew == priv->bbvga_current) { priv->uBBVGADiffCount = 1; return; } @@ -1072,7 +1072,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) dev_dbg(&priv->pcid->dev, "First RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n", (int)dbm, priv->byBBVGANew, - priv->byBBVGACurrent, + priv->bbvga_current, (int)priv->uBBVGADiffCount); } @@ -1080,7 +1080,7 @@ static void vnt_check_bb_vga(struct vnt_private *priv) dev_dbg(&priv->pcid->dev, "RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n", (int)dbm, priv->byBBVGANew, - priv->byBBVGACurrent, + priv->bbvga_current, (int)priv->uBBVGADiffCount); bb_set_vga_gain_offset(priv, priv->byBBVGANew); -- 2.34.1 --1mwXnP3tkU9W1WO7 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0003-PATCH-3-3-staging-vt6655-Type-encoding-info-dropped-.patch" From e7dc405ffa8050eb8693086204c902a723392a62 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Pavan Bobba Date: Thu, 28 Sep 2023 20:30:34 +0530 Subject: [PATCH 3/3] [PATCH 3/3] staging: vt6655: Type encoding info dropped from variable name "byBBVGANew" To: Greg Kroah-Hartman ,linux-staging@lists.linux.dev,linux-kernel@vger.kernel.org variable name "byBBVGANew" updated like below: a.type encoding info dropped from name b.camelcase name replaced by snakecase Issue found by checkpatch Signed-off-by: Pavan Bobba --- drivers/staging/vt6655/device.h | 2 +- drivers/staging/vt6655/device_main.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h index 9ae7171d02ee..68bfadacfa7c 100644 --- a/drivers/staging/vt6655/device.h +++ b/drivers/staging/vt6655/device.h @@ -248,7 +248,7 @@ struct vnt_private { /* For Update BaseBand VGA Gain Offset */ bool bUpdateBBVGA; unsigned int uBBVGADiffCount; - unsigned char byBBVGANew; + unsigned char bbvga_new; unsigned char bbvga_current; unsigned char bbvga[BB_VGA_LEVEL]; long dbm_threshold[BB_VGA_LEVEL]; diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 6990129ceb10..b08fcf7e6edc 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -425,7 +425,7 @@ static void device_init_registers(struct vnt_private *priv) if (priv->bUpdateBBVGA) { priv->bbvga_current = priv->bbvga[0]; - priv->byBBVGANew = priv->bbvga_current; + priv->bbvga_new = priv->bbvga_current; bb_set_vga_gain_offset(priv, priv->bbvga[0]); } @@ -1053,12 +1053,12 @@ static void vnt_check_bb_vga(struct vnt_private *priv) for (i = 0; i < BB_VGA_LEVEL; i++) { if (dbm < priv->dbm_threshold[i]) { - priv->byBBVGANew = priv->bbvga[i]; + priv->bbvga_new = priv->bbvga[i]; break; } } - if (priv->byBBVGANew == priv->bbvga_current) { + if (priv->bbvga_new == priv->bbvga_current) { priv->uBBVGADiffCount = 1; return; } @@ -1067,11 +1067,11 @@ static void vnt_check_bb_vga(struct vnt_private *priv) if (priv->uBBVGADiffCount == 1) { /* first VGA diff gain */ - bb_set_vga_gain_offset(priv, priv->byBBVGANew); + bb_set_vga_gain_offset(priv, priv->bbvga_new); dev_dbg(&priv->pcid->dev, "First RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n", - (int)dbm, priv->byBBVGANew, + (int)dbm, priv->bbvga_new, priv->bbvga_current, (int)priv->uBBVGADiffCount); } @@ -1079,11 +1079,11 @@ static void vnt_check_bb_vga(struct vnt_private *priv) if (priv->uBBVGADiffCount >= BB_VGA_CHANGE_THRESHOLD) { dev_dbg(&priv->pcid->dev, "RSSI[%d] NewGain[%d] OldGain[%d] Count[%d]\n", - (int)dbm, priv->byBBVGANew, + (int)dbm, priv->bbvga_new, priv->bbvga_current, (int)priv->uBBVGADiffCount); - bb_set_vga_gain_offset(priv, priv->byBBVGANew); + bb_set_vga_gain_offset(priv, priv->bbvga_new); } } -- 2.34.1 --1mwXnP3tkU9W1WO7--