Commit 0993f1d0 authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter

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: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent cfd72a4c
...@@ -120,8 +120,8 @@ struct drm_encoder_helper_funcs { ...@@ -120,8 +120,8 @@ struct drm_encoder_helper_funcs {
*/ */
struct drm_connector_helper_funcs { struct drm_connector_helper_funcs {
int (*get_modes)(struct drm_connector *connector); int (*get_modes)(struct drm_connector *connector);
int (*mode_valid)(struct drm_connector *connector, enum drm_mode_status (*mode_valid)(struct drm_connector *connector,
struct drm_display_mode *mode); struct drm_display_mode *mode);
struct drm_encoder *(*best_encoder)(struct drm_connector *connector); struct drm_encoder *(*best_encoder)(struct drm_connector *connector);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment