]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm: Add drm_{crtc/encoder/connector}_mode_valid()
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 25 May 2017 14:19:13 +0000 (15:19 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 30 May 2017 06:37:24 +0000 (08:37 +0200)
commitda251bf8f93513519a3c18b2b2290557ea5ba860
treef082ffc6ad4a8c7df488342bbe2283808d52205e
parent18e51064c42ca3945b94dd4652156b62457962bc
drm: Add drm_{crtc/encoder/connector}_mode_valid()

Add a new helper to call crtc->mode_valid, connector->mode_valid
and encoder->mode_valid callbacks.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Dave Airlie <airlied@linux.ie>
Changes v2->v3:
- Move helpers to drm_probe_helper.c (Daniel)
- Squeeze patches that introduce helpers into a single
one (Daniel)

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
[danvet: Make it compile when CONFIG_DRM_DP_AUX_CHARDEV is selected.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/b55c8bd029da219ff04e39086025c115731a49b1.1495720737.git.joabreu@synopsys.com
drivers/gpu/drm/drm_crtc_helper_internal.h
drivers/gpu/drm/drm_probe_helper.c