From: Ping-Ke Shih <pkshih@realtek.com>
To: Yu-Chun Lin <eleanor15x@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"jserv@ccns.ncku.edu.tw" <jserv@ccns.ncku.edu.tw>,
"visitorckw@gmail.com" <visitorckw@gmail.com>,
"Stanley Chang[昌育德]" <stanley_chang@realtek.com>,
"CY_Huang[黃鉦晏]" <cy.huang@realtek.com>
Subject: RE: [PATCH rtw-next v2] wifi: rtw89: Replace hardcoded strings with helper functions
Date: Tue, 30 Sep 2025 01:19:41 +0000 [thread overview]
Message-ID: <a7b36065cc1549a6aa8c2f2c95bdad3f@realtek.com> (raw)
In-Reply-To: <20250930000545.2192692-1-eleanor15x@gmail.com>
Yu-Chun Lin <eleanor15x@gmail.com> wrote:
> Replace hardcoded strings with 'str_on_off()', 'str_enable_disable()',
> and 'str_read_write()'.
>
> The change improves readability.
>
> Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
> diff --git a/drivers/net/wireless/realtek/rtw89/wow.c b/drivers/net/wireless/realtek/rtw89/wow.c
> index 5faa51ad896a..6950fed96267 100644
> --- a/drivers/net/wireless/realtek/rtw89/wow.c
> +++ b/drivers/net/wireless/realtek/rtw89/wow.c
> @@ -1,6 +1,7 @@
> // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
> /* Copyright(c) 2019-2022 Realtek Corporation
> */
> +
No need to add this blink line. I'll remove this when merging patch.
(Sending v3 is also fine to me)
> #include "cam.h"
> #include "core.h"
> #include "debug.h"
> @@ -1248,7 +1249,7 @@ static int rtw89_wow_check_fw_status(struct rtw89_dev *rtwdev, bool wow_enable)
> mac->wow_ctrl.addr, mac->wow_ctrl.mask);
> if (ret)
> rtw89_err(rtwdev, "failed to check wow status %s\n",
> - wow_enable ? "enabled" : "disabled");
> + str_enabled_disabled(wow_enable));
> return ret;
> }
>
> --
> 2.34.1
next prev parent reply other threads:[~2025-09-30 1:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-30 0:05 Yu-Chun Lin
2025-09-30 1:19 ` Ping-Ke Shih [this message]
2025-10-21 5:54 ` Ping-Ke Shih
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a7b36065cc1549a6aa8c2f2c95bdad3f@realtek.com \
--to=pkshih@realtek.com \
--cc=cy.huang@realtek.com \
--cc=eleanor15x@gmail.com \
--cc=jserv@ccns.ncku.edu.tw \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=stanley_chang@realtek.com \
--cc=visitorckw@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome