mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 09:32:36 -04:00
fbdev: Use string choices helpers
Use string_choices.h helpers instead of hard-coded strings. Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
aad1d99bea
commit
c7d655ef2e
@@ -36,6 +36,7 @@
|
||||
#include <video/of_videomode.h>
|
||||
#include <video/videomode.h>
|
||||
#include "../edid.h"
|
||||
#include <linux/string_choices.h>
|
||||
|
||||
/*
|
||||
* EDID parser
|
||||
@@ -320,9 +321,9 @@ static void get_dpms_capabilities(unsigned char flags,
|
||||
if (flags & DPMS_STANDBY)
|
||||
specs->dpms |= FB_DPMS_STANDBY;
|
||||
DPRINTK(" DPMS: Active %s, Suspend %s, Standby %s\n",
|
||||
(flags & DPMS_ACTIVE_OFF) ? "yes" : "no",
|
||||
(flags & DPMS_SUSPEND) ? "yes" : "no",
|
||||
(flags & DPMS_STANDBY) ? "yes" : "no");
|
||||
str_yes_no(flags & DPMS_ACTIVE_OFF),
|
||||
str_yes_no(flags & DPMS_SUSPEND),
|
||||
str_yes_no(flags & DPMS_STANDBY));
|
||||
}
|
||||
|
||||
static void get_chroma(unsigned char *block, struct fb_monspecs *specs)
|
||||
|
||||
Reference in New Issue
Block a user