* [PATCH] bus: mhi: host: Use str_true_false() helper
@ 2025-06-23 12:28 long.yunjian
2025-07-02 6:24 ` Manivannan Sadhasivam
0 siblings, 1 reply; 2+ messages in thread
From: long.yunjian @ 2025-06-23 12:28 UTC (permalink / raw)
To: mani
Cc: fang.yumeng, mhi, linux-arm-msm, linux-kernel, mou.yi,
xu.lifeng1, ouyang.maochun
From: Yumeng Fang <fang.yumeng@zte.com.cn>
Remove hard-coded strings by using the str_true_false() helper.
Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn>
---
drivers/bus/mhi/host/debugfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/bus/mhi/host/debugfs.c b/drivers/bus/mhi/host/debugfs.c
index cfec7811dfbb..39e45748a24c 100644
--- a/drivers/bus/mhi/host/debugfs.c
+++ b/drivers/bus/mhi/host/debugfs.c
@@ -10,6 +10,7 @@
#include <linux/list.h>
#include <linux/mhi.h>
#include <linux/module.h>
+#include <linux/string_choices.h>
#include "internal.h"
static int mhi_debugfs_states_show(struct seq_file *m, void *d)
@@ -22,7 +23,7 @@ static int mhi_debugfs_states_show(struct seq_file *m, void *d)
mhi_is_active(mhi_cntrl) ? "Active" : "Inactive",
mhi_state_str(mhi_cntrl->dev_state),
TO_MHI_EXEC_STR(mhi_cntrl->ee),
- mhi_cntrl->wake_set ? "true" : "false");
+ str_true_false(mhi_cntrl->wake_set));
/* counters */
seq_printf(m, "M0: %u M2: %u M3: %u", mhi_cntrl->M0, mhi_cntrl->M2,
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bus: mhi: host: Use str_true_false() helper
2025-06-23 12:28 [PATCH] bus: mhi: host: Use str_true_false() helper long.yunjian
@ 2025-07-02 6:24 ` Manivannan Sadhasivam
0 siblings, 0 replies; 2+ messages in thread
From: Manivannan Sadhasivam @ 2025-07-02 6:24 UTC (permalink / raw)
To: long.yunjian
Cc: fang.yumeng, mhi, linux-arm-msm, linux-kernel, mou.yi,
xu.lifeng1, ouyang.maochun
On Mon, 23 Jun 2025 20:28:14 +0800, long.yunjian@zte.com.cn wrote:
> Remove hard-coded strings by using the str_true_false() helper.
>
>
Applied, thanks!
[1/1] bus: mhi: host: Use str_true_false() helper
commit: 99b1cac2680b297b74a87fdd0f80e501d20e7561
Best regards,
--
Manivannan Sadhasivam <mani@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-02 6:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-23 12:28 [PATCH] bus: mhi: host: Use str_true_false() helper long.yunjian
2025-07-02 6:24 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®