Commit ab366b40 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Tomi Valkeinen

fbdev: Use IS_ENABLED() instead of checking for built-in or module

The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent a53dd258
...@@ -358,7 +358,7 @@ int viafb_setup_engine(struct fb_info *info) ...@@ -358,7 +358,7 @@ int viafb_setup_engine(struct fb_info *info)
viapar->shared->vq_vram_addr = viapar->fbmem_free; viapar->shared->vq_vram_addr = viapar->fbmem_free;
viapar->fbmem_used += VQ_SIZE; viapar->fbmem_used += VQ_SIZE;
#if defined(CONFIG_VIDEO_VIA_CAMERA) || defined(CONFIG_VIDEO_VIA_CAMERA_MODULE) #if IS_ENABLED(CONFIG_VIDEO_VIA_CAMERA)
/* /*
* Set aside a chunk of framebuffer memory for the camera * Set aside a chunk of framebuffer memory for the camera
* driver. Someday this driver probably needs a proper allocator * driver. Someday this driver probably needs a proper allocator
......
...@@ -116,7 +116,7 @@ EXPORT_SYMBOL_GPL(viafb_irq_disable); ...@@ -116,7 +116,7 @@ EXPORT_SYMBOL_GPL(viafb_irq_disable);
* most viafb systems will not need to have this extra code for a while. * most viafb systems will not need to have this extra code for a while.
* As soon as another user comes long, the ifdef can be removed. * As soon as another user comes long, the ifdef can be removed.
*/ */
#if defined(CONFIG_VIDEO_VIA_CAMERA) || defined(CONFIG_VIDEO_VIA_CAMERA_MODULE) #if IS_ENABLED(CONFIG_VIDEO_VIA_CAMERA)
/* /*
* Access to the DMA engine. This currently provides what the camera * Access to the DMA engine. This currently provides what the camera
* driver needs (i.e. outgoing only) but is easily expandable if need * driver needs (i.e. outgoing only) but is easily expandable if need
...@@ -542,7 +542,7 @@ static struct viafb_subdev_info { ...@@ -542,7 +542,7 @@ static struct viafb_subdev_info {
{ {
.name = "viafb-i2c", .name = "viafb-i2c",
}, },
#if defined(CONFIG_VIDEO_VIA_CAMERA) || defined(CONFIG_VIDEO_VIA_CAMERA_MODULE) #if IS_ENABLED(CONFIG_VIDEO_VIA_CAMERA)
{ {
.name = "viafb-camera", .name = "viafb-camera",
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment