From: Ville Syrjälä Date: Thu, 31 Jan 2013 17:43:37 +0000 (+0200) Subject: drm: Fill depth/bits_per_pixel for C8 format X-Git-Tag: next-20130220~64^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2538212213229fd5abe2a0e5daa7bb1e738c20cd;p=karo-tx-linux.git drm: Fill depth/bits_per_pixel for C8 format Set depth/bits_per_pixel to 8 for C8 format. Signed-off-by: Ville Syrjälä Acked-by: Dave Airlie Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 9c797f6fea75..ff7344cc6db2 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -3856,6 +3856,7 @@ void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, int *bpp) { switch (format) { + case DRM_FORMAT_C8: case DRM_FORMAT_RGB332: case DRM_FORMAT_BGR233: *depth = 8;