]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbdev: sm501fb: Use str_enabled_disabled() helper in sm501fb_init_fb()
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 12 Jan 2025 15:41:42 +0000 (16:41 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 12 Jan 2025 17:10:01 +0000 (18:10 +0100)
Remove hard-coded strings by using the str_enabled_disabled() helper
function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/sm501fb.c

index 86ecbb2d86db8d99a1d2c3b8f23e157a52992db5..7734377b2d87b934a3d80362308bad660d640246 100644 (file)
@@ -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 */