From patchwork Wed May 10 15:09:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 92185 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3720586vqo; Wed, 10 May 2023 08:41:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sq6M1qSHA2oR6ezNTwUywo+5xOjJrjgaW97k7v7/g5s7HmezmRzXZD5UoMLfequ2Sj7V+ X-Received: by 2002:a17:90b:1810:b0:250:981f:365a with SMTP id lw16-20020a17090b181000b00250981f365amr9036386pjb.23.1683733319529; Wed, 10 May 2023 08:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683733319; cv=none; d=google.com; s=arc-20160816; b=R+MasLoSI9Fa75+lIZIL8lQqAqMtDJBlS5UHP3DrDjrcYC+kC9qXNlLd5GazwWn6rL QNWH/ldpzJ8JRi8s1WWPLiHZZJwkOHYe7Z7kxC34E2KDyOhcjJpERFd9YMpJsejg9hVE s2frF0Ed9Cmo19W9qnfF00OfU8dlhOgLbgofI2WjedusKXsBchQmOosJOAkxR3BXjY7U r242gjq7m+U3ELt3HmMEqlHJwuQyky6zCN1A+PrqhjC9UY6nooPEA3VCeenS8tbpe/0Q fYGte128VSafbvEDu9sTHIQR6J6D79DVOKB43y6L81Zy3LTbzYN1xatq/A+ccgMSY121 JIzQ== 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=2/5MHYkfOkYJQ3WwKEx9INoY78DTjq0oXqSLJNfYktQ=; b=xTHczW0H6HG/+tluWHmcRDMz37LAYIkMGAPAI0GCZ69uFL9V4D5tzvq1oBEa3Xa7k7 +kpcfinX6Llait9BPYM5Zoa7Ujnj5j5X0qvPFxFd+2XkJvzT0w+tnFv+7RRqHpY5gwtq 73tSXWJcGWV/vPBIlB9QvC+Yg9fYNg0VBR1jjTnZ1FFiRa/9qMNRd1IxKMUD/pZqseGY +CraR0/vhUgkQCjLiD5yeEiM+m6jC76lHXV3UT52B4TnkIyLsQ2le5xLHf1lRSaBv21P zZbqkMOXU9BlZGw7OY8i/ISclAB5hdn5/VU6+OgJDFrMReemB+roBJ/tzGZ9nj8Z8Ozj /eag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=PYswHEjG; 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 mw14-20020a17090b4d0e00b002467eaf62e0si17763872pjb.178.2023.05.10.08.41.45; Wed, 10 May 2023 08:41:59 -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=PYswHEjG; 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 S237437AbjEJPJS (ORCPT + 99 others); Wed, 10 May 2023 11:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237376AbjEJPJQ (ORCPT ); Wed, 10 May 2023 11:09:16 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D18EF65AA for ; Wed, 10 May 2023 08:09:12 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-250175762b8so6358865a91.1 for ; Wed, 10 May 2023 08:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683731352; x=1686323352; 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=2/5MHYkfOkYJQ3WwKEx9INoY78DTjq0oXqSLJNfYktQ=; b=PYswHEjGfGlAdOKS84F9lqMmvGRYBxNBZZQ48dL4ScLEKMBvflskAouwo5LA7m3tYJ UHwuHv1aTb79xITPkI1r/B4pujZ3JsnY5vGCzy/KjrPNabIQl4ioYqFVsmnr5BaKfqqP x5Km2JIaPyZlXVVxpr/551I+qkLw0GbgUUYJCmSL4DpCpm/QiecMlY3vWW0bmTodbf3E IdsM4YnnIJYffE9GHwIqBpIsg9vMxtnAtOp/BU4ZAwjb7cjTDV7cGBGkf3QcvxFxabOM YpNt5hLyBAOdeFP0KqvaJtxgocCUg9IglQD7IEQZv/ITHUVHbH8gNLTsv3f0HyHUXEU/ L3KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683731352; x=1686323352; 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=2/5MHYkfOkYJQ3WwKEx9INoY78DTjq0oXqSLJNfYktQ=; b=GSdfBK/y2aFq/4cfobBUnzPt/eZGJxywyo0fOwyGLD2PBVVY4868xqu36THvCF9d/Y TboHDK8BN59wjF4ZMUYzZrAKgT5moXLXI8EpnDbVRiK0qBhNB9RZQJzsIl7G77j7/JxM M+jf76uI+xTDyqtJvN0CiHRHUIpTc56kCoUE1c0yWbDhYYSpWSJwYB61JOuQUUJKc9MH D86YxDuSqRq+xjqqkGh+djFw5yJu/uGOw8O8M8RQsDZIrGUxjk5Biu7bnpk/MlVmUgor 7gurQ3HinWOYi8Mo97JqIcnEbpA+PwG0/4lnurFdEGKAuwZ92mhBhEMr24hT36w0GRLi +0Vg== X-Gm-Message-State: AC+VfDy1Ld5sjZ54rxrCL8bj408id5xplRQO0w8saAV4yqgfRCqsDC24 8eeffyCdk5NQQNAep53HvpM= X-Received: by 2002:a17:90a:608f:b0:250:2384:120d with SMTP id z15-20020a17090a608f00b002502384120dmr16991895pji.19.1683731352284; Wed, 10 May 2023 08:09:12 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id s14-20020a17090a760e00b0024e134a2408sm16858088pjk.14.2023.05.10.08.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 08:09:12 -0700 (PDT) Date: Wed, 10 May 2023 20:39:07 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] staging: rtl8192e: Rename tmpRegA and TempCCk 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?1765522349229691978?= X-GMAIL-MSGID: =?utf-8?q?1765522349229691978?= Rename variable tmpRegA to tmp_reg, TempCCk to tmp_cck 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/rtl8192e/rtl8192e/rtl_dm.c index 56a8ec517c06..af136abc595c 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -657,21 +657,21 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) { #define ThermalMeterVal 9 struct r8192_priv *priv = rtllib_priv(dev); - u32 tmpRegA, TempCCk; + u32 tmp_reg, tmp_cck; u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; int i = 0, CCKSwingNeedUpdate = 0; if (!priv->tx_pwr_tracking_init) { - tmpRegA = rtl92e_get_bb_reg(dev, rOFDM0_XATxIQImbalance, + tmp_reg = rtl92e_get_bb_reg(dev, rOFDM0_XATxIQImbalance, bMaskDWord); for (i = 0; i < OFDM_TABLE_LEN; i++) { - if (tmpRegA == OFDMSwingTable[i]) + if (tmp_reg == OFDMSwingTable[i]) priv->ofdm_index[0] = i; } - TempCCk = rtl92e_get_bb_reg(dev, rCCK0_TxFilter1, bMaskByte2); + tmp_cck = rtl92e_get_bb_reg(dev, rCCK0_TxFilter1, bMaskByte2); for (i = 0; i < CCK_TABLE_LEN; i++) { - if (TempCCk == (u32)CCKSwingTable_Ch1_Ch13[i][0]) { + if (tmp_cck == (u32)CCKSwingTable_Ch1_Ch13[i][0]) { priv->cck_index = i; break; } @@ -680,17 +680,17 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) return; } - tmpRegA = rtl92e_get_rf_reg(dev, RF90_PATH_A, 0x12, 0x078); - if (tmpRegA < 3 || tmpRegA > 13) + tmp_reg = rtl92e_get_rf_reg(dev, RF90_PATH_A, 0x12, 0x078); + if (tmp_reg < 3 || tmp_reg > 13) return; - if (tmpRegA >= 12) - tmpRegA = 12; + if (tmp_reg >= 12) + tmp_reg = 12; priv->thermal_meter[0] = ThermalMeterVal; priv->thermal_meter[1] = ThermalMeterVal; - if (priv->thermal_meter[0] >= (u8)tmpRegA) { + if (priv->thermal_meter[0] >= (u8)tmp_reg) { tmpOFDMindex = tmpCCK20Mindex = 6+(priv->thermal_meter[0] - - (u8)tmpRegA); + (u8)tmp_reg); tmpCCK40Mindex = tmpCCK20Mindex - 6; if (tmpOFDMindex >= OFDM_TABLE_LEN) tmpOFDMindex = OFDM_TABLE_LEN - 1; @@ -699,7 +699,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) if (tmpCCK40Mindex >= CCK_TABLE_LEN) tmpCCK40Mindex = CCK_TABLE_LEN - 1; } else { - tmpval = (u8)tmpRegA - priv->thermal_meter[0]; + tmpval = (u8)tmp_reg - priv->thermal_meter[0]; if (tmpval >= 6) { tmpOFDMindex = 0; tmpCCK20Mindex = 0; From patchwork Wed May 10 15:09:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 92186 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3720593vqo; Wed, 10 May 2023 08:42:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Rq9djJJbof5DjZBdK2pbpmR0ORoXM7Bm2WH3qJD7as+cpAO/UjuzQ2Ev3JE9Z2f3JJB1k X-Received: by 2002:a17:90a:a595:b0:247:14ac:4d3a with SMTP id b21-20020a17090aa59500b0024714ac4d3amr20686125pjq.20.1683733320067; Wed, 10 May 2023 08:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683733320; cv=none; d=google.com; s=arc-20160816; b=hY2UueT9od4bixiLFZD1QnaGqMPix0VVK5R9ldrPa1s4qnxvlOQ/hIupXQkFc/slTd Pu+4iac8rv+TrpUG7BB0latM4J5ivOnh5d4+dqBTdngkSYCbmOfstJ72ZXQ9+lo5w6XL L+R/N6WAXKtRunzHgViVzy3YT5ZiI6i5Ug9SKCeHdfNeDOVX8yhNqZM5b4oS6GEz+Fnr p4tAGkvn/4SFU1ngU0ljIBt6EDmVHVtT1JeIRJkiZJ5R+8EEPwKsCwIlL5Nd6Ib5zZ7v QCHqPCLb0BPkyj8UFgw2IHDeNvfsECf3r4wES9qrQGJvCjWv67GfgPo/TPRLlcZ6NgwQ WJ0g== 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=g/+U69i+oXYARFhfnLN9Kpm6lIKqslW4ET+ngsmdlTA=; b=Gk2knzfmwe3VpMJ0Q4SXpbp1ptUE43tajpdkKzdEqmLyfchqjY1YQMpICGIzcsd3Z1 SOWYdbBc+/6yCuJ9pkmbyTxEzZQ5/VZ8A0HqXNO985V2b0KkbSF1KWZp7xlurmIDPjch E1bpnSj7QrWvkKW5iqLC73nC2BFdIaXE6PwuHVFLenG6zNUZzQpZ7KvFiPE9k9kboKR8 rjwLb1Bmj61H5LKl7lGnyKEhbFtYppuEGxA0ILlmAp05/VCOpr8P3FqMXy58ZNFAqRlr Brwg3XQkgjQtDlXJxU9bpmOU2/4pqZdoDST+UTrJy+WuyjFqSHWgcqt0LkKeRxSqFsmj QGLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=m6+LJ+C9; 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 w2-20020a17090a1b8200b0023d4a3bec5csi14202653pjc.161.2023.05.10.08.41.45; Wed, 10 May 2023 08:42:00 -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=m6+LJ+C9; 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 S237431AbjEJPJh (ORCPT + 99 others); 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-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: 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?1765522349767468117?= X-GMAIL-MSGID: =?utf-8?q?1765522349767468117?= 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/rtl8192e/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(struct net_device *dev) #define ThermalMeterVal 9 struct r8192_priv *priv = 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 = 0, CCKSwingNeedUpdate = 0; if (!priv->tx_pwr_tracking_init) { @@ -689,11 +689,11 @@ 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) { - tmpOFDMindex = tmpCCK20Mindex = 6+(priv->thermal_meter[0] - + tmp_ofdm_index = tmpCCK20Mindex = 6+(priv->thermal_meter[0] - (u8)tmp_reg); tmpCCK40Mindex = tmpCCK20Mindex - 6; - if (tmpOFDMindex >= OFDM_TABLE_LEN) - tmpOFDMindex = OFDM_TABLE_LEN - 1; + 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) @@ -701,18 +701,18 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) } else { tmpval = (u8)tmp_reg - priv->thermal_meter[0]; if (tmpval >= 6) { - tmpOFDMindex = 0; + tmp_ofdm_index = 0; tmpCCK20Mindex = 0; } else { - tmpOFDMindex = 6 - tmpval; + tmp_ofdm_index = 6 - tmpval; tmpCCK20Mindex = 6 - tmpval; } tmpCCK40Mindex = 0; } if (priv->current_chnl_bw != HT_CHANNEL_WIDTH_20) - tmpCCKindex = tmpCCK40Mindex; + tmp_cck_index = tmpCCK40Mindex; else - tmpCCKindex = tmpCCK20Mindex; + tmp_cck_index = tmpCCK20Mindex; priv->rec_cck_20m_idx = tmpCCK20Mindex; priv->rec_cck_40m_idx = tmpCCK40Mindex; @@ -727,15 +727,15 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev) CCKSwingNeedUpdate = 1; } - if (priv->cck_index != tmpCCKindex) { - priv->cck_index = tmpCCKindex; + if (priv->cck_index != tmp_cck_index) { + priv->cck_index = tmp_cck_index; CCKSwingNeedUpdate = 1; } if (CCKSwingNeedUpdate) rtl92e_dm_cck_txpower_adjust(dev, priv->bcck_in_ch14); - if (priv->ofdm_index[0] != tmpOFDMindex) { - priv->ofdm_index[0] = tmpOFDMindex; + if (priv->ofdm_index[0] != tmp_ofdm_index) { + priv->ofdm_index[0] = tmp_ofdm_index; rtl92e_set_bb_reg(dev, rOFDM0_XATxIQImbalance, bMaskDWord, OFDMSwingTable[priv->ofdm_index[0]]); } 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) { From patchwork Wed May 10 15:10:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 92180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3710717vqo; Wed, 10 May 2023 08:28:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Uf8FrAOpsSrzfCOvJCnQxBVebyTpQspX/WJfijGZhAh2KyBm/SVgS/ZqtD6jHV767Lx3K X-Received: by 2002:a05:6a20:12d3:b0:ff:d5b7:a5d7 with SMTP id v19-20020a056a2012d300b000ffd5b7a5d7mr17985945pzg.59.1683732492987; Wed, 10 May 2023 08:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683732492; cv=none; d=google.com; s=arc-20160816; b=kiEug4Bn2bAU3ujuaG2WtsSuXZKuUJ2/OIl5+EsYduM/wA+2HJDsPbKJLNchj93NfV JEDTKZj+HhYIW12ccMWFaylPI414t1Mc/kzxcsbZb7oDMNCXrJIgp0SZLoGvpCJec0YE D4h+bVt7k/jROc2ZzRSknWy3qm72AXX1rSDj8SgYsl75+A8m9uFlOBrbpd7+r57soqqf who5o0DF887N0uAeyON+YrYcb4aitOjfvRefokg8M+JKbb2nIXl845pNi60tHPjyZ31x Hg1qfnaFmi/q2sbkBS9cYFpOU/USLISYk4cc2EAxqKF+hehzGgMhYHrRFfeHKS9juucD Ee1g== 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=BbmQvMf9KzmVdxCSRKyarW++yF6GCnmLwgE9M2RotW4=; b=sgw02sqDo/WK5mVOhjv/PjMH0kju7zEqi65ONQwC4eucizPyIUCRPT4NWKXmLviG2P bBFYIFFG39c2SVMkJi2VwwnsV/25d++w42PCIBtAjQQnUpE+4i/sVKqFoKs6DwUUAFbJ EoJi1O5BiIbS69sHqUw3V98Ft+phBd36rZvFvKCI/gnuvBRaWUI9vOQutHPd2CyxFih7 veG7gUuv2AdI+mHbQ/pM0aXkwkgcwn8s8NE0VXzZzf75KguGalgPSsC6V+t8sUjnVPiN RnYkEP1VclmcRYlwdbRByPVPsRopnlZ0MgqzzNtxCUow+m6l1QnahVeU73vot5eFyYyD IkoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ZtJb+YQh; 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 h125-20020a636c83000000b0051b5bb35d72si4331132pgc.338.2023.05.10.08.27.57; Wed, 10 May 2023 08:28:12 -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=ZtJb+YQh; 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 S237533AbjEJPKO (ORCPT + 99 others); Wed, 10 May 2023 11:10:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237504AbjEJPKN (ORCPT ); Wed, 10 May 2023 11:10:13 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8760A7AAE for ; Wed, 10 May 2023 08:10:09 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6439bbc93b6so4979644b3a.1 for ; Wed, 10 May 2023 08:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683731409; x=1686323409; 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=BbmQvMf9KzmVdxCSRKyarW++yF6GCnmLwgE9M2RotW4=; b=ZtJb+YQhL1NxXiVYXH/As6s0vhSNRYSvBGb+N15NM9sSTgykg2AjFG9qO3PG1SSAdX 3CzT1p1aXATma9d/PmwuFlgGVy7iPV0mFxdq0s4DTw30wK9x5u6+A4moyvlsOiikgmKe AebpEZLZg5GoW77NMWMF3/j1eyyDOkLUUU0EqMnk6swb6Fa0hyQ0dXmmyn2aywJMC7Kg zOTes6Wbgk23IVk/ItcrUYD/ki8KW08GvSbIgX6luFY4S1pMla1MDbBqgHS6hjyOjwtC ShxaC9GcJ/6967chkJuXT2NCet7fFBrtkg8OgXdS0F6KlQH5bM+1Nbl+4E+PuaK1vc+S 7C8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683731409; x=1686323409; 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=BbmQvMf9KzmVdxCSRKyarW++yF6GCnmLwgE9M2RotW4=; b=UirqQkQ/Mi0NLqvFo1lhlWQ059tueRdiPn11Q/xTlIl6VfeKNP0EyX+Fp0d9p0j7Z9 g8N40WxDWhRwbb/Hd1N8am8VvgcJsiplAw0afcfiYkue4gzhtIz1oKMzum8v9Q0YJuBm okHl8J+UornBTo3ET+Fj5UJRIc7APqoGIVDPB5THH9b7Chs8Su3DU0Sc4GrNrTPKuDOC pav9LXAqnblz1+Gb+bxq6QQTdZhJW+fmJ00T6a3IaEZSFkMX87M0IovFPit1mn1qvVJA c725W39rDRgjs1KHyaLzbwLmZuBlE+1lwxYCMVYmfWcxJivQvWpFBf3jaPISj23oG5h6 MbMQ== X-Gm-Message-State: AC+VfDzKQDr9t8b+NZoW3uS+75N7ZppmfgxFf6enq7+mYcS/QznXNHpq bOFkcIq4GG3O4Kwwvodt1SI= X-Received: by 2002:a05:6a21:788f:b0:101:37b2:62f3 with SMTP id bf15-20020a056a21788f00b0010137b262f3mr8536263pzc.61.1683731408908; Wed, 10 May 2023 08:10:08 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id x6-20020aa793a6000000b00640f588b36dsm3697217pff.8.2023.05.10.08.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 08:10:08 -0700 (PDT) Date: Wed, 10 May 2023 20:40:04 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] staging: rtl8192e: Refactor tmp_ofdm_index variable assignment 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?1765521482375728745?= X-GMAIL-MSGID: =?utf-8?q?1765521482375728745?= Refactor tmp_ofdm_index variable assignment to avoid multiple assignments which is not accepted by checkpatch. Signed-off-by: Yogesh Hegde --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index a44be3f810ab..feac50cd8fa0 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -689,8 +689,8 @@ 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 = tmp_cck_20m_index = 6+(priv->thermal_meter[0] - - (u8)tmp_reg); + tmp_ofdm_index = 6 + (priv->thermal_meter[0] - (u8)tmp_reg); + tmp_cck_20m_index = tmp_ofdm_index; tmp_cck_40m_index = tmp_cck_20m_index - 6; if (tmp_ofdm_index >= OFDM_TABLE_LEN) tmp_ofdm_index = OFDM_TABLE_LEN - 1;