Commit cc92da51 authored by Carlos Palminha's avatar Carlos Palminha Committed by Daniel Vetter

drm/tilcdc: 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: default avatarCarlos Palminha <palminha@synopsys.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/4d838f580cf81068a4df2500a096d66f06f3ad37.1455540137.git.palminha@synopsys.com
parent 54eeccc3
...@@ -70,14 +70,6 @@ static void panel_encoder_dpms(struct drm_encoder *encoder, int mode) ...@@ -70,14 +70,6 @@ static void panel_encoder_dpms(struct drm_encoder *encoder, int mode)
mode == DRM_MODE_DPMS_ON ? 1 : 0); mode == DRM_MODE_DPMS_ON ? 1 : 0);
} }
static bool panel_encoder_mode_fixup(struct drm_encoder *encoder,
const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
/* nothing needed */
return true;
}
static void panel_encoder_prepare(struct drm_encoder *encoder) static void panel_encoder_prepare(struct drm_encoder *encoder)
{ {
struct panel_encoder *panel_encoder = to_panel_encoder(encoder); struct panel_encoder *panel_encoder = to_panel_encoder(encoder);
...@@ -103,7 +95,6 @@ static const struct drm_encoder_funcs panel_encoder_funcs = { ...@@ -103,7 +95,6 @@ static const struct drm_encoder_funcs panel_encoder_funcs = {
static const struct drm_encoder_helper_funcs panel_encoder_helper_funcs = { static const struct drm_encoder_helper_funcs panel_encoder_helper_funcs = {
.dpms = panel_encoder_dpms, .dpms = panel_encoder_dpms,
.mode_fixup = panel_encoder_mode_fixup,
.prepare = panel_encoder_prepare, .prepare = panel_encoder_prepare,
.commit = panel_encoder_commit, .commit = panel_encoder_commit,
.mode_set = panel_encoder_mode_set, .mode_set = panel_encoder_mode_set,
......
...@@ -80,14 +80,6 @@ static void tfp410_encoder_dpms(struct drm_encoder *encoder, int mode) ...@@ -80,14 +80,6 @@ static void tfp410_encoder_dpms(struct drm_encoder *encoder, int mode)
tfp410_encoder->dpms = mode; tfp410_encoder->dpms = mode;
} }
static bool tfp410_encoder_mode_fixup(struct drm_encoder *encoder,
const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
/* nothing needed */
return true;
}
static void tfp410_encoder_prepare(struct drm_encoder *encoder) static void tfp410_encoder_prepare(struct drm_encoder *encoder)
{ {
tfp410_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); tfp410_encoder_dpms(encoder, DRM_MODE_DPMS_OFF);
...@@ -112,7 +104,6 @@ static const struct drm_encoder_funcs tfp410_encoder_funcs = { ...@@ -112,7 +104,6 @@ static const struct drm_encoder_funcs tfp410_encoder_funcs = {
static const struct drm_encoder_helper_funcs tfp410_encoder_helper_funcs = { static const struct drm_encoder_helper_funcs tfp410_encoder_helper_funcs = {
.dpms = tfp410_encoder_dpms, .dpms = tfp410_encoder_dpms,
.mode_fixup = tfp410_encoder_mode_fixup,
.prepare = tfp410_encoder_prepare, .prepare = tfp410_encoder_prepare,
.commit = tfp410_encoder_commit, .commit = tfp410_encoder_commit,
.mode_set = tfp410_encoder_mode_set, .mode_set = tfp410_encoder_mode_set,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment