From patchwork Sun Jul 2 12:15:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 115086 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11549960vqr; Sun, 2 Jul 2023 06:05:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xvJWhykcgRLraHEkn6uLQl9JOY+msEm22IT+r/Cii2MITpcpssej+S/pYH5ttdUAPun+t X-Received: by 2002:a05:6870:d628:b0:1a0:85d3:3d70 with SMTP id a40-20020a056870d62800b001a085d33d70mr7673674oaq.28.1688303135035; Sun, 02 Jul 2023 06:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688303134; cv=none; d=google.com; s=arc-20160816; b=UA6r0acNKtMeiAz1Io3fyJTVjykOspgqdXgCwqvcHf110gU8VhAgNOwnMH8TqxYIv/ fsNA3v2Qq9Da21HpBFA9MsqGy/4XjuHCoWaE4nkew7XWp09WGqSys0ilFItMhnhSSO0G 5cX3wIvVrPPt6xZcdwpFV/O0XM2fcnvM69IUQlOT42wWj7MaonPIrdhoM6VQtFt8jEiF B14XdPMkG1ktokVVV78upZrGwiywErOLsdSpIIDyJNJQ3e1iBkKo0U2CEUSbQEiE8xRA XfyMoXGgZBtpPNO2YkloSV+vaVRW9s4M4XM6sAhfAjtZNJtNBOxa20/T78b7rDl/Fbd9 sStQ== 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=5cFvQbq7diNNN0bpBR8H7bBLc7lI4nnwBQk2weQsLw4=; fh=G/O6M5C2UT9QKQoz2CKj/Tz3b2RkUFgCz5WvXDvEOHI=; b=ElAjWn5/waI295uWR/8nnc0O9gRymDhyBEZVAHptXK7LrKNbjWvvSLI6teeDdBKoKr i1QvFsueZ146ZTj84lp4kr/rVVnwCK7/u7Vp1Cxku0oLedQue7OcKzuCSVIN9Jy61KDr XXrKCb+OpCp3Zoql5SJoD5CvzRhAOyyldreXqUG01a8QT1T+gvJmh/ARytZ69HDKfVjg FV9IkVHqg7pp358H35jKzO7v5v9mUk1dMKqQN52qzSJ3tSvhoeFjAePi2EDd2bW3Ke9D Y+0M6ZwSy1I4AUZaQ9lcN0K9g9lFvj4XBLePnkavS4VhGywi63LySeKWt0/QXtUdZnBs 2W1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=iyviPkCh; 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 c11-20020a63ef4b000000b00553d7157e83si16015657pgk.134.2023.07.02.06.05.16; Sun, 02 Jul 2023 06:05:34 -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=iyviPkCh; 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 S229821AbjGBMP1 (ORCPT + 99 others); Sun, 2 Jul 2023 08:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjGBMPZ (ORCPT ); Sun, 2 Jul 2023 08:15:25 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8C1E48 for ; Sun, 2 Jul 2023 05:15:25 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1b80ddce748so17433975ad.3 for ; Sun, 02 Jul 2023 05:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688300125; x=1690892125; 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=5cFvQbq7diNNN0bpBR8H7bBLc7lI4nnwBQk2weQsLw4=; b=iyviPkChWoFVJ5Q9yfgPuX+wGACeYXOZi7NWTe0N+dGDIm561PvInBcZ1S2r8lhNUE UBZn78lCPe2QaKRB4b5ECsX8ZvliF2d81bAGLpllw1YR3PYOfqzYn5z5SgYtP37k2aKL smrdUfQbiTf+/5t6mYCvMnY8iakmQcq45HNDeMhO/OlVbwjisv+cNo29UrKhJG1s9VTT I+l5d2aUOfzd+MWqi757W8t+pYO4KBfmO59/EnScP5r3EzV9B63jH8bt9rDefOnEXeam jijGpWPah4Z0+kxKRY3Pto1x3WOYgvda0CAqc9sYd4Y242zuiGrQ+VL4S0fnvvICQtKZ o1GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688300125; x=1690892125; 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=5cFvQbq7diNNN0bpBR8H7bBLc7lI4nnwBQk2weQsLw4=; b=gPRKZbLZDH9vtxnRY6QhuDxsjCKT//up4SUYObF1GojJH53+4IbS0UMr6YyeYECcOg tS0wAPQ8lw2YUvwzAJUrrUEE1l5eRp3lL6K8lP9rHGN8xvxGrusGT3MmWQtI/elSKrSD CSRLqOlb9YBTs13qXlflc7J5vjtET51QOo3Or8fyPubPqEvK2+Ft2nfJBhTExPoaNfY7 2nWQM9xU3pSH3w+gB9GI1w7pRU8y+rZQHS69MtkSvSVsUEK38ZyLgozeml7exTf290XF 9RnmkDg5fj/mZYMjcq9BJ7C8KhkADTSWg+eAX4pM+llcXLnjGzM6rXcJDMK2wL8JLoM4 cleQ== X-Gm-Message-State: ABy/qLahsTajV7ovVx6TSLUQ0lRBdhqCfnY4xeR3dFl1+zOja/jHiqWM mNaczu4JY1poOUdJNtV0LO1KdgtmmYE= X-Received: by 2002:a17:90b:50d:b0:262:f798:b60d with SMTP id r13-20020a17090b050d00b00262f798b60dmr5959855pjz.6.1688300124661; Sun, 02 Jul 2023 05:15:24 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id t4-20020a63f344000000b0052c22778e64sm13031137pgj.66.2023.07.02.05.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 05:15:24 -0700 (PDT) Date: Sun, 2 Jul 2023 17:45:19 +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 1/4] staging: rtl8192e: Rename variable currentRATR Message-ID: <091a5abb231fb5c88d47f329ec3b5133b08d6b23.1688299890.git.yogi.kernel@gmail.com> 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?1770314148321341069?= X-GMAIL-MSGID: =?utf-8?q?1770314148321341069?= Rename variable currentRATR to current_ratr to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 37c275cac40b..14c78f740366 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -277,7 +277,7 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) struct r8192_priv *priv = rtllib_priv(dev); struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; struct rate_adaptive *pra = &priv->rate_adaptive; - u32 currentRATR, targetRATR = 0; + u32 current_ratr, targetRATR = 0; u32 LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0; bool bshort_gi_enabled = false; static u8 ping_rssi_state; @@ -363,8 +363,8 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) if (priv->rtllib->GetHalfNmodeSupportByAPsHandler(dev)) targetRATR &= 0xf00fffff; - currentRATR = rtl92e_readl(dev, RATR0); - if (targetRATR != currentRATR) { + current_ratr = rtl92e_readl(dev, RATR0); + if (targetRATR != current_ratr) { u32 ratr_value; ratr_value = targetRATR;