From nobody Sun Feb 8 00:49:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D83BDEB64DA for ; Sun, 2 Jul 2023 12:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbjGBMQS (ORCPT ); Sun, 2 Jul 2023 08:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjGBMQR (ORCPT ); Sun, 2 Jul 2023 08:16:17 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B99DE48 for ; Sun, 2 Jul 2023 05:16:16 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b80f2e6c17so28670775ad.0 for ; Sun, 02 Jul 2023 05:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300176; x=1690892176; 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=LI5xtyL2k2cBitbepn6US1F6e5Ej9j9z5n1WZ2zQtfs=; b=cAi0AivaoyBUmInw7KpCb/jsQAYZS+Rq+v2vjn8Jtq2wlacDU2vUHAwaSlPNyzDod4 UTJWJy7s0Xa3OhUh5xMPWzhh27yf4/vp2lzAe6JJz5Q8+POegERnqiY1hd5jXN8UwV1i pUwapcc6ttM7NjnGdnIzxJQzZlKH13KBiK1+nh4/YEZ37jtPS8baOjBViZJ0Jud3bQ3V HZdMrSYkfhePqAAurgUQTa9HtJHBhULxOUSQnS/xfPh6Hdwg1xuCo+N1ao7XCq5Ucncm LcZR7JRR5cFbQY1XTqHX5UhosyhAMeFEWBTd2YF6fWZY40ZEjQyXR5SThR44aFi1QaQx 0C6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300176; x=1690892176; 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=LI5xtyL2k2cBitbepn6US1F6e5Ej9j9z5n1WZ2zQtfs=; b=OnTgKMNBSpjHB4Yn8qpBfQLhB9DnrL2lurhOzT76msAvl5gfuHyPtzK41W9jA4iyqZ 8pMpUnjFfwfLoMQ4283Kd4PdHhUbZ4CRfhcuFwNjbpkvJkaRAoTslqozwQxttxv5tiQQ 8Ac6J/MHLS0Fxgra8FTinssftdfD3o8BDlB73VNXfkuM0iT2/tgMmui0LbW3SgCFOqOv 2GIKAro5Je//tEH2/CF33Pmfs5e2DVgkofmMgXmcwEsEyEOiR1ANM0Kn2LugXf2XG32Z 69slCRfBRGXrhnFtHlNqus6drVorFtdvJIPDrUz7/q5sse+dmTuEHQJpNxh2qhyJYZXO fLpg== X-Gm-Message-State: ABy/qLaa2eWcO7RnEDYk5e2P3S7pgYa+vw0FA3yKDol5D0nVuUDNVZeg irjclBmM/L55bCLkJLTmhO0= X-Google-Smtp-Source: APBJJlHF4Wdd3nuQiVZBSb9dYApRmcLqlVqkm3nVD3k3QUQGvK3mgSNWcWdCX2B2hqCBuE/YtMC0RQ== X-Received: by 2002:a17:902:e9d1:b0:1b5:361:cefe with SMTP id 17-20020a170902e9d100b001b50361cefemr7811279plk.52.1688300175778; Sun, 02 Jul 2023 05:16:15 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id w5-20020a1709027b8500b001ab2592ed33sm13580074pll.171.2023.07.02.05.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:16:15 -0700 (PDT) Date: Sun, 2 Jul 2023 17:46:10 +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 3/4] staging: rtl8192e: Rename variable LowRSSIThreshForRA Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Rename variable LowRSSIThreshForRA to low_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/r= tl8192e/rtl8192e/rtl_dm.c index a535a63ce9f7..d266d2d047ca 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_d= evice *dev) struct rt_hi_throughput *ht_info =3D priv->rtllib->ht_info; struct rate_adaptive *pra =3D &priv->rate_adaptive; u32 current_ratr, target_ratr =3D 0; - u32 LowRSSIThreshForRA =3D 0, HighRSSIThreshForRA =3D 0; + u32 low_rssi_thresh_for_ra =3D 0, HighRSSIThreshForRA =3D 0; bool bshort_gi_enabled =3D false; static u8 ping_rssi_state; =20 @@ -320,15 +320,15 @@ static void _rtl92e_dm_check_rate_adaptive(struct net= _device *dev) =20 if (pra->ratr_state =3D=3D DM_RATR_STA_HIGH) { HighRSSIThreshForRA =3D pra->high2low_rssi_thresh_for_ra; - LowRSSIThreshForRA =3D (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH_20)= ? + low_rssi_thresh_for_ra =3D (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH= _20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } else if (pra->ratr_state =3D=3D DM_RATR_STA_LOW) { HighRSSIThreshForRA =3D pra->high_rssi_thresh_for_ra; - LowRSSIThreshForRA =3D (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH_20)= ? + low_rssi_thresh_for_ra =3D (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH= _20) ? (pra->low2high_rssi_thresh_for_ra40M) : (pra->low2high_rssi_thresh_fo= r_ra20M); } else { HighRSSIThreshForRA =3D pra->high_rssi_thresh_for_ra; - LowRSSIThreshForRA =3D (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH_20)= ? + low_rssi_thresh_for_ra =3D (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH= _20) ? (pra->low_rssi_thresh_for_ra40M) : (pra->low_rssi_thresh_for_ra20M); } =20 @@ -337,7 +337,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_d= evice *dev) pra->ratr_state =3D DM_RATR_STA_HIGH; target_ratr =3D pra->upper_rssi_threshold_ratr; } else if (priv->undecorated_smoothed_pwdb >=3D - (long)LowRSSIThreshForRA) { + (long)low_rssi_thresh_for_ra) { pra->ratr_state =3D DM_RATR_STA_MIDDLE; target_ratr =3D pra->middle_rssi_threshold_ratr; } else { --=20 2.34.1