]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: remove all RTW_MAX_POWER_INDEX macro
authorTzu-En Huang <tehuang@realtek.com>
Wed, 29 May 2019 07:54:45 +0000 (15:54 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 17:24:28 +0000 (20:24 +0300)
commit2a6dac4c69adf53afd30427836220cf175a01e9f
tree89f09e7ba258d35c40480752cdab6a6fe290d477
parentcdaa08e3f5a6ef53efa998bdba7148d43bd893be
rtw88: remove all RTW_MAX_POWER_INDEX macro

Since this macro definition has different values in different chipset,
the current defined macro value is for 8822b. This will cause the
settings of 8822c be incorrect.
Remove RTW_MAX_POWER_INDEX and use max_power_index in struct rtw_chip_info
to make sure the value of different chipset is right.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h