]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/drm/drm_panel.h
drm/panel: Add and fill drm_panel type field
[linux.git] / include / drm / drm_panel.h
index 4b9c656dc15e305326cc924ca986503d873cf414..ce8da64022b43e7323a49b0a3be5a7ecf86a3691 100644 (file)
@@ -139,6 +139,15 @@ struct drm_panel {
         */
        const struct drm_panel_funcs *funcs;
 
+       /**
+        * @connector_type:
+        *
+        * Type of the panel as a DRM_MODE_CONNECTOR_* value. This is used to
+        * initialise the drm_connector corresponding to the panel with the
+        * correct connector type.
+        */
+       int connector_type;
+
        /**
         * @list:
         *
@@ -148,7 +157,8 @@ struct drm_panel {
 };
 
 void drm_panel_init(struct drm_panel *panel, struct device *dev,
-                   const struct drm_panel_funcs *funcs);
+                   const struct drm_panel_funcs *funcs,
+                   int connector_type);
 
 int drm_panel_add(struct drm_panel *panel);
 void drm_panel_remove(struct drm_panel *panel);