Skip to content

Commit ed3f274

Browse files
tobluxhdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent e4b6b66 commit ed3f274

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/video/fbdev/sm501fb.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <linux/clk.h>
2828
#include <linux/console.h>
2929
#include <linux/io.h>
30+
#include <linux/string_choices.h>
3031

3132
#include <linux/uaccess.h>
3233
#include <asm/div64.h>
@@ -1712,8 +1713,8 @@ static int sm501fb_init_fb(struct fb_info *fb, enum sm501_controller head,
17121713
BUG();
17131714
}
17141715

1715-
dev_info(info->dev, "fb %s %sabled at start\n",
1716-
fbname, enable ? "en" : "dis");
1716+
dev_info(info->dev, "fb %s %s at start\n",
1717+
fbname, str_enabled_disabled(enable));
17171718

17181719
/* check to see if our routing allows this */
17191720

0 commit comments

Comments
 (0)