From: Fabien DESSENNE Date: Tue, 1 Jul 2014 12:40:42 +0000 (+0200) Subject: drm/crtc-helper: use drm_framebuffer flags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d980b1831c14b233434555a851adf6c74fe9d19e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/crtc-helper: use drm_framebuffer flags The "flags" parameter of the DRM_IOCTL_MODE_ADDFB2 ioctl must be propagated and used by the driver. The only possible value of flags is DRM_MODE_FB_INTERLACED. Signed-off-by: Fabien Dessenne Reviewed-by: Benjamin GAIGNARD Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 78b37f3febd3..6c65a0a28fbd 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -818,6 +818,7 @@ void drm_helper_mode_fill_fb_struct(struct drm_framebuffer *fb, drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth, &fb->bits_per_pixel); fb->pixel_format = mode_cmd->pixel_format; + fb->flags = mode_cmd->flags; } EXPORT_SYMBOL(drm_helper_mode_fill_fb_struct);