drm: Refactor framebuffer creation to allow internal use (v2)
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Jun 2014 15:28:08 +0000 (08:28 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 15:45:20 +0000 (17:45 +0200)
commitc394c2b08e247c32ef292b75fd8b34312465f8ae
tree1475dfb893887d879d3dc13ecac2215be4ac8f81
parent7405f42c790f123f5301dbd2a9ebb69ccd909f47
drm: Refactor framebuffer creation to allow internal use (v2)

Refactor DRM framebuffer creation into a new function that returns a
struct drm_framebuffer directly.  The upcoming universal cursor support
will want to create framebuffers internally to wrap cursor buffers, so
we want to be able to share that framebuffer creation with the
drm_mode_addfb2 ioctl handler.

v2: Take struct drm_mode_fb_cmd2 parameter directly rather than void*

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Pallavi G<pallavi.g@intel.com>
Acked-by: Dave Airlie <airlied@linux.ie>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c