Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24883406rwd; Sun, 2 Jul 2023 06:33:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtfMIpxVVUqMdIFzexh865mDPYabTn9m7QyQKZqtIPurUk18KK07ue1SP+j8KiXMiYQQSD X-Received: by 2002:a17:90b:1187:b0:263:8c2:6290 with SMTP id gk7-20020a17090b118700b0026308c26290mr6593176pjb.43.1688304780878; Sun, 02 Jul 2023 06:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688304780; cv=none; d=google.com; s=arc-20160816; b=IWifCvNFgTXUdjfzN5QQXMoAH2vp/STP27Rxk4M5XvibvxIqS6smxtNXuMg6t8Fd4K aI9qn434deeVc+DFGDWGmAW2d68cmyz/4fHpODRa3OhEgKKedgFRIGdRbE3YjS88sRPw DmvcPPh7M06nfmZbXjC6sjsEGTNVrGE5bhjG3ubx08b/ZS9A0VQF0x2y+0KI9v0Ltm9m SQz1sU+UM18I6JZbcOFHy35zrBcINt5I/j/LxuKVV04Wp7fPbWKpP6BWl5kyNhUDj1xY 6YX2caD8KPoinhUY1LPY1YuVCLnkGvUPIDNevvF8coCao536NMdMAQyQZacNXaJbcVwF 9Qqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3Dfo7hdwwVcnKMMgv844ECc9CeiQ+h3KUJdDMwa/uJE=; fh=G/O6M5C2UT9QKQoz2CKj/Tz3b2RkUFgCz5WvXDvEOHI=; b=H5QomowvGLfbuTY0U8g955u/PkWHESz0hw5Of/KSrJT5xxsmCqyKGxDweZ717MHtu1 VpX+W5fVLvc+Mi5lYdQoDABvIPo1feFtlJjm6ea086mCAk7EyC9xikH4O+DIpTOBYHGe 09Pos+e4JzYhO9ZZAiUripfTfKwq0p3at3lBVrZB88BLONASN0HcG8pf+irqr3ZOUUuy II1KSOZ3jywOcs4EtsUfHqER11TR5fCGACXyFP19a/Sh5YuHE5OoUB5pnpDB6AZG5fem uwNXYfye+7NJeOPQRa7Lyr/AVPVr/OF6ZgC+SZgZT2uD8x9/tWU+Wdfml3js0j0mNOja mC9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="V1hzgS4/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx2-20020a17090b4b0200b0026329075cc5si10672759pjb.155.2023.07.02.06.32.39; Sun, 02 Jul 2023 06:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="V1hzgS4/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbjGBMQx (ORCPT + 99 others); Sun, 2 Jul 2023 08:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjGBMQw (ORCPT ); Sun, 2 Jul 2023 08:16:52 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF13E6E for ; Sun, 2 Jul 2023 05:16:51 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-55ac628e3cfso1817107a12.3 for ; Sun, 02 Jul 2023 05:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300211; x=1690892211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3Dfo7hdwwVcnKMMgv844ECc9CeiQ+h3KUJdDMwa/uJE=; b=V1hzgS4/XWWDCxQpuSOHCIQ+CVOJQjNF8gAU38/f6S2UUXXiozgcfZLiPK8GHvtsPs ksVjJc9vdWqGQjoCxM7nRGCotaLa/qiP/1GEflpj1iDj0Mn9R5U01GTD4acDea6N3zka Ir8xSk6NAg+hsDBK2zeo15Z+MfwCOt0FC3VXVcTGEmBx2Y+VD6o9FEOXEdhdxtLWwuQZ kx1CnZBbmCOMwSQ5hDKARD/lkGOYvixxfSVaTsCzEILyVmTg4zI3zzRLfNCQwU/4kuuI DGhHZyhRcYplupxTSQYUzP3DPlkQcsGi66K9eH4E+pye3qOn2XBB6Mj7VfeJ5wdOpIdw krqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300211; x=1690892211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3Dfo7hdwwVcnKMMgv844ECc9CeiQ+h3KUJdDMwa/uJE=; b=Pn9RYDBWELvvOelCTjr+k+L07N20PHL+1JhvGpXnSw/UyDmaLzPzfszWdK5m/pBAAJ XySGOGO5X/WSxwDbUpYX6Cdja1Dn/cjdKGOpLS/Sw01IqD4lhAgd4Y3GVAmGPmLWUKXa 8uEBqpWMNvsBBDoUyYJgM1s34z1kCuSBHp82rNCdxP6j5Y7v00maMf6ZIU4yilkGvuY9 Xp9tyvXZG2N+oVbv9NmLUpOYDBGgpF5pefByvOMcrFwvijB5JmURwbsnCOsgUZqxd4l4 GRazykww6e8GeUsxPlmVuAtwOWjdqWddhRVUBTQs1T73uhSFv+0CFuurruZEun4lSBXA 8bUw== X-Gm-Message-State: ABy/qLa3+BMNsN5MzxJ/weMsapIkShihIn91FNtZyisRDraUYN12bJ60 0XAe4syNfOueTeo9fhidyc0= X-Received: by 2002:a05:6a20:3257:b0:12c:1193:a563 with SMTP id hm23-20020a056a20325700b0012c1193a563mr5580459pzc.58.1688300210710; Sun, 02 Jul 2023 05:16:50 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id t18-20020aa79392000000b0063d24fcc2b7sm6636965pfe.1.2023.07.02.05.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:16:50 -0700 (PDT) Date: Sun, 2 Jul 2023 17:46:45 +0530 From: Yogesh Hegde To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH 4/4] staging: rtl8192e: Rename variable HighRSSIThreshForRA Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Rename variable HighRSSIThreshForRA to high_rssi_thresh_for_ra to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index d266d2d047ca..dbf765d601b3 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -278,7 +278,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; struct rate_adaptive *pra = &priv->rate_adaptive; u32 current_ratr, target_ratr = 0; - u32 low_rssi_thresh_for_ra = 0, HighRSSIThreshForRA = 0; + u32 low_rssi_thresh_for_ra = 0, high_rssi_thresh_for_ra = 0; bool bshort_gi_enabled = false; static u8 ping_rssi_state; @@ -319,21 +319,21 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) ((bshort_gi_enabled) ? BIT31 : 0); if (pra->ratr_state == DM_RATR_STA_HIGH) { - HighRSSIThreshForRA = pra->high2low_rssi_thresh_for_ra; + high_rssi_thresh_for_ra = pra->high2low_rssi_thresh_for_ra; low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } else if (pra->ratr_state == DM_RATR_STA_LOW) { - HighRSSIThreshForRA = pra->high_rssi_thresh_for_ra; + high_rssi_thresh_for_ra = pra->high_rssi_thresh_for_ra; low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low2high_rssi_thresh_for_ra40M) : (pra->low2high_rssi_thresh_for_ra20M); } else { - HighRSSIThreshForRA = pra->high_rssi_thresh_for_ra; + high_rssi_thresh_for_ra = pra->high_rssi_thresh_for_ra; low_rssi_thresh_for_ra = (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } if (priv->undecorated_smoothed_pwdb >= - (long)HighRSSIThreshForRA) { + (long)high_rssi_thresh_for_ra) { pra->ratr_state = DM_RATR_STA_HIGH; target_ratr = pra->upper_rssi_threshold_ratr; } else if (priv->undecorated_smoothed_pwdb >= -- 2.34.1