[v5,13/13] drm/ast: Automatically clean up poll helper

Sui Jingfeng sui.jingfeng at linux.dev
Thu Mar 21 20:57:55 UTC 2024


Hi,


On 2024/3/20 17:34, Thomas Zimmermann wrote:



> +
> +/**
> + * devm_drm_kms_helper_poll_init - initialize and enable output polling

Should be drmm_kms_helper_poll_init() here.

> + * @dev: drm_device
> + *
> + * This function initializes and then also enables output polling support for
> + * @dev similar to drm_kms_helper_poll_init(). Polling will automatically be
> + * cleaned up when the DRM device goes away.
> + *
> + * See drm_kms_helper_poll_init() for more information.
> + *
> + * Returns:
> + * 0 on success, or a negative errno code otherwise.
> + */
> +int drmm_kms_helper_poll_init(struct drm_device *dev)
> +{
> +	drm_kms_helper_poll_init(dev);
> +
> +	return drmm_add_action_or_reset(dev, drm_kms_helper_poll_init_release, dev);
> +}
> +EXPORT_SYMBOL(drmm_kms_helper_poll_init);

-- 
Best regards,
Sui



More information about the dri-devel mailing list