Skip to contentSkip to conversation

fbdev: Use str_enabled_disabled() helper in sm501fb_init_fb()

PATCH New Thorsten Blum 1 participant 1 message Jan 12, 2025 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: Use str_enabled_disabled() helper in sm501fb_init_fb()

Remove hard-coded strings by using the str_enabled_disabled() helper function.

---
 drivers/video/fbdev/sm501fb.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/video/fbdev/sm501fb.c +3 -2
index 86ecbb2d86db..7734377b2d87 100644
@@ -27,6 +27,7 @@
 #include <linux/clk.h>
 #include <linux/console.h>
 #include <linux/io.h>
+#include <linux/string_choices.h>
 
 #include <linux/uaccess.h>
 #include <asm/div64.h>
@@ -1712,8 +1713,8 @@ static int sm501fb_init_fb(struct fb_info *fb, enum sm501_controller head,
 		BUG();
 	}
 
-	dev_info(info->dev, "fb %s %sabled at start\n",
-		 fbname, enable ? "en" : "dis");
+	dev_info(info->dev, "fb %s %s at start\n",
+		 fbname, str_enabled_disabled(enable));
 
 	/* check to see if our routing allows this */
 
Signature · 1 line
2.47.1