]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpu/drm/drm_panel.c
drm/panel: Add and fill drm_panel type field
[linux.git] / drivers / gpu / drm / drm_panel.c
index ba2fad4c96489e8529f5f565cbbc1c2645496791..ed7985c0535a2dae5311fde445726655bd188a28 100644 (file)
@@ -46,16 +46,19 @@ static LIST_HEAD(panel_list);
  * @panel: DRM panel
  * @dev: parent device of the panel
  * @funcs: panel operations
+ * @connector_type: the connector type (DRM_MODE_CONNECTOR_*) corresponding to
+ *     the panel interface
  *
  * Initialize the panel structure for subsequent registration with
  * drm_panel_add().
  */
 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)
 {
        INIT_LIST_HEAD(&panel->list);
        panel->dev = dev;
        panel->funcs = funcs;
+       panel->connector_type = connector_type;
 }
 EXPORT_SYMBOL(drm_panel_init);