Commit 8ddd4a2a authored by Amadeusz Sławiński's avatar Amadeusz Sławiński Committed by Kalle Valo

rtlwifi: rtl8821ae: 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: default avatarAmadeusz Sławiński <amade@asmblr.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 02a214e2
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include "dm.h" #include "dm.h"
#include "hw.h" #include "hw.h"
#include "fw.h" #include "fw.h"
#include "sw.h"
#include "trx.h" #include "trx.h"
#include "led.h" #include "led.h"
#include "table.h" #include "table.h"
...@@ -65,7 +64,7 @@ static void rtl8821ae_init_aspm_vars(struct ieee80211_hw *hw) ...@@ -65,7 +64,7 @@ static void rtl8821ae_init_aspm_vars(struct ieee80211_hw *hw)
} }
/*InitializeVariables8812E*/ /*InitializeVariables8812E*/
int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw) static int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw)
{ {
int err = 0; int err = 0;
struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_priv *rtlpriv = rtl_priv(hw);
...@@ -211,7 +210,7 @@ int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw) ...@@ -211,7 +210,7 @@ int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw)
return 0; return 0;
} }
void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw) static void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw)
{ {
struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_priv *rtlpriv = rtl_priv(hw);
...@@ -228,7 +227,7 @@ void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw) ...@@ -228,7 +227,7 @@ void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw)
} }
/* get bt coexist status */ /* get bt coexist status */
bool rtl8821ae_get_btc_status(void) static bool rtl8821ae_get_btc_status(void)
{ {
return true; return true;
} }
......
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright(c) 2009-2010 Realtek Corporation.*/
#ifndef __RTL8821AE_SW_H__
#define __RTL8821AE_SW_H__
int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw);
void rtl8821ae_deinit_sw_vars(struct ieee80211_hw *hw);
void rtl8821ae_init_var_map(struct ieee80211_hw *hw);
bool rtl8821ae_get_btc_status(void);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment