|
@@ -2482,6 +2482,23 @@ backoff:
|
|
|
}
|
|
|
EXPORT_SYMBOL(drm_atomic_helper_connector_dpms);
|
|
|
|
|
|
+/**
|
|
|
+ * drm_atomic_helper_best_encoder - Helper for &drm_connector_helper_funcs
|
|
|
+ * ->best_encoder callback
|
|
|
+ * @connector: Connector control structure
|
|
|
+ *
|
|
|
+ * This is a &drm_connector_helper_funcs ->best_encoder callback helper for
|
|
|
+ * connectors that support exactly 1 encoder, statically determined at driver
|
|
|
+ * init time.
|
|
|
+ */
|
|
|
+struct drm_encoder *
|
|
|
+drm_atomic_helper_best_encoder(struct drm_connector *connector)
|
|
|
+{
|
|
|
+ WARN_ON(connector->encoder_ids[1]);
|
|
|
+ return drm_encoder_find(connector->dev, connector->encoder_ids[0]);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(drm_atomic_helper_best_encoder);
|
|
|
+
|
|
|
/**
|
|
|
* DOC: atomic state reset and initialization
|
|
|
*
|