]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bus: mhi: host: Use str_true_false() helper
authorYumeng Fang <fang.yumeng@zte.com.cn>
Mon, 23 Jun 2025 12:28:14 +0000 (20:28 +0800)
committerManivannan Sadhasivam <mani@kernel.org>
Sat, 19 Jul 2025 03:25:02 +0000 (08:55 +0530)
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
drivers/bus/mhi/host/debugfs.c

index cfec7811dfbbdd2e5f4a3c1f7fb87d561e7b37c6..39e45748a24c0cd13632b5ea48a74b14cd8aa70f 100644 (file)
@@ -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,