mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
wifi: rtw89: use str_enable_disable() helper
Replace "enable"/"disable" strings in ternary expressions with the str_enable_disable() helper from <linux/string_choices.h>. This covers the rfkill state log in rtw89_core_rfkill_poll() and the DPK on/off log in _dpk_onoff(). No functional change intended. Signed-off-by: Panagiotis Petrakopoulos <npetrakopoulos2003@gmail.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260612223012.504886-1-npetrakopoulos2003@gmail.com
This commit is contained in:
committed by
Ping-Ke Shih
parent
e13cd023a4
commit
2c0810030c
@@ -7266,7 +7266,7 @@ void rtw89_core_rfkill_poll(struct rtw89_dev *rtwdev, bool force)
|
||||
return;
|
||||
|
||||
rtw89_info(rtwdev, "rfkill hardware state changed to %s\n",
|
||||
blocked ? "disable" : "enable");
|
||||
str_enable_disable(!blocked));
|
||||
|
||||
if (blocked)
|
||||
set_bit(RTW89_FLAG_HW_RFKILL_STATE, rtwdev->flags);
|
||||
|
||||
@@ -1874,7 +1874,7 @@ static void _dpk_onoff(struct rtw89_dev *rtwdev, enum rtw89_rf_path path,
|
||||
0xf0000000, val);
|
||||
|
||||
rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] S%d[%d] DPK %s !!!\n", path,
|
||||
kidx, val == 0 ? "disable" : "enable");
|
||||
kidx, str_enable_disable(val));
|
||||
}
|
||||
|
||||
static void _dpk_init(struct rtw89_dev *rtwdev, enum rtw89_rf_path path)
|
||||
|
||||
Reference in New Issue
Block a user