OSDN Git Service

drm/sun4i: move rgb mode_valid from connector to encoder
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Tue, 13 Mar 2018 11:36:57 +0000 (12:36 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 14 Mar 2018 08:07:13 +0000 (09:07 +0100)
commitcde8b7548272640437d2fa691ae211f940066f6b
tree77b841540166326d1a3fac97ed432d69a553dae7
parentfd1eabd8800461d4ce1665b005e745353dfb3e49
drm/sun4i: move rgb mode_valid from connector to encoder

mode_valid function must be connected to encoder.
Otherwise it could get not be called by drm in the case there's a
bridge connected to encoder instead of a panel.

Move mode_valid function pointer to encoder helper functions,
changing its prototype according to encoder helper function pointer.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1520941017-81177-1-git-send-email-giulio.benetti@micronovasrl.com
drivers/gpu/drm/sun4i/sun4i_rgb.c