drm: remove unsafe drm_for_each_connector()
authorGustavo Padovan <gustavo.padovan@collabora.com>
Thu, 11 May 2017 19:10:48 +0000 (16:10 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.com>
Fri, 26 May 2017 05:13:13 +0000 (02:13 -0300)
After converting all users to drm_for_each_connector_iter() we no
longer need drm_for_each_connector() so we can go ahead and remove it.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170511191049.28944-8-gustavo@padovan.org
include/drm/drm_connector.h

index 2fe09c1ddfb81b9a5ef8c4498976b01b4500d8e3..d8bb25f38ebaa452f6141cc5fb886c7b0cba11de 100644 (file)
@@ -1009,21 +1009,6 @@ struct drm_tile_group *drm_mode_get_tile_group(struct drm_device *dev,
 void drm_mode_put_tile_group(struct drm_device *dev,
                             struct drm_tile_group *tg);
 
-/**
- * drm_for_each_connector - iterate over all connectors
- * @connector: the loop cursor
- * @dev: the DRM device
- *
- * Iterate over all connectors of @dev.
- *
- * WARNING:
- *
- * This iterator is not safe against hotadd/removal of connectors and is
- * deprecated. Use drm_for_each_connector_iter() instead.
- */
-#define drm_for_each_connector(connector, dev) \
-       list_for_each_entry(connector, &(dev)->mode_config.connector_list, head)
-
 /**
  * struct drm_connector_list_iter - connector_list iterator
  *