Skip to content

Commit 563fdcd

Browse files
committed
bus: mhi: host: Use str_true_false() helper
JIRA: https://issues.redhat.com/browse/RHEL-122260 commit e99f55e Author: Yumeng Fang <fang.yumeng@zte.com.cn> Date: Mon Jun 23 20:28:14 2025 +0800 bus: mhi: host: Use str_true_false() helper Remove hard-coded strings by using the str_true_false() helper. Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20250623202814633ukJqUDLU7BRlLLhvWkbD7@zte.com.cn Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent d214192 commit 563fdcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/bus/mhi/host/debugfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/list.h>
1111
#include <linux/mhi.h>
1212
#include <linux/module.h>
13+
#include <linux/string_choices.h>
1314
#include "internal.h"
1415

1516
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)
2223
mhi_is_active(mhi_cntrl) ? "Active" : "Inactive",
2324
mhi_state_str(mhi_cntrl->dev_state),
2425
TO_MHI_EXEC_STR(mhi_cntrl->ee),
25-
mhi_cntrl->wake_set ? "true" : "false");
26+
str_true_false(mhi_cntrl->wake_set));
2627

2728
/* counters */
2829
seq_printf(m, "M0: %u M2: %u M3: %u", mhi_cntrl->M0, mhi_cntrl->M2,

0 commit comments

Comments
 (0)