[PATCH v2 7/7] drm: Rename connector list iterator API

Thierry Reding thierry.reding at gmail.com
Fri Feb 10 17:48:06 UTC 2017


On Fri, Feb 10, 2017 at 06:14:14PM +0100, Thierry Reding wrote:
[...]
>  /**
> - * drm_connector_list_iter_get - initialize a connector_list iterator
> + * drm_connector_list_iter_begin - initialize a connector_list iterator
>   * @dev: DRM device
>   * @iter: connector_list iterator
>   *
>   * Sets @iter up to walk the &drm_mode_config.connector_list of @dev. @iter
> - * must always be cleaned up again by calling drm_connector_list_iter_put().
> + * must always be cleaned up again by calling drm_connector_list_iter_end().
>   * Iteration itself happens using drm_connector_list_iter_next() or
>   * drm_for_each_connector_iter().
>   */
> -void drm_connector_list_iter_get(struct drm_device *dev,
> -				 struct drm_connector_list_iter *iter)
> +void drm_connector_list_iter_begin(struct drm_device *dev,
> +				   struct drm_connector_list_iter *iter)
>  {
>  	iter->dev = dev;
>  	iter->conn = NULL;
>  	lock_acquire_shared_recursive(&connector_list_iter_dep_map, 0, 1, NULL, _RET_IP_);
>  }
> -EXPORT_SYMBOL(drm_connector_list_iter_get);
> +EXPORT_SYMBOL(drm_connector_list_iter_end);

Erm... this should obviously have been drm_connector_list_iter_begin, no
idea why the build tests didn't catch this on the first run.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170210/89a95d0e/attachment.sig>


More information about the dri-devel mailing list