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:
Panagiotis Petrakopoulos
2026-06-13 01:30:12 +03:00
committed by Ping-Ke Shih
parent e13cd023a4
commit 2c0810030c
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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)