summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-10-05 15:58:14 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-10-08 13:52:54 +0300
commitc539b579b6c72719a8e14b1823ccf1e9fb3380d2 (patch)
tree46bfa97b7759c671c201568def1f17cdd8aca20e /drivers/gpu/drm/i915/intel_drv.h
parent2d72dc8b7c15e4a83b4f7c6976feaf96e7e3e63e (diff)
downloadlinux-stable-c539b579b6c72719a8e14b1823ccf1e9fb3380d2.tar.gz
linux-stable-c539b579b6c72719a8e14b1823ccf1e9fb3380d2.tar.bz2
linux-stable-c539b579b6c72719a8e14b1823ccf1e9fb3380d2.zip
drm/i915: Introduce intel_plane_alloc()
Pull the common plane+plane_state allocation into a small helper. Reduces the amount of boilerplate in the plane initialization functions. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181005125817.22576-9-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 43190c6e9ef2..0e0f763907ef 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -2141,6 +2141,8 @@ int skl_plane_check(struct intel_crtc_state *crtc_state,
int intel_plane_check_stride(const struct intel_plane_state *plane_state);
int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
int chv_plane_check_rotation(const struct intel_plane_state *plane_state);
+struct intel_plane *intel_plane_alloc(void);
+void intel_plane_free(struct intel_plane *plane);
/* intel_tv.c */
void intel_tv_init(struct drm_i915_private *dev_priv);