drm/sun4i: Set TCON clock inside sun4i_tconX_mode_set
authorChen-Yu Tsai <wens@csie.org>
Tue, 25 Apr 2017 15:25:04 +0000 (23:25 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:31:58 +0000 (08:31 +0200)
commit86cf6788a661b8cb459f259e373c5daf09221abe
tree51f077d2af690b223e1a9d04d05697ec2a659570
parentd281c862de30381c144145a75ec1f0d5efc307ae
drm/sun4i: Set TCON clock inside sun4i_tconX_mode_set

Currently we are configuring the TCON's dot clock or special clock
directly from the encoder mode_set functions. Since we already
provide mode_set helper functions for the TCON's 2 channels, we
can set the respective clock from those helpers, and reduce the
exposure of the TCON's internals.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_rgb.c
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tv.c