Skip to content

Commit 84e5a79

Browse files
tombaairlied
authored andcommitted
drm/sti: remove extra mode fixup
Commit 652353e ("drm/sti: set CRTC modesetting parameters") added a hack to avoid warnings related to setting mode with atomic API. With the previous patch, the hack should no longer be necessary. Signed-off-by: Tomi Valkeinen <[email protected]> Cc: Benjamin Gaignard <[email protected]> Cc: Vincent Abriou <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent b201e74 commit 84e5a79

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/gpu/drm/sti/sti_crtc.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ static void sti_crtc_disabling(struct drm_crtc *crtc)
5151
mixer->status = STI_MIXER_DISABLING;
5252
}
5353

54-
static bool sti_crtc_mode_fixup(struct drm_crtc *crtc,
55-
const struct drm_display_mode *mode,
56-
struct drm_display_mode *adjusted_mode)
57-
{
58-
/* accept the provided drm_display_mode, do not fix it up */
59-
drm_mode_set_crtcinfo(adjusted_mode, CRTC_INTERLACE_HALVE_V);
60-
return true;
61-
}
62-
6354
static int
6455
sti_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode)
6556
{
@@ -230,7 +221,6 @@ static void sti_crtc_atomic_flush(struct drm_crtc *crtc,
230221
static const struct drm_crtc_helper_funcs sti_crtc_helper_funcs = {
231222
.enable = sti_crtc_enable,
232223
.disable = sti_crtc_disabling,
233-
.mode_fixup = sti_crtc_mode_fixup,
234224
.mode_set = drm_helper_crtc_mode_set,
235225
.mode_set_nofb = sti_crtc_mode_set_nofb,
236226
.mode_set_base = drm_helper_crtc_mode_set_base,

0 commit comments

Comments
 (0)