From patchwork Wed May 10 15:09:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 92187 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3721301vqo; Wed, 10 May 2023 08:43:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4taoQhoRvBdv2WzlWEeJZmf5fUiDPv2POGwwQab0Nfrnko5Qelk+sqJ7GCusJqpBjNqbfR X-Received: by 2002:a17:903:18f:b0:1ac:8717:d436 with SMTP id z15-20020a170903018f00b001ac8717d436mr11134533plg.60.1683733382075; Wed, 10 May 2023 08:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683733382; cv=none; d=google.com; s=arc-20160816; b=S9lzDrL4zr8YpDHHSvA+ni13UoGbCI+2AtoUBCQ7wiANG3Xqc/mrA19PF33VoXOaUw WqpFRtQiagZItDD+rDDjBZ8fF2s+YdsDdxNdES4t72590zcnKvMR8xgJaz0uqBqCqTvu qdfe3MLUNS6cdeQ0YpwnKUPEftOIYj5UgttLiMmo4gwEtq69gR8s7WVRR3uNKNOvP+w3 iQE0vLfwWLUotHWKiv5wjsFxrzyf0uygwdobPXsa7Um1JbnshQpc8+KN/njf4BajlzZJ 7bddQMCoAjiNP5baUWR+mx5/RJ4hgWRxsVt9+FxW5mRhneqNWiIFGf047Pg+iZeY1Nit lI/w== 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:to:from:date:dkim-signature; bh=2MdUvkOQf/H6u+bsf32R+0B6I/OaVbOPJFXkpsnz650=; b=QQZJDXUTW8832DWxFnZTO47Xhs7aaOHc52+D1wWSmoVzg/oEDqeRO+uvFgkC8kHS3A dgn9KiWLhmlAJ5e5/UOork7TAeFHT7o1eczHrGMLLBayBs7vqXxh3pNg+XtrKRUem3/Z Geq2xIGuvWeUchI4kszl1EXJlpsVyRWLPXHjrX76RboNZmFXsHlvNhu9dg4XVzFIaVdW T7jh4+mRE879jY53Gx9SKnG3cJIZ4g+EnAkGP4prFHEFvwi0h98qWgm9pPcS7B3xpBJl qPoSJds+/c/porTikMjE7f/B4m57OVW++J05jdE3Jai8R6aw3z9SUdGwuIlhT4wH+Vlr 5l/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XceF3oro; 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 y17-20020a170902b49100b001a8102f5d7fsi3918401plr.504.2023.05.10.08.42.47; Wed, 10 May 2023 08:43:02 -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=XceF3oro; 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 S237490AbjEJPJz (ORCPT + 99 others); Wed, 10 May 2023 11:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237571AbjEJPJt (ORCPT ); Wed, 10 May 2023 11:09:49 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35C41993 for ; Wed, 10 May 2023 08:09:47 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1aad6f2be8eso68615405ad.3 for ; Wed, 10 May 2023 08:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683731387; x=1686323387; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=2MdUvkOQf/H6u+bsf32R+0B6I/OaVbOPJFXkpsnz650=; b=XceF3oromGb5RS/guK2wNN+F2+fqB6JGxs7JAUfy+IEbKlO7bEtxA6sXW708RRTFWP ZqnxwP405zkdO0YTUCrGlt/lBHeiWf0E4tUX1GA+PCCAPYxJonNfE5GpahOwbHlqAj+3 il9lkE7h45xz7Wcv/OZancE5Se6+GhgCnxaCYqcGYmHbFQJRJw+O+axe9tF1tn/T5/4Y qj3h0h39+rZHEOEs/Lhz4DUAnZQaleeubwdAATBlQqxi4QG787tbarETiRuOPQByXxdX GkLgea/YP03ocP4r7LJBMAcxzqi9T65axWaC7446iyfMeCMPU2/KqoRWejisvI539GxW 47ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683731387; x=1686323387; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2MdUvkOQf/H6u+bsf32R+0B6I/OaVbOPJFXkpsnz650=; b=OZwIa5A/8LGQx++OORoZ+dB65TJk7WbkwfmXx+vtzKDYinF0BCnPoLv900vEF81oii 1ZVTzYffU0l4lYZg5N1HsM0b5ccqS8XXClX6hQ2v03setGKJLSgx4lmE3ag2JUR4/Os9 hLqRsal7nlEz/YlCKbhtyxiMtCTmWGt9Pv4H9mkxAE6ThoRFnMhixyU/KeoTSEnrpSW5 oH6ficC1ASGAnL7kabhiGkvOWj0Llh15Xl1roPkkuuNIn4Bvw6XlxURWPv4kS3QBl3Aa 44pxkBuhhD+wSuPdTdTSUyOs7zrnq+dFhJ2/4XNRG4F/1W4EnyWa1DK6HDhgfGGPwTJ2 cPGA== X-Gm-Message-State: AC+VfDyNRADdqFGH9jeTvR9OqFsndqYyh/MI1MEizsX6GO/cWB3SEThr S95XzdjGHOOvaioe5O1jQdQ= X-Received: by 2002:a17:902:c94b:b0:1ab:14f2:e7e6 with SMTP id i11-20020a170902c94b00b001ab14f2e7e6mr21581496pla.65.1683731387410; Wed, 10 May 2023 08:09:47 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id m2-20020a1709026bc200b001a045f45d49sm3869439plt.281.2023.05.10.08.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 08:09:47 -0700 (PDT) Date: Wed, 10 May 2023 20:39:42 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] staging: rtl8192e: Rename tmpCCK20Mindex and tmpCCK40Mindex Message-ID: <3e8b6cd85e6e4fcc934cc1d813f5f594cef8ff92.1683730854.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?1765522414431549921?= X-GMAIL-MSGID: =?utf-8?q?1765522414431549921?= Rename variable tmpCCK20Mindex to tmp_cck_20m_index and tmpCCK40Mindex to tmp_cck_40m_index to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 117c0538cf5f..a44be3f810ab 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -658,7 +658,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) #define ThermalMeterVal 9 struct r8192_priv *priv = rtllib_priv(dev); u32 tmp_reg, tmp_cck; - u8 tmp_ofdm_index, tmp_cck_index, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; + u8 tmp_ofdm_index, tmp_cck_index, tmp_cck_20m_index, tmp_cck_40m_index, tmpval; int i = 0, CCKSwingNeedUpdate = 0; if (!priv->tx_pwr_tracking_init) { @@ -689,33 +689,33 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) priv->thermal_meter[1] = ThermalMeterVal; if (priv->thermal_meter[0] >= (u8)tmp_reg) { - tmp_ofdm_index = tmpCCK20Mindex = 6+(priv->thermal_meter[0] - + tmp_ofdm_index = tmp_cck_20m_index = 6+(priv->thermal_meter[0] - (u8)tmp_reg); - tmpCCK40Mindex = tmpCCK20Mindex - 6; + tmp_cck_40m_index = tmp_cck_20m_index - 6; if (tmp_ofdm_index >= OFDM_TABLE_LEN) tmp_ofdm_index = OFDM_TABLE_LEN - 1; - if (tmpCCK20Mindex >= CCK_TABLE_LEN) - tmpCCK20Mindex = CCK_TABLE_LEN - 1; - if (tmpCCK40Mindex >= CCK_TABLE_LEN) - tmpCCK40Mindex = CCK_TABLE_LEN - 1; + if (tmp_cck_20m_index >= CCK_TABLE_LEN) + tmp_cck_20m_index = CCK_TABLE_LEN - 1; + if (tmp_cck_40m_index >= CCK_TABLE_LEN) + tmp_cck_40m_index = CCK_TABLE_LEN - 1; } else { tmpval = (u8)tmp_reg - priv->thermal_meter[0]; if (tmpval >= 6) { tmp_ofdm_index = 0; - tmpCCK20Mindex = 0; + tmp_cck_20m_index = 0; } else { tmp_ofdm_index = 6 - tmpval; - tmpCCK20Mindex = 6 - tmpval; + tmp_cck_20m_index = 6 - tmpval; } - tmpCCK40Mindex = 0; + tmp_cck_40m_index = 0; } if (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) - tmp_cck_index = tmpCCK40Mindex; + tmp_cck_index = tmp_cck_40m_index; else - tmp_cck_index = tmpCCK20Mindex; + tmp_cck_index = tmp_cck_20m_index; - priv->rec_cck_20m_idx = tmpCCK20Mindex; - priv->rec_cck_40m_idx = tmpCCK40Mindex; + priv->rec_cck_20m_idx = tmp_cck_20m_index; + priv->rec_cck_40m_idx = tmp_cck_40m_index; if (priv->rtllib->current_network.channel == 14 && !priv->bcck_in_ch14) {