drm/atomic: Remove drm_atomic_helper_framebuffer_changed.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 8 Dec 2016 13:45:28 +0000 (14:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Dec 2016 16:48:28 +0000 (17:48 +0100)
This function is now completely unused, zap it.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1481204729-9058-6-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h

index f5b2a688eb0d0da57bd8d40a9e075f9c76b9be7c..799c1564a4f801a877d49a5614cdcfa2e9355695 100644 (file)
@@ -1064,41 +1064,6 @@ int drm_atomic_helper_wait_for_fences(struct drm_device *dev,
 }
 EXPORT_SYMBOL(drm_atomic_helper_wait_for_fences);
 
-/**
- * drm_atomic_helper_framebuffer_changed - check if framebuffer has changed
- * @dev: DRM device
- * @old_state: atomic state object with old state structures
- * @crtc: DRM crtc
- *
- * Checks whether the framebuffer used for this CRTC changes as a result of
- * the atomic update.  This is useful for drivers which cannot use
- * drm_atomic_helper_wait_for_vblanks() and need to reimplement its
- * functionality.
- *
- * Returns:
- * true if the framebuffer changed.
- */
-bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev,
-                                          struct drm_atomic_state *old_state,
-                                          struct drm_crtc *crtc)
-{
-       struct drm_plane *plane;
-       struct drm_plane_state *old_plane_state;
-       int i;
-
-       for_each_plane_in_state(old_state, plane, old_plane_state, i) {
-               if (plane->state->crtc != crtc &&
-                   old_plane_state->crtc != crtc)
-                       continue;
-
-               if (plane->state->fb != old_plane_state->fb)
-                       return true;
-       }
-
-       return false;
-}
-EXPORT_SYMBOL(drm_atomic_helper_framebuffer_changed);
-
 /**
  * drm_atomic_helper_wait_for_vblanks - wait for vblank on crtcs
  * @dev: DRM device
index 7ff92b09fd9c423059872d00eb3aa039d6f2b5b9..4b2353dc34baede5b6197d300149de8d9d523849 100644 (file)
@@ -48,9 +48,6 @@ int drm_atomic_helper_commit(struct drm_device *dev,
 int drm_atomic_helper_wait_for_fences(struct drm_device *dev,
                                        struct drm_atomic_state *state,
                                        bool pre_swap);
-bool drm_atomic_helper_framebuffer_changed(struct drm_device *dev,
-                                          struct drm_atomic_state *old_state,
-                                          struct drm_crtc *crtc);
 
 void drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
                                        struct drm_atomic_state *old_state);