Skip to contentSkip to conversation

rtlwifi: rtl8192se: Fixed coding style issues

PATCH Superseded Daniel Stamer 2 participants 2 messages Nov 28, 2012 Networking drivers (wireless)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtlwifi: rtl8192se: Fixed coding style issues

This patch fixes coding style issues in the whole rtl8192se driver. All rules are used, except for the one which demands empty last lines on block comments. Some fields have been altered to create readable lines in 80 columns.

---
 drivers/net/wireless/rtlwifi/rtl8192se/def.h |  3 +-
 drivers/net/wireless/rtlwifi/rtl8192se/dm.c  | 79 +++++++++++++---------------
 drivers/net/wireless/rtlwifi/rtl8192se/hw.c  |  3 +-
 drivers/net/wireless/rtlwifi/rtl8192se/hw.h  |  2 +-
 drivers/net/wireless/rtlwifi/rtl8192se/sw.c  |  9 ++--
 5 files changed, 44 insertions(+), 52 deletions(-)
drivers/net/wireless/rtlwifi/rtl8192se/def.h +1 -2
index 20afec6..2d255e0 100644
@@ -522,8 +522,7 @@ enum fwcmd_iotype {
 	FW_CMD_IQK_ENABLE = 30,
 };
 
-/*
- * Driver info contain PHY status
+/* Driver info contain PHY status
  * and other variabel size info
  * PHY Status content as below
  */
drivers/net/wireless/rtlwifi/rtl8192se/dm.c +37 -42

142 lines not on this page · raw message

drivers/net/wireless/rtlwifi/rtl8192se/hw.c +2 -1
index 4542e69..976c6a4 100644
@@ -1089,8 +1089,9 @@ int rtl92se_hw_init(struct ieee80211_hw *hw)
 	return err;
 }
 
-void rtl92se_set_mac_addr(struct rtl_io *io, const u8 * addr)
+void rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr)
 {
+	/* This is obviously a stub. */
 }
 
 void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid)
drivers/net/wireless/rtlwifi/rtl8192se/hw.h +1 -1
index 1886c26..a8e068c 100644
@@ -54,7 +54,7 @@ void rtl92se_disable_interrupt(struct ieee80211_hw *hw);
 int rtl92se_set_network_type(struct ieee80211_hw *hw,
 			     enum nl80211_iftype type);
 void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid);
-void rtl92se_set_mac_addr(struct rtl_io *io, const u8 * addr);
+void rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr);
 void rtl92se_set_qos(struct ieee80211_hw *hw, int aci);
 void rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw);
 void rtl92se_set_beacon_interval(struct ieee80211_hw *hw);
drivers/net/wireless/rtlwifi/rtl8192se/sw.c +3 -6
index ad4b480..c725133 100644
@@ -50,8 +50,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
 	/*close ASPM for AMD defaultly */
 	rtlpci->const_amdpci_aspm = 0;
 
-	/*
-	 * ASPM PS mode.
+	/* ASPM PS mode.
 	 * 0 - Disable ASPM,
 	 * 1 - Enable ASPM without Clock Req,
 	 * 2 - Enable ASPM with Clock Req,
@@ -67,8 +66,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
 	/*Setting for PCI-E bridge */
 	rtlpci->const_hostpci_aspm_setting = 0x02;
 
-	/*
-	 * In Hw/Sw Radio Off situation.
+	/* In Hw/Sw Radio Off situation.
 	 * 0 - Default,
 	 * 1 - From ASPM setting without low Mac Pwr,
 	 * 2 - From ASPM setting with low Mac Pwr,
@@ -77,8 +75,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
 	 */
 	rtlpci->const_hwsw_rfoff_d3 = 2;
 
-	/*
-	 * This setting works for those device with
+	/* This setting works for those device with
 	 * backdoor ASPM setting such as EPHY setting.
 	 * 0 - Not support ASPM,
 	 * 1 - Support ASPM,
Signature · 1 line
1.8.0.1
#1 lore raw
Quoted 5 lines · Daniel Stamer

This patch fixes coding style issues in the whole rtl8192se driver. All rules are used, except for the one which demands empty last lines on block comments. Some fields have been altered to create readable lines in 80 columns.

This patch does not apply against either the wireless-next or wireless-testing git trees. I could "force" it with wiggle, but John will not, and should not, need to do that. What source tree did you use?

Larry