diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2014-12-17 11:56:22 (GMT) |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-12-17 17:29:28 (GMT) |
commit | 05acaec334fcc1132d1e48c5042e044651e0b75b (patch) | |
tree | 79896149d5e2569bdb3167c91ac46d08ce175c4d /include/drm | |
parent | ef21bf73b9ae1e4b39ff984dc327f185d9c331b3 (diff) | |
download | linux-05acaec334fcc1132d1e48c5042e044651e0b75b.tar.xz |
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 91d0582..6c53114 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); |