summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc_helper.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-11-28 16:29:17 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-20 17:43:53 +0100
commit0993f1d0d8a1b516df4a059605af9979049d0187 (patch)
tree17ad54ddb88295c245a4120b9a2872dc68f62b05 /include/drm/drm_crtc_helper.h
parentMerge branch 'drm-intel-next' of git://people.freedesktop.org/~danvet/drm-int... (diff)
downloadlinux-0993f1d0d8a1b516df4a059605af9979049d0187.tar.xz
linux-0993f1d0d8a1b516df4a059605af9979049d0187.zip
drm: Make the connector mode_valid() vfunc return a drm_mode_status enum
To make it clear what exactly mode_valid() should return. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_crtc_helper.h')
-rw-r--r--include/drm/drm_crtc_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
index ef6ad3a8e58e..b1388b5fe7ac 100644
--- a/include/drm/drm_crtc_helper.h
+++ b/include/drm/drm_crtc_helper.h
@@ -120,8 +120,8 @@ struct drm_encoder_helper_funcs {
*/
struct drm_connector_helper_funcs {
int (*get_modes)(struct drm_connector *connector);
- int (*mode_valid)(struct drm_connector *connector,
- struct drm_display_mode *mode);
+ enum drm_mode_status (*mode_valid)(struct drm_connector *connector,
+ struct drm_display_mode *mode);
struct drm_encoder *(*best_encoder)(struct drm_connector *connector);
};