From nobody Fri Dec 19 07:31:41 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 575F6C61D85 for ; Tue, 21 Nov 2023 18:10:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233972AbjKUSKK (ORCPT ); Tue, 21 Nov 2023 13:10:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjKUSKI (ORCPT ); Tue, 21 Nov 2023 13:10:08 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 465CDE8 for ; Tue, 21 Nov 2023 10:10:05 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 64F193201A16; Tue, 21 Nov 2023 13:10:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 21 Nov 2023 13:10:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1700590203; x= 1700676603; bh=9rRVIO4sacT/WuKNye++g7i1GjccmOxkpvkcPs1Z4KY=; b=O Lr9snVRyMDQ8w03mSIyqUT1pQaYkzz9/FX2L01fYxSo+iQDza1KiP2CbddfHCSJZ caNN5+R3qRyUQ3qAIWxBsb8lNggReShRacy48OQUXEV+D4XYm6E+i38UNMyV/y9v CfSD2GC+IEiVa1X+bKyOgDXy8HWn1GdNhMmP8z3T8WhDRH93SLcAcPV/j/rfPA3C XS0o7mxXLzeyAzcvn6R7xYuiis4Y0kkzlAGVA8/ucFX7kyt9nEEYD1BIOjiebCmB nJ4dR45qPl7C57shDTqbc9BOFYPXXQnloA4R+e//fNeStruyJon7vpDMZZkUNjki OeabMDi1hFbNGPYAabXGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1700590203; x= 1700676603; bh=9rRVIO4sacT/WuKNye++g7i1GjccmOxkpvkcPs1Z4KY=; b=A 3PPcdvUTnckw2Nge3IAbwUT7LfBebXdWfSrFEDplDiNijNRV3IpNwyo435CVZUbz 0TXFVa21Bdk/5Kjkx5N8B2hjjJodoBbOjeiElZ7nwrU8dm6q6DQnJj8LzIJTPDGg Rqyjfq0gSd1bxS1bgI68qZ4lroVcISsOKXCOGyCJ6rVEPYAOfIAbej4kgwCJakBf caSgT4htZnzzXGPr43LhJ/vgCqtBy0FF6CID/ghATBZa8gFGrA2/cT094PwrqUNt 8ApVDHYTptMemlNHHefDbw0nNQS8voqYCUyCO+5sK5CPQ+wJbZRfOEg/wrnmoUEI NqwRRF36H7sADt72ESOPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegledguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepifgrrhihucftohhokhgrrhguuceoghgrrhihrhhoohhk rghrugesfhgrshhtmhgrihhlrdhorhhgqeenucggtffrrghtthgvrhhnpeekuedvffeuud ekgeeiueffjeehgfekteefheeuleefudeugfevleelhfefgfejvdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrghrhihrohhokhgrrhguse hfrghsthhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ifd194980:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Nov 2023 13:10:02 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoudation.org, philipp.g.hortman@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gary Rookard Subject: [PATCH 1/5] staging: rtl8192e; renamed variable HTMcsToDataRate Date: Tue, 21 Nov 2023 13:09:43 -0500 Message-ID: <20231121180947.9223-2-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231121180947.9223-1-garyrookard@fastmail.org> References: <20231121180947.9223-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Renamed variable from Pascal/CamelCase to Snake case the variable HTMcsToDataRate. HTMcsToDataRate -> ht_mcs_to_data_rate Linux Kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles. Signed-off-by: Gary Rookard --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt= l8192e/rtl819x_HTProc.c index e607bccc079a..280e335cbb6d 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -103,7 +103,7 @@ void ht_update_default_setting(struct rtllib_device *ie= ee) ht_info->rx_reorder_pending_time =3D 30; } =20 -static u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate) +static u16 ht_mcs_to_data_rate(struct rtllib_device *ieee, u8 nMcsRate) { struct rt_hi_throughput *ht_info =3D ieee->ht_info; =20 @@ -422,8 +422,8 @@ u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *= pMCSRateSet, bitMap =3D availableMcsRate[i]; for (j =3D 0; j < 8; j++) { if ((bitMap % 2) !=3D 0) { - if (HTMcsToDataRate(ieee, (8 * i + j)) > - HTMcsToDataRate(ieee, mcsRate)) + if (ht_mcs_to_data_rate(ieee, (8 * i + j)) > + ht_mcs_to_data_rate(ieee, mcsRate)) mcsRate =3D 8 * i + j; } bitMap >>=3D 1; --=20 2.41.0