Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtlwifi: rtl8192ee: Make functions static & rm sw.h

Some of functions which were exposed in sw.h, are only used in sw.c, so
just make them static. This makes sw.h unnecessary, so remove it.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Amadeusz Sławiński and committed by
Kalle Valo
fef8a2d9 a3cda3c3

+3 -15
+3 -4
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.c
··· 9 9 #include "phy.h" 10 10 #include "dm.h" 11 11 #include "hw.h" 12 - #include "sw.h" 13 12 #include "fw.h" 14 13 #include "trx.h" 15 14 #include "led.h" ··· 64 65 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; 65 66 } 66 67 67 - int rtl92ee_init_sw_vars(struct ieee80211_hw *hw) 68 + static int rtl92ee_init_sw_vars(struct ieee80211_hw *hw) 68 69 { 69 70 struct rtl_priv *rtlpriv = rtl_priv(hw); 70 71 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); ··· 163 164 return 0; 164 165 } 165 166 166 - void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw) 167 + static void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw) 167 168 { 168 169 struct rtl_priv *rtlpriv = rtl_priv(hw); 169 170 ··· 174 175 } 175 176 176 177 /* get bt coexist status */ 177 - bool rtl92ee_get_btc_status(void) 178 + static bool rtl92ee_get_btc_status(void) 178 179 { 179 180 return true; 180 181 }
-11
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/sw.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* Copyright(c) 2009-2014 Realtek Corporation.*/ 3 - 4 - #ifndef __RTL92E_SW_H__ 5 - #define __RTL92E_SW_H__ 6 - 7 - int rtl92ee_init_sw_vars(struct ieee80211_hw *hw); 8 - void rtl92ee_deinit_sw_vars(struct ieee80211_hw *hw); 9 - bool rtl92ee_get_btc_status(void); 10 - 11 - #endif