drm: Use drm_format_info() in DRM core code
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 17 Oct 2016 22:41:11 +0000 (01:41 +0300)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 15 Aug 2018 02:03:19 +0000 (19:03 -0700)
commited6b105ede3249ff3b22e86ac579a8b225ba9ea9
treee127e2b1060c06cd8d9204e5046f38ad8b7091bd
parent9dc0813343cb0778775044c66a3ab1e93b95fb3a
drm: Use drm_format_info() in DRM core code

Replace calls to the drm_format_*() helper functions with direct use of
the drm_format_info structure. This improves efficiency by removing
duplicate lookups.

Change-Id: I731a8def0d5835d0488e3a100794a09790f4f9fc
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-4-git-send-email-laurent.pinchart@ideasonboard.com
drivers/gpu/drm/drm_fb_cma_helper.c
drivers/gpu/drm/drm_framebuffer.c