aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-05-12 16:13:16 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-20 11:25:53 +0200
commit4249eeef4e0f8b81683930a028cb839cc748786e (patch)
treeacbf14de456260bd84e0bef1eb603f679a0abc4a /drivers/gpu/drm/i915/intel_display.c
parentdrm/i915/skl: Rename a local variable to fit in 80 chars (diff)
downloadlinux-dev-4249eeef4e0f8b81683930a028cb839cc748786e.tar.xz
linux-dev-4249eeef4e0f8b81683930a028cb839cc748786e.zip
drm/i915/skl: Replace BUG() by MISSING_CASE() in skl_plane_ctl_format()
Let's be consistent with the others skl_plane_ctl_*() functions and use a MISSING_CASE(). Not only that, but it's a rude to BUG() the whole machine here. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e2b01d9b504b..49d722795ab7 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2997,7 +2997,7 @@ u32 skl_plane_ctl_format(uint32_t pixel_format)
format = PLANE_CTL_FORMAT_YUV422 | PLANE_CTL_YUV422_VYUY;
break;
default:
- BUG();
+ MISSING_CASE(pixel_format);
}
return format;