OSDN Git Service

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)
committerArchit Taneja <architt@codeaurora.org>
Tue, 18 Oct 2016 09:51:27 +0000 (15:21 +0530)
commitd549349007ed66af325c1363c0e4f8bb7a518c0d
tree1e29bcc8146192370a3d79cdb4204b6cf07affb3
parent86c238aa51c219b8ba1a0e6a86c2676d856f90d5
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.

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