]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu: removed optional dummy encoder mode_fixup function.
authorCarlos Palminha <CARLOS.PALMINHA@synopsys.com>
Mon, 15 Feb 2016 12:58:31 +0000 (12:58 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 16 Feb 2016 14:31:38 +0000 (15:31 +0100)
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>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/8c4710ee930d2ab3a505b8d3cd724f4f4c79b3df.1455540137.git.palminha@synopsys.com
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c

index 093599aba64b9e0ff0e0a4ba1f43e936903707fa..34830189311e1c6caa2b495f7a25a7589f99ee0d 100644 (file)
@@ -3624,16 +3624,8 @@ dce_v10_0_ext_dpms(struct drm_encoder *encoder, int mode)
 
 }
 
-static bool dce_v10_0_ext_mode_fixup(struct drm_encoder *encoder,
-                                   const struct drm_display_mode *mode,
-                                   struct drm_display_mode *adjusted_mode)
-{
-       return true;
-}
-
 static const struct drm_encoder_helper_funcs dce_v10_0_ext_helper_funcs = {
        .dpms = dce_v10_0_ext_dpms,
-       .mode_fixup = dce_v10_0_ext_mode_fixup,
        .prepare = dce_v10_0_ext_prepare,
        .mode_set = dce_v10_0_ext_mode_set,
        .commit = dce_v10_0_ext_commit,
index 8e67249d4367d1aff0737c8ea3b48369b8019bc4..36deea162779501dc852ef85e0b6c7a199780729 100644 (file)
@@ -3619,16 +3619,8 @@ dce_v11_0_ext_dpms(struct drm_encoder *encoder, int mode)
 
 }
 
-static bool dce_v11_0_ext_mode_fixup(struct drm_encoder *encoder,
-                                   const struct drm_display_mode *mode,
-                                   struct drm_display_mode *adjusted_mode)
-{
-       return true;
-}
-
 static const struct drm_encoder_helper_funcs dce_v11_0_ext_helper_funcs = {
        .dpms = dce_v11_0_ext_dpms,
-       .mode_fixup = dce_v11_0_ext_mode_fixup,
        .prepare = dce_v11_0_ext_prepare,
        .mode_set = dce_v11_0_ext_mode_set,
        .commit = dce_v11_0_ext_commit,
index d0e128c248134e8a6fb9c9e4311e52bd7af0aceb..25dd8b668ea50db6d92ad30109a48582533569e9 100644 (file)
@@ -3554,16 +3554,8 @@ dce_v8_0_ext_dpms(struct drm_encoder *encoder, int mode)
 
 }
 
-static bool dce_v8_0_ext_mode_fixup(struct drm_encoder *encoder,
-                                   const struct drm_display_mode *mode,
-                                   struct drm_display_mode *adjusted_mode)
-{
-       return true;
-}
-
 static const struct drm_encoder_helper_funcs dce_v8_0_ext_helper_funcs = {
        .dpms = dce_v8_0_ext_dpms,
-       .mode_fixup = dce_v8_0_ext_mode_fixup,
        .prepare = dce_v8_0_ext_prepare,
        .mode_set = dce_v8_0_ext_mode_set,
        .commit = dce_v8_0_ext_commit,