diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-01-12 16:41:42 +0100 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2025-01-12 18:10:01 +0100 |
| commit | ed3f274b864b318274e05d035f5be0aed6f00477 (patch) | |
| tree | 7d8afcb677b5ce89f25affd0e584dfd74014f293 | |
| parent | e4b6b665df815b4841e71b72f06446884e8aad40 (diff) | |
fbdev: sm501fb: Use str_enabled_disabled() helper in sm501fb_init_fb()
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>
| -rw-r--r-- | drivers/video/fbdev/sm501fb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/fbdev/sm501fb.c b/drivers/video/fbdev/sm501fb.c index 86ecbb2d86db..7734377b2d87 100644 --- a/drivers/video/fbdev/sm501fb.c +++ b/drivers/video/fbdev/sm501fb.c @@ -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 */ |
