aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Palminha <CARLOS.PALMINHA@synopsys.com>2016-02-15 08:01:25 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-02-16 09:34:24 -0500
commit54eeccc3a93d003f55636899ce21dc4a99333ec5 (patch)
tree6d80cb516678c7e11f2ed2cdc2219d13f6066920
parentbb83804843e205c7e14648fc0625c623595c33ce (diff)
drm/sti: removed optional dummy encoder mode_fixup function.
mode_fixup function for encoder drivers became optional with patch http://patchwork.freedesktop.org/patch/msgid/1455106522-32307-1-git-send-email-palminha@synopsys.com This patch set nukes all the dummy mode_fixup implementations. (made on top of Daniel topic/drm-misc branch) Signed-off-by: Carlos Palminha <palminha@synopsys.com> Acked-by: Vincent Abriou <vincent.abriou@st.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/7f47c6a7b00e4f16af672ebf3a277e31ad117e21.1455540137.git.palminha@synopsys.com
-rw-r--r--drivers/gpu/drm/sti/sti_tvout.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/sti/sti_tvout.c b/drivers/gpu/drm/sti/sti_tvout.c
index f2afcf5438b8..24a3735b88fd 100644
--- a/drivers/gpu/drm/sti/sti_tvout.c
+++ b/drivers/gpu/drm/sti/sti_tvout.c
@@ -440,13 +440,6 @@ static void sti_tvout_encoder_dpms(struct drm_encoder *encoder, int mode)
440{ 440{
441} 441}
442 442
443static bool sti_tvout_encoder_mode_fixup(struct drm_encoder *encoder,
444 const struct drm_display_mode *mode,
445 struct drm_display_mode *adjusted_mode)
446{
447 return true;
448}
449
450static void sti_tvout_encoder_mode_set(struct drm_encoder *encoder, 443static void sti_tvout_encoder_mode_set(struct drm_encoder *encoder,
451 struct drm_display_mode *mode, 444 struct drm_display_mode *mode,
452 struct drm_display_mode *adjusted_mode) 445 struct drm_display_mode *adjusted_mode)
@@ -486,7 +479,6 @@ static void sti_dvo_encoder_disable(struct drm_encoder *encoder)
486 479
487static const struct drm_encoder_helper_funcs sti_dvo_encoder_helper_funcs = { 480static const struct drm_encoder_helper_funcs sti_dvo_encoder_helper_funcs = {
488 .dpms = sti_tvout_encoder_dpms, 481 .dpms = sti_tvout_encoder_dpms,
489 .mode_fixup = sti_tvout_encoder_mode_fixup,
490 .mode_set = sti_tvout_encoder_mode_set, 482 .mode_set = sti_tvout_encoder_mode_set,
491 .prepare = sti_tvout_encoder_prepare, 483 .prepare = sti_tvout_encoder_prepare,
492 .commit = sti_dvo_encoder_commit, 484 .commit = sti_dvo_encoder_commit,
@@ -540,7 +532,6 @@ static void sti_hda_encoder_disable(struct drm_encoder *encoder)
540 532
541static const struct drm_encoder_helper_funcs sti_hda_encoder_helper_funcs = { 533static const struct drm_encoder_helper_funcs sti_hda_encoder_helper_funcs = {
542 .dpms = sti_tvout_encoder_dpms, 534 .dpms = sti_tvout_encoder_dpms,
543 .mode_fixup = sti_tvout_encoder_mode_fixup,
544 .mode_set = sti_tvout_encoder_mode_set, 535 .mode_set = sti_tvout_encoder_mode_set,
545 .prepare = sti_tvout_encoder_prepare, 536 .prepare = sti_tvout_encoder_prepare,
546 .commit = sti_hda_encoder_commit, 537 .commit = sti_hda_encoder_commit,
@@ -589,7 +580,6 @@ static void sti_hdmi_encoder_disable(struct drm_encoder *encoder)
589 580
590static const struct drm_encoder_helper_funcs sti_hdmi_encoder_helper_funcs = { 581static const struct drm_encoder_helper_funcs sti_hdmi_encoder_helper_funcs = {
591 .dpms = sti_tvout_encoder_dpms, 582 .dpms = sti_tvout_encoder_dpms,
592 .mode_fixup = sti_tvout_encoder_mode_fixup,
593 .mode_set = sti_tvout_encoder_mode_set, 583 .mode_set = sti_tvout_encoder_mode_set,
594 .prepare = sti_tvout_encoder_prepare, 584 .prepare = sti_tvout_encoder_prepare,
595 .commit = sti_hdmi_encoder_commit, 585 .commit = sti_hdmi_encoder_commit,