From nobody Mon Sep 15 06:22:59 2025 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 ADB48C63797 for ; Sun, 15 Jan 2023 20:20:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231574AbjAOUU0 (ORCPT ); Sun, 15 Jan 2023 15:20:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231523AbjAOUUW (ORCPT ); Sun, 15 Jan 2023 15:20:22 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 994AD12F23 for ; Sun, 15 Jan 2023 12:20:21 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id az20so44619565ejc.1 for ; Sun, 15 Jan 2023 12:20:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=n9PMUN06RhbNHE4qDKcXN4Xb3hE+7IHkXvclZTL5rZs=; b=UFwvfEY6RgPL6bTmbwMM6X804QbJ95a78/+fsEiD5IN1BGpQRN7OsCxJDytCyzjwwr UaniCR6F9hseOhz3D74EkQQkron6+fHd6Fk06RT59CNiA4AoD0Ef8mlipOtkBQVu5q76 kGOTwN/hC8X2Hly5SlAwGRZRczxlB+VhJp12Iv7QHAVZ4SGi1sRnuJEjfdkLv4wdD4lG nr+NFUnlkmgKRJS/iuTdkCSuDpyBzcjt/6h/e0Ns19aRr8RWSyvt3oBJlkoGwGvlWBCv z65mRlOdhHj6dEonzrPklK8RgHXQPIM3opUOB+BIETQQeFH0OoBdhmJdmUIlme3+9Xvv +CpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=n9PMUN06RhbNHE4qDKcXN4Xb3hE+7IHkXvclZTL5rZs=; b=H99SopnVVjbtUSeqWb5rpZjE0EQjAaoPSGYHKGWEP3ERzt+LkepNj+a9tR5kxt9rZS G3NBb8uFdL5wVhcG64bXQ9nGtiMfOtVvUWGqsXw4yereANFYtrD3NYyygf8f6U4JIV/p f6uyphAIAyBww3L79GMRMEFODj9CulSl4uPAZ51cm8hG2b6kfKj02rbYBS0z/2IpzWeb hfjTeYJ0oujjS4y9iZ15eODvk0K+gE8zU1DiVj3oBmBKPljJJhOb6loZ7J/k2A3Ii/2D U7n/7FL3Kd7FfxWaWPBrhj8ImASJikFFUhOdJy2zdLwJZnoeDeUTNVWDpQXwYpuq0TWW 7b7w== X-Gm-Message-State: AFqh2kpS27Fi5HT+IwMXPv9DRthTOYE4dzaYMxhwEgIMzMo3WomlhRsH Va1WNjO+a0a8d55QyomfR7Q= X-Google-Smtp-Source: AMrXdXvmY1wWNoeCogxM3MvtEhpje1snWXE5Hb+XnxmRK3ALTBI4yeNoKNzBxYRvEOAbq3kb4Ogi8w== X-Received: by 2002:a17:906:9c85:b0:7c0:d7af:fce3 with SMTP id fj5-20020a1709069c8500b007c0d7affce3mr16969500ejc.1.1673814020184; Sun, 15 Jan 2023 12:20:20 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935ca5.dip0.t-ipconnect.de. [87.147.92.165]) by smtp.gmail.com with ESMTPSA id p21-20020a056402045500b0048aff8b5b70sm10601967edw.67.2023.01.15.12.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Jan 2023 12:20:19 -0800 (PST) Date: Sun, 15 Jan 2023 21:20:18 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 04/10] staging: rtl8192e: Rename rateCountDi.., ContinueDif.. and TxCounter 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 rateCountDiffRecord to rate_count_diff_rec, ContinueDiffCount to continue_diff_count and TxCounter to tx_counter to avoid CamelCase which is not accepted by checkpatch. Signed-off-by: Philipp Hortmann --- .../staging/rtl8192e/rtl8192e/r8192E_dev.c | 4 +-- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 6 ++--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 26 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/stagi= ng/rtl8192e/rtl8192e/r8192E_dev.c index ebf1fa5ec295..1f0c53dcbb2d 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -2154,10 +2154,10 @@ bool rtl92e_is_tx_stuck(struct net_device *dev) bool bStuck =3D false; u16 RegTxCounter =3D rtl92e_readw(dev, 0x128); =20 - if (priv->TxCounter =3D=3D RegTxCounter) + if (priv->tx_counter =3D=3D RegTxCounter) bStuck =3D true; =20 - priv->TxCounter =3D RegTxCounter; + priv->tx_counter =3D RegTxCounter; =20 return bStuck; } diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging= /rtl8192e/rtl8192e/rtl_core.h index af377f7c7f7b..be87bb9da6cc 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -510,8 +510,8 @@ struct r8192_priv { =20 bool bfsync_processing; u32 rate_record; - u32 rateCountDiffRecord; - u32 ContinueDiffCount; + u32 rate_count_diff_rec; + u32 continue_diff_count; bool bswitch_fsync; u8 framesync; u32 framesyncC34; @@ -520,7 +520,7 @@ struct r8192_priv { u32 reset_count; =20 enum reset_type rst_progress; - u16 TxCounter; + u16 tx_counter; u16 rx_ctr; bool bResetInProgress; bool force_reset; diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/r= tl8192e/rtl8192e/rtl_dm.c index 9789cdd8ac15..2a570c28e694 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -2008,31 +2008,31 @@ static void _rtl92e_dm_fsync_timer_callback(struct = timer_list *t) priv->rate_record; else rate_count_diff =3D rate_count - priv->rate_record; - if (rate_count_diff < priv->rateCountDiffRecord) { + if (rate_count_diff < priv->rate_count_diff_rec) { =20 - u32 DiffNum =3D priv->rateCountDiffRecord - + u32 DiffNum =3D priv->rate_count_diff_rec - rate_count_diff; if (DiffNum >=3D priv->rtllib->fsync_seconddiff_ratethreshold) - priv->ContinueDiffCount++; + priv->continue_diff_count++; else - priv->ContinueDiffCount =3D 0; + priv->continue_diff_count =3D 0; =20 - if (priv->ContinueDiffCount >=3D 2) { + if (priv->continue_diff_count >=3D 2) { bSwitchFromCountDiff =3D true; - priv->ContinueDiffCount =3D 0; + priv->continue_diff_count =3D 0; } } else { - priv->ContinueDiffCount =3D 0; + priv->continue_diff_count =3D 0; } =20 if (rate_count_diff <=3D priv->rtllib->fsync_firstdiff_ratethreshold) { bSwitchFromCountDiff =3D true; - priv->ContinueDiffCount =3D 0; + priv->continue_diff_count =3D 0; } priv->rate_record =3D rate_count; - priv->rateCountDiffRecord =3D rate_count_diff; + priv->rate_count_diff_rec =3D rate_count_diff; if (priv->undecorated_smoothed_pwdb > priv->rtllib->fsync_rssi_threshold && bSwitchFromCountDiff) { @@ -2073,7 +2073,7 @@ static void _rtl92e_dm_fsync_timer_callback(struct ti= mer_list *t) rtl92e_writeb(dev, 0xC36, 0x5c); rtl92e_writeb(dev, 0xC3e, 0x96); } - priv->ContinueDiffCount =3D 0; + priv->continue_diff_count =3D 0; rtl92e_writel(dev, rOFDM0_RxDetector2, 0x465c52cd); } } @@ -2114,7 +2114,7 @@ static void _rtl92e_dm_end_sw_fsync(struct net_device= *dev) rtl92e_writeb(dev, 0xC3e, 0x96); } =20 - priv->ContinueDiffCount =3D 0; + priv->continue_diff_count =3D 0; rtl92e_writel(dev, rOFDM0_RxDetector2, 0x465c52cd); } =20 @@ -2125,8 +2125,8 @@ static void _rtl92e_dm_start_sw_fsync(struct net_devi= ce *dev) u32 rate_bitmap; =20 priv->rate_record =3D 0; - priv->ContinueDiffCount =3D 0; - priv->rateCountDiffRecord =3D 0; + priv->continue_diff_count =3D 0; + priv->rate_count_diff_rec =3D 0; priv->bswitch_fsync =3D false; =20 if (priv->rtllib->mode =3D=3D WIRELESS_MODE_N_24G) { --=20 2.39.0