aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2019-07-30 19:33:02 -0500
committerKalle Valo <kvalo@codeaurora.org>2019-08-06 15:41:39 +0300
commit36eda7568f2e4e18ba248974f73767de7778f43a (patch)
treede6a235efa73b370a8d09080b9887e725e79751d /drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c
parentrtlwifi: rtl88188ee: Replace local bit manipulation macros (diff)
downloadlinux-dev-36eda7568f2e4e18ba248974f73767de7778f43a.tar.xz
linux-dev-36eda7568f2e4e18ba248974f73767de7778f43a.zip
rtlwifi: rtl8188ee: Convert macros that set descriptor
As a first step in the conversion, the macros that set the RX and TX descriptors are converted to static inline routines, and the names are changed from upper to lower case. To minimize the changes in a given step, the input descriptor information is left as as a byte array (u8 *), even though it should be a little-endian word array (__le32 *). That will be changed in the next patch. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c')
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c
index 85360353f557..1ba339788d3a 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c
@@ -1414,9 +1414,9 @@ void rtl88e_dm_set_tx_ant_by_tx_info(struct ieee80211_hw *hw,
if ((rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV) ||
(rtlefuse->antenna_div_type == CG_TRX_SMART_ANTDIV)) {
- SET_TX_DESC_ANTSEL_A(pdesc, pfat_table->antsel_a[mac_id]);
- SET_TX_DESC_ANTSEL_B(pdesc, pfat_table->antsel_b[mac_id]);
- SET_TX_DESC_ANTSEL_C(pdesc, pfat_table->antsel_c[mac_id]);
+ set_tx_desc_antsel_a(pdesc, pfat_table->antsel_a[mac_id]);
+ set_tx_desc_antsel_b(pdesc, pfat_table->antsel_b[mac_id]);
+ set_tx_desc_antsel_c(pdesc, pfat_table->antsel_c[mac_id]);
}
}