summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/phy.h
diff options
context:
space:
mode:
authorYan-Hsuan Chuang <yhchuang@realtek.com>2019-10-25 17:33:41 +0800
committerKalle Valo <kvalo@codeaurora.org>2019-10-31 10:03:48 +0200
commit0b8db87da54178717d302ca5dc09285ad4922abc (patch)
tree9d3081a01bee227efd63479a83d1573a6506e679 /drivers/net/wireless/realtek/rtw88/phy.h
parent7436a470b5835d4d06c9453736bc1d2e9b29a07e (diff)
rtw88: use rtw_phy_pg_cfg_pair struct, not arrays
Use proper struct for BB PG tables. TODO: we need to find a way to store the tables that have condition values. Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/phy.h')
-rw-r--r--drivers/net/wireless/realtek/rtw88/phy.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/phy.h b/drivers/net/wireless/realtek/rtw88/phy.h
index 0dc7720aaad7..c389ef274ed8 100644
--- a/drivers/net/wireless/realtek/rtw88/phy.h
+++ b/drivers/net/wireless/realtek/rtw88/phy.h
@@ -66,6 +66,15 @@ struct rtw_txpwr_lmt_cfg_pair {
s8 txpwr_lmt;
};
+struct rtw_phy_pg_cfg_pair {
+ u32 band;
+ u32 rf_path;
+ u32 tx_num;
+ u32 addr;
+ u32 bitmask;
+ u32 data;
+};
+
#define RTW_DECL_TABLE_PHY_COND_CORE(name, cfg, path) \
const struct rtw_table name ## _tbl = { \
.data = name, \