summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-06-03 16:10:40 +0300
committerDave Airlie <airlied@gmail.com>2013-06-17 18:32:54 +1000
commit9125e6186822b2698da17690416cd1b55c030115 (patch)
tree33c993cb831125d9c59dda1b011737cfb2be54ef /include/drm
parente6e792092e816bea0797995c886fb057c91d4546 (diff)
downloadop-kernel-dev-9125e6186822b2698da17690416cd1b55c030115.zip
op-kernel-dev-9125e6186822b2698da17690416cd1b55c030115.tar.gz
drm: Add drm_plane_force_disable()
drm_plane_force_disable() will forcibly disable the plane even if user had previously requested the plane to be enabled. This can be used to force planes to be off when restoring the fbdev mode. The code was simply pulled from drm_framebuffer_remove(), which now calls the new function as well. v2: Check plane->fb in drm_plane_force_disable(), drop bogus comment about disabling crtc Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 53c33e2..da137e7 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -894,6 +894,7 @@ extern int drm_plane_init(struct drm_device *dev,
const uint32_t *formats, uint32_t format_count,
bool priv);
extern void drm_plane_cleanup(struct drm_plane *plane);
+extern void drm_plane_force_disable(struct drm_plane *plane);
extern void drm_encoder_cleanup(struct drm_encoder *encoder);
OpenPOWER on IntegriCloud