drm: Factor out common CRTC viewport checking code
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 25 Sep 2013 15:45:30 +0000 (16:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:36 +0000 (07:45 +0200)
commitc11e928360777be8eaf5023032e9b6c62eb2c43e
tree3723d7e0cbc7e252314be4fe8e29ef67fd31b03f
parent448cce25f408be4c933f88ed8962455a0c16d0f8
drm: Factor out common CRTC viewport checking code

Both setcrtc and page_flip are checking that the framebuffer is big
enough for the defined crtc viewport (x, y, hdisplay, vdisplay). Factor
that code out in a single function.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c