From patchwork Sun Jul 2 12:16:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 115088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11566744vqr; Sun, 2 Jul 2023 06:38:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlET7uEwY4J7mev7l79X91bX26wxf64McqbW8DudZ/4lw7xDOy5fyL8A+NK88XU+40G0Is52 X-Received: by 2002:a17:902:e5c1:b0:1b8:3dec:48de with SMTP id u1-20020a170902e5c100b001b83dec48demr6752990plf.47.1688305111289; Sun, 02 Jul 2023 06:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688305111; cv=none; d=google.com; s=arc-20160816; b=lPIurUQdYLfkUzzNvQbR5y6rPtRsbzvwmog9CitKvyDzkL8DitQCbAyF9oQZJc9TNY YEK3j2OaeJNfEI4rTRDzhNn06nR7bLSgkYj5XDXonkvhmOymOLxQC7dpfcwS29Yu0DLU RT1arDiLfVMU2nS90y2cge8tmXb3PBf/T2LQ3j8MMSg1c9w9RT5DgULeSjJIAhPHt2Ca UFBfUIsEv6m7UP00vVxBgh4WGRfsFbqLNXKrjiqVKFKpLCEvMn+DPix19tOi4prl+Asb MmCw5URwEG8L12ocVyxuxc/uMjBb0VYiEXLxDNLMmGtlxpJvUIxP9fknRlMHPL5fVJkX Z5Qg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx14-20020a170902f94e00b001b8971cb759si97288plb.525.2023.07.02.06.38.05; Sun, 02 Jul 2023 06:38:31 -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 S229876AbjGBMQx (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-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770316220372477614?= X-GMAIL-MSGID: =?utf-8?q?1770316220372477614?= 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 >=