]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/drm/drm_panel.h
Merge tag 'iio-for-v4.2a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[mirror_ubuntu-zesty-kernel.git] / include / drm / drm_panel.h
index 1fbcc96063a7ff7ed72f3be91a3cb47f0d6142dd..13ff44b28893f5904aa43cfd2b3fbc4d417f24bc 100644 (file)
@@ -29,6 +29,7 @@
 struct drm_connector;
 struct drm_device;
 struct drm_panel;
+struct display_timing;
 
 /**
  * struct drm_panel_funcs - perform operations on a given panel
@@ -38,6 +39,8 @@ struct drm_panel;
  * @enable: enable panel (turn on back light, etc.)
  * @get_modes: add modes to the connector that the panel is attached to and
  * return the number of modes added
+ * @get_timings: copy display timings into the provided array and return
+ * the number of display timings available
  *
  * The .prepare() function is typically called before the display controller
  * starts to transmit video data. Panel drivers can use this to turn the panel
@@ -68,6 +71,8 @@ struct drm_panel_funcs {
        int (*prepare)(struct drm_panel *panel);
        int (*enable)(struct drm_panel *panel);
        int (*get_modes)(struct drm_panel *panel);
+       int (*get_timings)(struct drm_panel *panel, unsigned int num_timings,
+                          struct display_timing *timings);
 };
 
 struct drm_panel {