Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp582500rdf; Tue, 21 Nov 2023 10:16:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IH31A9KbYgTQ9LbRJrqDSUafDQtwV92Xpy2gHOeTZyH9wEK3GirREBJlLidscxvZMhfln0c X-Received: by 2002:a17:90a:3ee2:b0:27d:2108:af18 with SMTP id k89-20020a17090a3ee200b0027d2108af18mr12130138pjc.25.1700590573769; Tue, 21 Nov 2023 10:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700590573; cv=none; d=google.com; s=arc-20160816; b=oKxeRna4DUe4ZIqlk3IXYAHhgUnBsHKS3u4xLIV1Oc62FfQ8RmAZEHptBKBrZi5S8t qUPYlwTJK6SEXyl7T8215tlEoJ5e6VtzILg4CZyVuA5y6tCFgG6WGJDBqcpMJkmda3NE Lc6f3gJiXQ9em73JUnJPKN0/+Dl3XYNCwQvfYA5NJovz6B9OMEHrj5eTtZMuJo8Cg0Oh I85FvDMapGSUoJO4jEtlaY26Jq1/pzTN66nxg6GoBmdmSGjGHxUHbjMKke+LepdLWJL5 hgIuyOL6aeNMIyjZfZOPNrH/H2uErExQsyzYDPIvl5MDKcnzZNDLxRICO53vRwg1ky/c vrFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=9rRVIO4sacT/WuKNye++g7i1GjccmOxkpvkcPs1Z4KY=; fh=N6kOWzzoyFx46KhufQEFsHexRnrKpkm1lLeFNNXuCFg=; b=zyYyqT3ZyRBCJYOFigog5UDgWK4hN37JISlzPfESrktlg/2s5WrFDET2loq06DqO6D ymXd6aqRWAKhzjgMvngc8JvKR5s8jrGrviVLv2t64MYwpFWs/8INqr88eux3UPGCYftc sPDDB5l4ZOdRolspdvIujDKwLCRgI/RSn3FLLVKE/RTpLDqvunyF2EBu3lX1AvV1xrdo RHZQ4ZjP7/3U8ZQWEUkSK5LkcmihEf2uXacb0qVzGjP8CChWHDLfro2AGW1mLh09mVx8 JCdcns8j0XGIQz2TDvo4F1ZgXle+O+zcgBFayEp6psTcE4pwLZG9R+xU9HfMKSYi28AT I7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.org header.s=fm1 header.b="WHILJ1/J"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RSbjTL0o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id me5-20020a17090b17c500b0028060259454si14579970pjb.166.2023.11.21.10.16.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:16:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@fastmail.org header.s=fm1 header.b="WHILJ1/J"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RSbjTL0o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6E3548076003; Tue, 21 Nov 2023 10:15:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234346AbjKUSO7 (ORCPT + 99 others); Tue, 21 Nov 2023 13:14:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234244AbjKUSO5 (ORCPT ); Tue, 21 Nov 2023 13:14:57 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09156193 for ; Tue, 21 Nov 2023 10:14:54 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 24A4F3201928; Tue, 21 Nov 2023 13:14:53 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 21 Nov 2023 13:14:53 -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=1700590492; x= 1700676892; bh=9rRVIO4sacT/WuKNye++g7i1GjccmOxkpvkcPs1Z4KY=; b=W HILJ1/JKWzU9UVfQSgl802z15F+A0JXblqmKH4cn/9QuAbR9R8XoCCqsXo3jmDF4 wfR6G4culql6PNzPTUncs7d1M2ARsnh8fOuxDf0YmbBEr1EPMxp/4NQ+m6H1nnhR LWBplBMFUJpWF9/RTts6zknDUR+sjClMb9P14fjHi3H+30fVYQPK4AUfqXxOfVvq JiPrU4RnBm+YZoNd209krXUPz5k5/hb5r6t8IgZl66ovTdb19vN/dPpnhpGzukbo fR2M5WQ4dgHdF1Otmv5L/HiTwr1gDkSz8dAlxKMwf7WmLjyIBaByUNSDMakYqrf3 jwPqA3t431DHwCiVilaeg== 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=1700590492; x= 1700676892; bh=9rRVIO4sacT/WuKNye++g7i1GjccmOxkpvkcPs1Z4KY=; b=R SbjTL0o0LUYs+FWoSSxjSD9Gv+bG23F9Z74Qclgt6dh752vH8aFxNp4GyuFFihgS 7PYFBhHhui9mA5vat+ZeBajzzOqIeUN8gDKzBKB8a+6FQOGf14ULaUlITlU5/ed7 ZnVDb5VQc3n3vFJyQfX+J5CIxMrPdPGWO0LJpIYH4YfTPLHjRlIIHQrloXjap3ys QULAPdDKpHUQ4mCNS4DcvQnFblE25WjmD+Uu29zgGEjvnsDXqEWEFxZpVgQ1cdcm U1HZN2NcWmOCAPIBH63oNplyKRTzyv+bYh26hhugybp+2ghc2VgakPtPtyI7bH+v Hcw6ip2HO5+xZtXHv1lbg== 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:14:52 -0500 (EST) From: Gary Rookard To: gregkh@linuxfoundation.org, philipp.g.hortmann@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:14:31 -0500 Message-ID: <20231121181435.9337-2-garyrookard@fastmail.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231121181435.9337-1-garyrookard@fastmail.org> References: <20231121181435.9337-1-garyrookard@fastmail.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:15:18 -0800 (PST) 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/rtl8192e/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 *ieee) ht_info->rx_reorder_pending_time = 30; } -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 = ieee->ht_info; @@ -422,8 +422,8 @@ u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet, bitMap = availableMcsRate[i]; for (j = 0; j < 8; j++) { if ((bitMap % 2) != 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 = 8 * i + j; } bitMap >>= 1; -- 2.41.0