summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/s3c2410fb.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-05-04 16:29:00 -0700
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2020-06-01 15:15:24 +0200
commit720815247395480ac0d04948fc9ab6282b3291b9 (patch)
treede95c0b9456e578dceaed5cafbc5f94a2c0a7ea1 /drivers/video/fbdev/s3c2410fb.c
parentf35b1d6c21b414e960ae3a9f1164fc691e1c3ab2 (diff)
downloadlwn-720815247395480ac0d04948fc9ab6282b3291b9.tar.gz
lwn-720815247395480ac0d04948fc9ab6282b3291b9.zip
video: fbdev: Use IS_BUILTIN
IS_BUILTIN can be use to replace various initializations like #if CONFIG_<FOO> int val = 1; #else int val = 0; #endif so do so. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/b1cf967015c5beafa475aaa30d8e21a58caff870.camel@perches.com
Diffstat (limited to 'drivers/video/fbdev/s3c2410fb.c')
-rw-r--r--drivers/video/fbdev/s3c2410fb.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/fbdev/s3c2410fb.c b/drivers/video/fbdev/s3c2410fb.c
index 2fb15a540167..6f8fa501583f 100644
--- a/drivers/video/fbdev/s3c2410fb.c
+++ b/drivers/video/fbdev/s3c2410fb.c
@@ -44,11 +44,7 @@
#include "s3c2410fb.h"
/* Debugging stuff */
-#ifdef CONFIG_FB_S3C2410_DEBUG
-static int debug = 1;
-#else
-static int debug;
-#endif
+static int debug = IS_BUILTIN(CONFIG_FB_S3C2410_DEBUG);
#define dprintk(msg...) \
do { \