]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c51e837e2da4d8d419ce9a245513b01279f2752
tree8a42b4a6ba99d0909eac466ce9a1b8f3416864a2
parentb16760eaa5c1d36ea5a5c2c6a7b4160c45f8e7be
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