drm/atmel-hlcdc: Use crtc->mode_valid() callback
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 25 May 2017 14:19:21 +0000 (15:19 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 2 Jun 2017 09:31:54 +0000 (11:31 +0200)
commita57bf53e294d2919f2bd1e0817c63105adf3c023
tree29a706a61cc0573c83045ce1494897791ca5496a
parent991dca01dd6719d1dd1bd4c39f5a12680c74b15e
drm/atmel-hlcdc: Use crtc->mode_valid() callback

Now that we have a callback to check if crtc supports a given mode
we can use it in atmel-hlcdc so that we restrict the number of probbed
modes to the ones we can actually display.

Also, remove the mode_fixup() callback as this is no longer needed
because mode_valid() will be called before.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/95fd6c06c58bd0b957e36a8d7068e6a74b581304.1495720737.git.joabreu@synopsys.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h