drm/i915/skl: Replace BUG() by MISSING_CASE() in skl_plane_ctl_format()
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 12 May 2015 15:13:16 +0000 (16:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:25:53 +0000 (11:25 +0200)
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>
drivers/gpu/drm/i915/intel_display.c

index e2b01d9b504b4b41f09423a333989dafd1daab70..49d722795ab7d8ac9019cc9b8fc77584a1e43a59 100644 (file)
@@ -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;