aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_modes.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-12-17 06:56:22 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-17 12:29:28 -0500
commit05acaec334fcc1132d1e48c5042e044651e0b75b (patch)
tree79896149d5e2569bdb3167c91ac46d08ce175c4d /include/drm/drm_modes.h
parentef21bf73b9ae1e4b39ff984dc327f185d9c331b3 (diff)
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/drm_modes.h')
-rw-r--r--include/drm/drm_modes.h5
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,
217 const struct drm_display_mode *mode2); 217 const struct drm_display_mode *mode2);
218 218
219/* for use by the crtc helper probe functions */ 219/* for use by the crtc helper probe functions */
220void drm_mode_validate_size(struct drm_device *dev, 220enum drm_mode_status drm_mode_validate_size(const struct drm_display_mode *mode,
221 struct list_head *mode_list, 221 int maxX, int maxY);
222 int maxX, int maxY);
223void drm_mode_prune_invalid(struct drm_device *dev, 222void drm_mode_prune_invalid(struct drm_device *dev,
224 struct list_head *mode_list, bool verbose); 223 struct list_head *mode_list, bool verbose);
225void drm_mode_sort(struct list_head *mode_list); 224void drm_mode_sort(struct list_head *mode_list);