drm/omapdrm: Nuke omap_framebuffer_get_next_connector()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Apr 2018 15:13:58 +0000 (18:13 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 May 2018 18:21:39 +0000 (21:21 +0300)
omap_framebuffer_get_next_connector() uses plane->fb which we want to
deprecate for atomic drivers. As omap_framebuffer_get_next_connector()
is unused just nuke the entire function.

Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180405151400.11326-11-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_fb.c
drivers/gpu/drm/omapdrm/omap_fb.h

index 9d75eab0d16492914ca1d3c603db8e13a2d95483..9f1e3d8f8488c823cc9914e49559adae88613017 100644 (file)
@@ -279,33 +279,6 @@ void omap_framebuffer_unpin(struct drm_framebuffer *fb)
        mutex_unlock(&omap_fb->lock);
 }
 
-/* iterate thru all the connectors, returning ones that are attached
- * to the same fb..
- */
-struct drm_connector *omap_framebuffer_get_next_connector(
-               struct drm_framebuffer *fb, struct drm_connector *from)
-{
-       struct drm_device *dev = fb->dev;
-       struct list_head *connector_list = &dev->mode_config.connector_list;
-       struct drm_connector *connector = from;
-
-       if (!from)
-               return list_first_entry_or_null(connector_list, typeof(*from),
-                                               head);
-
-       list_for_each_entry_from(connector, connector_list, head) {
-               if (connector != from) {
-                       struct drm_encoder *encoder = connector->encoder;
-                       struct drm_crtc *crtc = encoder ? encoder->crtc : NULL;
-                       if (crtc && crtc->primary->fb == fb)
-                               return connector;
-
-               }
-       }
-
-       return NULL;
-}
-
 #ifdef CONFIG_DEBUG_FS
 void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m)
 {
index 94ad5f9e440490fef9a09333d92ca6ed8f8d85ee..c20cb4bc714da874697c2104097ffee9726eb0a7 100644 (file)
@@ -38,8 +38,6 @@ int omap_framebuffer_pin(struct drm_framebuffer *fb);
 void omap_framebuffer_unpin(struct drm_framebuffer *fb);
 void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
                struct drm_plane_state *state, struct omap_overlay_info *info);
-struct drm_connector *omap_framebuffer_get_next_connector(
-               struct drm_framebuffer *fb, struct drm_connector *from);
 bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb);
 void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m);