staging: rtl8192e: renamed variable TXCountToDataRate
authorGary Rookard <garyrookard@fastmail.org>
Thu, 23 Nov 2023 14:43:34 +0000 (09:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Nov 2023 10:27:08 +0000 (10:27 +0000)
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 <garyrookard@fastmail.org>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20231123144337.13112-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac_wx.c

index 95ed79f346317396620e4bfc2e10050d772e5c29..6bf48543c33909ca33ab0d55a5072c2838cd007e 100644 (file)
@@ -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};
index 77ae259eab355cc5984ffea5ca54d273cd3005fd..f853be8d4d08799f12c8617ef3628b538ac7c0a3 100644 (file)
@@ -1780,7 +1780,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);
index f32584291704e00ab10a8dc695a4aa3dbb8f39fb..28aba1d610f7d647f02d38a6b6b980d476debee9 100644 (file)
@@ -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;