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

rtlwifi: rtl8723be: 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
02a214e2 c218acfa

+3 -17
+3 -4
drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
··· 13 13 #include "hw.h" 14 14 #include "fw.h" 15 15 #include "../rtl8723com/fw_common.h" 16 - #include "sw.h" 17 16 #include "trx.h" 18 17 #include "led.h" 19 18 #include "table.h" ··· 63 64 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; 64 65 } 65 66 66 - int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) 67 + static int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) 67 68 { 68 69 int err = 0; 69 70 struct rtl_priv *rtlpriv = rtl_priv(hw); ··· 169 170 return 0; 170 171 } 171 172 172 - void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw) 173 + static void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw) 173 174 { 174 175 struct rtl_priv *rtlpriv = rtl_priv(hw); 175 176 ··· 180 181 } 181 182 182 183 /* get bt coexist status */ 183 - bool rtl8723be_get_btc_status(void) 184 + static bool rtl8723be_get_btc_status(void) 184 185 { 185 186 return true; 186 187 }
-13
drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* Copyright(c) 2009-2014 Realtek Corporation.*/ 3 - 4 - #ifndef __RTL8723BE_SW_H__ 5 - #define __RTL8723BE_SW_H__ 6 - 7 - int rtl8723be_init_sw_vars(struct ieee80211_hw *hw); 8 - void rtl8723be_deinit_sw_vars(struct ieee80211_hw *hw); 9 - void rtl8723be_init_var_map(struct ieee80211_hw *hw); 10 - bool rtl8723be_get_btc_status(void); 11 - 12 - 13 - #endif