aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_fb.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c
index 9d75eab0d164..9f1e3d8f8488 100644
--- a/drivers/gpu/drm/omapdrm/omap_fb.c
+++ b/drivers/gpu/drm/omapdrm/omap_fb.c
@@ -279,33 +279,6 @@ void omap_framebuffer_unpin(struct drm_framebuffer *fb)
279 mutex_unlock(&omap_fb->lock); 279 mutex_unlock(&omap_fb->lock);
280} 280}
281 281
282/* iterate thru all the connectors, returning ones that are attached
283 * to the same fb..
284 */
285struct drm_connector *omap_framebuffer_get_next_connector(
286 struct drm_framebuffer *fb, struct drm_connector *from)
287{
288 struct drm_device *dev = fb->dev;
289 struct list_head *connector_list = &dev->mode_config.connector_list;
290 struct drm_connector *connector = from;
291
292 if (!from)
293 return list_first_entry_or_null(connector_list, typeof(*from),
294 head);
295
296 list_for_each_entry_from(connector, connector_list, head) {
297 if (connector != from) {
298 struct drm_encoder *encoder = connector->encoder;
299 struct drm_crtc *crtc = encoder ? encoder->crtc : NULL;
300 if (crtc && crtc->primary->fb == fb)
301 return connector;
302
303 }
304 }
305
306 return NULL;
307}
308
309#ifdef CONFIG_DEBUG_FS 282#ifdef CONFIG_DEBUG_FS
310void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m) 283void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m)
311{ 284{