/* RETURNS: True if @encoder is part of the mode_config, false otherwise.  */
bool drm_helper_encoder_in_use(struct drm_encoder *encoder)
/* RETURNS: True if @encoder is part of the mode_config, false otherwise.  */
bool drm_helper_encoder_in_use(struct drm_encoder *encoder)
{
	struct drm_connector *connector;
	struct drm_device *dev = encoder->dev;
	list_for_each_entry(connector, &dev->mode_config.connector_list, head)
		if (connector->encoder == encoder)
			return true;
	return false;
}