Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp582990rdf; Tue, 21 Nov 2023 10:16:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4znhMEDIu/TRcFoelkOAvu6E/0pCqhfaP5ZkhPTVdihXG4FrzYR88gCheSqL5L1z0pXXg X-Received: by 2002:a05:6a00:26c7:b0:68f:cbd3:5b01 with SMTP id p7-20020a056a0026c700b0068fcbd35b01mr4526177pfw.13.1700590616909; Tue, 21 Nov 2023 10:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700590616; cv=none; d=google.com; s=arc-20160816; b=OyCPtP6cswyQ6fvpcifd0DLyWtBgtBCXaHIiPF9kuqveqJmol1kJ4B2S8TZpd5cUal UNkQRPX8bvA7HyCgi24hnJkFYG67RpRoS7A5oa/eaki4tt46sWCRYpXrd/VTjVFhXu5I JDcv64zvvUWkdB829C5IbuNMBWYYFcger/SGRNo9tph93y0hkoLN4PuCdTsexlrbswc/ 2OeMmUGRX0kKrcVtCJIbqeO3TekXWMSG8VpJKCKXog8vaKg7TzkNIMKmAt6GSgwbalz8 smB8UiOTEmOKgl3YYGMtcj35jukXVgXn7wjrxIPTSn9Rp5dilW13cHxNlCToLeaC+4OO 2LuA== 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=9THkF506HhQTz9C2aPreqLigusizQOZKZ9S9SPw4Ix8=; fh=N6kOWzzoyFx46KhufQEFsHexRnrKpkm1lLeFNNXuCFg=; b=xhWYP6QgnCmHCmM0i3I4A8mISi4bRz4HwX8edZZIKDGC1ucdi/q8/fXMZHXNc/vL7K cqGcMmP2Ur2QJV28m1GqRXkAOe5m2QxLze7HVWHLgUoXXSWcSHwxUdfxVtXVMBAcaBuO t1CN2o42QcRnhTdR3aASLNrmM9VoNfb+7dGMZp1o685pYGr/cF18zLT+/dTW0d1cwYhN /8FiEGB2yiwk9OmETyXUXgUU934Nl5RgysEbgfkdGJW03a4kkyCWHDAus6DZVlmjd2Tz 4+8K+8zLyeWpNHHWy/OIqw63pyanmJUv2ilfL6SLdDi78VDFTSbQiUV5eYzR9YYXr0vM 4tqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.org header.s=fm1 header.b=NkBSyZWa; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=vbOsnEk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id j4-20020a056a00130400b006bca1246564si10747681pfu.271.2023.11.21.10.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:16:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@fastmail.org header.s=fm1 header.b=NkBSyZWa; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=vbOsnEk2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id E0BCA8084959; Tue, 21 Nov 2023 10:16:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234465AbjKUSPG (ORCPT + 99 others); Tue, 21 Nov 2023 13:15:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234378AbjKUSPC (ORCPT ); Tue, 21 Nov 2023 13:15:02 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA10D97 for ; Tue, 21 Nov 2023 10:14:57 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 11F0D3201951; Tue, 21 Nov 2023 13:14:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 21 Nov 2023 13:14:57 -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=1700590496; x= 1700676896; bh=9THkF506HhQTz9C2aPreqLigusizQOZKZ9S9SPw4Ix8=; b=N kBSyZWaGDoYvvuD011TrlutIOrxK+LgtnFPrXPa2NVAt2Kt2SWy5XWC1GJGAIUN7 dkjFPEy0di8VJjWr5dTugaGJQ4q9SkJ4Zthq7ISjzlUnLErgwNDH6mAM5VTHesl7 HpVA8jf0SkpQoM7FLew/TWSZiAvVMCiaoM/3pyBC+VIbLSr96Qv+PD0uBOUy7aC+ EeOa1kVDmfcWgi9Hh9DHqe1UrdPuGYWjaJqCm1ygXZrx7+O6kHnQeX2Njx7oTsR3 IORrF7fAgtVGHbOjGSlBTJoyaT+U78rHJdQ1QO9vioKCdFddZBFggNE86/rF9GPn YuH4R3rBWWi8NpfxuFajQ== 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=1700590496; x= 1700676896; bh=9THkF506HhQTz9C2aPreqLigusizQOZKZ9S9SPw4Ix8=; b=v bOsnEk2AK/Tc0H8I/wKGDDnr5yBSUiBOxioD/xoHiDXVXd0+LRn3yTCtbA8n4Q5y dNm6uuNuHrepu4YSWoq9HK0LNS0bAEf1J+wR/fNJULYPwTygWBNs8ePVkhV16EHu rnfVbgxkhJbisEfOC+agg70+IN0xoDOkA9+FuHRH9acYYTmNJ1i8WNnx0H0gRW9i kPVZfhF6ztnAwtnxqcytCS2uCwSWdNu4u1jD1WVoXvGb4mzi7kMrDOFuXrKbUV+L 08k/gMZ1OoXkNBgBdamnjx+PH9X3e73oFvkRujMgMCa599B1GFDh+h/HBzU+Wbvv 1jpIJbia//UruKLICp//Q== 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:55 -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 2/5] staging: rtl8192e: renamed variable TXCountToDataRate Date: Tue, 21 Nov 2023 13:14:32 -0500 Message-ID: <20231121181435.9337-3-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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:16:09 -0800 (PST) Renamed from Pascal/CamelCase to Snake case the variable TXCountToDataRate. TXCountToDataRate -> tx_count_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 | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index 280e335cbb6d..fb8294f31a60 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -114,7 +114,7 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *ieee, u8 nMcsRate) return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate & 0x7f)]; } -u16 TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate) +u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate) { u16 CCKOFDMRate[12] = {0x02, 0x04, 0x0b, 0x16, 0x0c, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6c}; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index d2cf3cfaaaba..0226a69f40c3 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1783,7 +1783,7 @@ extern u16 MCS_DATA_RATE[2][2][77]; u8 HTCCheck(struct rtllib_device *ieee, u8 *pFrame); void HTResetIOTSetting(struct rt_hi_throughput *ht_info); bool IsHTHalfNmodeAPs(struct rtllib_device *ieee); -u16 TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate); +u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate); int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb); int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb); int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb); diff --git a/drivers/staging/rtl8192e/rtllib_softmac_wx.c b/drivers/staging/rtl8192e/rtllib_softmac_wx.c index f32584291704..28aba1d610f7 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac_wx.c +++ b/drivers/staging/rtl8192e/rtllib_softmac_wx.c @@ -208,7 +208,7 @@ int rtllib_wx_get_rate(struct rtllib_device *ieee, { u32 tmp_rate; - tmp_rate = TxCountToDataRate(ieee, + tmp_rate = tx_count_to_data_rate(ieee, ieee->softmac_stats.CurrentShowTxate); wrqu->bitrate.value = tmp_rate * 500000; -- 2.41.0