]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Reorganize probed mode validation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Dec 2014 11:56:22 +0000 (13:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Dec 2014 17:29:28 +0000 (18:29 +0100)
commitbc2a0b19f5510be091b550e9ace0b264dbf78621
tree79896149d5e2569bdb3167c91ac46d08ce175c4d
parentc37b47a74daf42b1e3d52cfd554f6f8b4568bb29
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>
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/drm_probe_helper.c
include/drm/drm_modes.h