mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 06:38:26 -05:00
wifi: rtw89: 8852bt: Use standard helper for string choice
Use standard helper str_on_off() defined at string_choices.h in _dpk_information() to improve code reusability. Reduce hardcoding of repeated use of the same strings to save code space. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202507282341.drTGfLWA-lkp@intel.com/ Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/aJWNhu9bAkcjEyb4@bhairav-test.ee.iitb.ac.in
This commit is contained in:
committed by
Ping-Ke Shih
parent
04a2de8cfc
commit
5846154126
@@ -1883,8 +1883,8 @@ static void _dpk_information(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy,
|
||||
rtw89_debug(rtwdev, RTW89_DBG_RFK,
|
||||
"[DPK] S%d[%d] (PHY%d): TSSI %s/ DBCC %s/ %s/ CH%d/ %s\n",
|
||||
path, dpk->cur_idx[path], phy,
|
||||
rtwdev->is_tssi_mode[path] ? "on" : "off",
|
||||
rtwdev->dbcc_en ? "on" : "off",
|
||||
str_on_off(rtwdev->is_tssi_mode[path]),
|
||||
str_on_off(rtwdev->dbcc_en),
|
||||
dpk->bp[path][kidx].band == 0 ? "2G" :
|
||||
dpk->bp[path][kidx].band == 1 ? "5G" : "6G",
|
||||
dpk->bp[path][kidx].ch,
|
||||
|
||||
Reference in New Issue
Block a user