drm: Reorganize probed mode validation
[firefly-linux-kernel-4.4.55.git] / include / drm / drm_modes.h
index 91d0582f924e3e90539f0373b4daaaa2b20ae9cb..6c531140d4584b25f0fc2ebea7120f18fdfd23cf 100644 (file)
@@ -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);