diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-12-17 13:56:22 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-12-17 18:29:28 +0100 |
commit | 05acaec334fcc1132d1e48c5042e044651e0b75b (patch) | |
tree | 79896149d5e2569bdb3167c91ac46d08ce175c4d /include/drm | |
parent | ef21bf73b9ae1e4b39ff984dc327f185d9c331b3 (diff) | |
download | blackbird-op-linux-05acaec334fcc1132d1e48c5042e044651e0b75b.tar.gz blackbird-op-linux-05acaec334fcc1132d1e48c5042e044651e0b75b.zip |
drm: Reorganize probed mode validation
Make drm_mode_validate_size() and drm_mode_validate_flag() deal with a
single mode instead of having each iterate through the mode list.
The hope is that in the future we might be able to share various mode
validation functions between modeset and get_modes.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_modes.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index 91d0582f924e..6c531140d458 100644 --- a/include/drm/drm_modes.h +++ b/include/drm/drm_modes.h @@ -217,9 +217,8 @@ bool drm_mode_equal_no_clocks_no_stereo(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2); /* for use by the crtc helper probe functions */ -void drm_mode_validate_size(struct drm_device *dev, - struct list_head *mode_list, - int maxX, int maxY); +enum drm_mode_status drm_mode_validate_size(const struct drm_display_mode *mode, + int maxX, int maxY); void drm_mode_prune_invalid(struct drm_device *dev, struct list_head *mode_list, bool verbose); void drm_mode_sort(struct list_head *mode_list); |