rtw88: use txpwr_lmt_cfg_pair struct, not arrays
authorBrian Norris <briannorris@chromium.org>
Sat, 13 Jul 2019 01:32:32 +0000 (18:32 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Aug 2019 12:24:53 +0000 (15:24 +0300)
commit3457f86da60de73705bce8fe32a36651441e639e
tree8a42b4a6ba99d0909eac466ce9a1b8f3416864a2
parent15e830e90fde81b32c96490fb9ff1a26097609eb
rtw88: use txpwr_lmt_cfg_pair struct, not arrays

We're just trusting that these tables are of the right dimensions, when
we could do better by just using the struct directly. Let's expose the
struct txpwr_lmt_cfg_pair instead.

The table changes were made by using some Vim macros, so that should
help prevent any translation mistakes along the way.

Remaining work: get the 'void *data' out of the generic struct
rtw_table; all of these tables really deserve to be their own data
structure, with proper type fields.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h
drivers/net/wireless/realtek/rtw88/rtw8822b_table.c
drivers/net/wireless/realtek/rtw88/rtw8822c_table.c