Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3315504rdh; Thu, 28 Sep 2023 08:20:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8WolcOstcAFV34NrfSZ7JAVJTJGNbKAO1DcE2YaJSfz1X1aMg/3eL8j6NR/U1WAlqtF/I X-Received: by 2002:a05:6358:9226:b0:134:d030:e5da with SMTP id d38-20020a056358922600b00134d030e5damr1155139rwb.21.1695914424967; Thu, 28 Sep 2023 08:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695914424; cv=none; d=google.com; s=arc-20160816; b=PemiGYQQ6bKuemz6ytFXGY56fLyubX+XZCVtnwhEHPLpY8rBZEN0Nna4AR8YggT2Y8 JciD5Xgn49iwQinhypiQM+CqPzsjrWgr7YuOjniq+QnmOTEswp24iJJh26ZWaw0hAuOs TfGZp0qmkBYl6bf51EX6HY2d4BuMfq9I1W6NBCGearc9Rsrs4VawOC+wZ6wxODWhwFNP XRJBXEtZGlxEW5Tjr8ZEWHAhWnTr8jev1nKVCXYfyfKhQ5gDiNkvmIv3fg1ovJ1yFNTA kG0L0t0vjtV0lE4SMss0QTNNSse5xPaX1iCH+TrMr5a0eurxUxX51XfpXUk45IuNshSB r6lA== 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:cc:to:from:date:dkim-signature; bh=QbnPHj6dfD4POVO9hdle6v6s7g3Ty0sBecHZs7nG93U=; fh=aHN0YIac9ECpQtW8GrWJQLhnK8Rkl/VJ/IJGKINum5c=; b=JrS/FAl4Zh+A50+aXk981/f15Fn0fX1QPdAaPgCUyhCZh6W6111ztdfBmptq7KgCkF suTFzPoYqI7s0quHxXOE4L1Q3NkJrhsQc8bIKzkZAa/iuvNCKkYHOXP9OwguujtfNtF5 hnD82eXX14v8G23rQoH2VQHi+H7lIrn6cng19gdmkEu1LWXGMK6IFulV2gY3/YTKnYEm VeOzo/F4zZ/n5WHZ7bieJX/rnAMD5w5ZB1bQuaKbHvchvxvwGYrucfWJVfvdKJMyOaS7 2e74EH7JCwcGmROOApr3b9EPItCNDhyf2xe48r/rlTLKb19KesLF1UqdCuyayKQ3Ze17 ivog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M+BO9Xz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id a72-20020a63904b000000b00578e4c1581bsi19152021pge.866.2023.09.28.08.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M+BO9Xz0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 547668041C22; Thu, 28 Sep 2023 08:11:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbjI1PLL (ORCPT + 99 others); Thu, 28 Sep 2023 11:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbjI1PLJ (ORCPT ); Thu, 28 Sep 2023 11:11:09 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2937919E for ; Thu, 28 Sep 2023 08:11:08 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1c1ff5b741cso117862185ad.2 for ; Thu, 28 Sep 2023 08:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695913867; x=1696518667; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=QbnPHj6dfD4POVO9hdle6v6s7g3Ty0sBecHZs7nG93U=; b=M+BO9Xz05Xw1cg8nY1PO7GcaSBBYDolpx+u5Xx7gpSXxfRjpzSyWfZKJao/FFR1ZAr 9a2YQEUBCFGVAi4WDzoDBJobXcjIfDUq9EXnqpZXwWzk9DnYJAwiGGkqOMrkxOVNr31Z EjUZvDFN18GnsVc3rETYwrhlsbA654L7PwfIzxY4rN2zVx1ZWkHR0dOOv0MhKDOA3GB8 fGyP5tMF9bLZcIv+uRgemu0WJFSiayo/eTu1Rz02ieFMiDp+KwMt/u7+WZDwpARALRoB J4I/jH+tZp7dZL9MgxHtAkA0PizQDBrf//Efj9SN58QOMbA0oF5bFpn8CoIDShzUgiLX AxKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695913867; x=1696518667; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QbnPHj6dfD4POVO9hdle6v6s7g3Ty0sBecHZs7nG93U=; b=YRScn5EYVqWIWJtgiios9e65ZTbrfYM0efZ2cD232IHQgtwGseijLQ8nt+Oeyz0zpP Vg0h/7UulIFkdnd+KVJG1PvquZrFrshjbMWeJcBRwJbXiUD9tzh2mkh+ln4Fun5fkCZm E81aytt8ev+Lj3/E7hjuVgxMOtEDFwnqXAjurSJictAGbV7clVZjvvhlzJql2v/LJYVb YhqnWXjkjSOBX8R2NKq8XcuorcgOnBwdbuJH5zowKATeQ30HqmFruqvTA9nMKCWKANj9 MQxWiWvI55QKagmM7VqDTWmrFA/MNSeUQfsxy0sZlhRbZkKkyFMiRhLU68yknYIbkuwy rpow== X-Gm-Message-State: AOJu0YzLhrJi1YAtuSSbAyRvDjjhJXjRAFyAfgoRv4FhB7FAewYufQU6 M6kaQQkrkdxV1DKNBPNQi3k= X-Received: by 2002:a17:902:c3cd:b0:1c6:7ba:3a9a with SMTP id j13-20020a170902c3cd00b001c607ba3a9amr1492806plj.14.1695913867539; Thu, 28 Sep 2023 08:11:07 -0700 (PDT) Received: from ubuntu.myguest.virtualbox.org ([122.162.35.36]) by smtp.gmail.com with ESMTPSA id 12-20020a170902c20c00b001c72f51b84asm2207951pll.52.2023.09.28.08.11.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:11:07 -0700 (PDT) Date: Thu, 28 Sep 2023 20:40:54 +0530 From: Pavan Bobba To: Forest Bond , Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] staging: vt6655: Type encoding info dropped from variable name "byBBVGANew" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:11:19 -0700 (PDT) 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