summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-08-07 16:55:35 +0200
committerThierry Reding <treding@nvidia.com>2014-08-07 16:55:35 +0200
commitf1740e848df05a8474a5ff4524b1ab8dfcef78cb (patch)
tree9ef30c58a0b8c7da08f445ec60f789570c47fe30
parentd8c76251d1d4de1358004e770f0d33ff1c2f4345 (diff)
parentf2ef4b3ea8651b4a59b9bf1497d4bdfca2b70e38 (diff)
Merge branch 'staging/drm/panel' into staging/master
-rw-r--r--include/drm/drm_panel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h
index 1fbcc96063a7..a59e067ab3ab 100644
--- a/include/drm/drm_panel.h
+++ b/include/drm/drm_panel.h
@@ -120,6 +120,14 @@ static inline int drm_panel_get_modes(struct drm_panel *panel)
return panel ? -ENOSYS : -EINVAL;
}
+static inline int drm_panel_get_modes(struct drm_panel *panel)
+{
+ if (panel && panel->funcs && panel->funcs->get_modes)
+ return panel->funcs->get_modes(panel);
+
+ return panel ? -ENOSYS : -EINVAL;
+}
+
void drm_panel_init(struct drm_panel *panel);
int drm_panel_add(struct drm_panel *panel);