From nobody Wed Feb 11 06:30:50 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 F0867C77B7C for ; Wed, 10 May 2023 15:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237478AbjEJPJh (ORCPT ); Wed, 10 May 2023 11:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237470AbjEJPJd (ORCPT ); Wed, 10 May 2023 11:09:33 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0855BBD for ; Wed, 10 May 2023 08:09:31 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64115e652eeso50937729b3a.0 for ; Wed, 10 May 2023 08:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683731371; x=1686323371; 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=g/+U69i+oXYARFhfnLN9Kpm6lIKqslW4ET+ngsmdlTA=; b=m6+LJ+C98J+VMJZwyIS8bNLITH3vIYwmhU76QbeV60Ni9XrJdFPl24ysp0a9SJHXrN ttDHsECNj0XpoY8AhZaOfD1Gct0yfoADGWc/60E8uvTEQpjkI0dhA6K0gv4XlflnvxjJ 6xb8XyfIuEEm9jJ40iso744+nePhMxLkUJrYSgPaVKQDvCz0fMx7xQhil78gq0HtkDy0 VXwemSTb0P1JG1L+ZzZNFYR5kfq1Igvaik+go+FYAzx0ZQus7aoUdhdcZSqtd7Zg9Szp GIMC8Su1WaOnPew8TBgKO5kkjWcGaUkZvvu3dWA6Brg81kYdHWQt6D+NyZ0RO16VOttJ +6Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683731371; x=1686323371; 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=g/+U69i+oXYARFhfnLN9Kpm6lIKqslW4ET+ngsmdlTA=; b=NccaYIadRJAiqL9q/UTzX4IzNrEX2p/1wi9NVukwcPgI7iW7yCJ0pWrs19xu9IWojA IXKlQD7Py/440TYUZAg13t89gCBY0xM6qDmr1DBBy6eL3wKAy/hgSKn/aCZIwQ99WOPe kw+6pP5gn9SXdqkIPDd+lGHuPgyCkZPbuJ5iseQLYXLP1hZIKGJRW1n6ixetS2xbR+l1 9/3NdT9C4+2Te46wAGalv1aupDy/w6iRYBM8uQVhRP11Z5u7KjMwJN46LGbKvsouqJsB sk8rENTPx0NJ/7sXsB62jBLwOuGwQDZG9voRLJhRB39D45kf03+Y9LnRj5ZZ1Hy8FMwF 7Kxw== X-Gm-Message-State: AC+VfDy2VgUvbas2wtO/MG0U2hZQexX+8ytJlOhLDgZ4bEI/d4/QlDpd h/ookIkh37v15mz0RvIp7Q0= X-Google-Smtp-Source: ACHHUZ43znpN4GPGFdQLAMPHvVbbEvcH4cZz8x4AHB+vSapQoQWLDQThNumZ5hWAcMFZ0FlWB58xvw== X-Received: by 2002:a17:90a:db07:b0:250:50c5:cabc with SMTP id g7-20020a17090adb0700b0025050c5cabcmr16937872pjv.3.1683731370599; Wed, 10 May 2023 08:09:30 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id t15-20020a17090ad14f00b0024b6a90741esm13456870pjw.49.2023.05.10.08.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 08:09:30 -0700 (PDT) Date: Wed, 10 May 2023 20:39:25 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] staging: rtl8192e: Rename tmpOFDMindex and tmpCCKindex Message-ID: <48098479094e4562fe196cbce813476041a664df.1683730854.git.yogi.kernel@gmail.com> 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 tmpOFDMindex to tmp_ofdm_index and tmpCCKindex to tmp_cck_index to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/r= tl8192e/rtl8192e/rtl_dm.c index af136abc595c..117c0538cf5f 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(str= uct net_device *dev) #define ThermalMeterVal 9 struct r8192_priv *priv =3D rtllib_priv(dev); u32 tmp_reg, tmp_cck; - u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; + u8 tmp_ofdm_index, tmp_cck_index, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; int i =3D 0, CCKSwingNeedUpdate =3D 0; =20 if (!priv->tx_pwr_tracking_init) { @@ -689,11 +689,11 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(s= truct net_device *dev) priv->thermal_meter[1] =3D ThermalMeterVal; =20 if (priv->thermal_meter[0] >=3D (u8)tmp_reg) { - tmpOFDMindex =3D tmpCCK20Mindex =3D 6+(priv->thermal_meter[0] - + tmp_ofdm_index =3D tmpCCK20Mindex =3D 6+(priv->thermal_meter[0] - (u8)tmp_reg); tmpCCK40Mindex =3D tmpCCK20Mindex - 6; - if (tmpOFDMindex >=3D OFDM_TABLE_LEN) - tmpOFDMindex =3D OFDM_TABLE_LEN - 1; + if (tmp_ofdm_index >=3D OFDM_TABLE_LEN) + tmp_ofdm_index =3D OFDM_TABLE_LEN - 1; if (tmpCCK20Mindex >=3D CCK_TABLE_LEN) tmpCCK20Mindex =3D CCK_TABLE_LEN - 1; if (tmpCCK40Mindex >=3D CCK_TABLE_LEN) @@ -701,18 +701,18 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(s= truct net_device *dev) } else { tmpval =3D (u8)tmp_reg - priv->thermal_meter[0]; if (tmpval >=3D 6) { - tmpOFDMindex =3D 0; + tmp_ofdm_index =3D 0; tmpCCK20Mindex =3D 0; } else { - tmpOFDMindex =3D 6 - tmpval; + tmp_ofdm_index =3D 6 - tmpval; tmpCCK20Mindex =3D 6 - tmpval; } tmpCCK40Mindex =3D 0; } if (priv->current_chnl_bw !=3D HT_CHANNEL_WIDTH_20) - tmpCCKindex =3D tmpCCK40Mindex; + tmp_cck_index =3D tmpCCK40Mindex; else - tmpCCKindex =3D tmpCCK20Mindex; + tmp_cck_index =3D tmpCCK20Mindex; =20 priv->rec_cck_20m_idx =3D tmpCCK20Mindex; priv->rec_cck_40m_idx =3D tmpCCK40Mindex; @@ -727,15 +727,15 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(s= truct net_device *dev) CCKSwingNeedUpdate =3D 1; } =20 - if (priv->cck_index !=3D tmpCCKindex) { - priv->cck_index =3D tmpCCKindex; + if (priv->cck_index !=3D tmp_cck_index) { + priv->cck_index =3D tmp_cck_index; CCKSwingNeedUpdate =3D 1; } =20 if (CCKSwingNeedUpdate) rtl92e_dm_cck_txpower_adjust(dev, priv->bcck_in_ch14); - if (priv->ofdm_index[0] !=3D tmpOFDMindex) { - priv->ofdm_index[0] =3D tmpOFDMindex; + if (priv->ofdm_index[0] !=3D tmp_ofdm_index) { + priv->ofdm_index[0] =3D tmp_ofdm_index; rtl92e_set_bb_reg(dev, rOFDM0_XATxIQImbalance, bMaskDWord, OFDMSwingTable[priv->ofdm_index[0]]); } --=20 2.34.1