]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/exynos: mixer: use crtc->state->adjusted_mode instead of crtc->mode
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Nov 2015 13:53:23 +0000 (14:53 +0100)
committerInki Dae <daeinki@gmail.com>
Sun, 13 Dec 2015 13:22:56 +0000 (22:22 +0900)
This patch replaces usage of crtc->mode with crtc->state->adjusted_mode
like it is already done in common plane code.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c

index 154537a23c900c2762702745ec9993afc3703b2b..84ee3396c42963110a0cf52a02c35fd5c065505c 100644 (file)
@@ -402,9 +402,9 @@ static void vp_video_buffer(struct mixer_context *ctx,
 {
        struct exynos_drm_plane_state *state =
                                to_exynos_plane_state(plane->base.state);
+       struct drm_display_mode *mode = &state->base.crtc->state->adjusted_mode;
        struct mixer_resources *res = &ctx->mixer_res;
        struct drm_framebuffer *fb = state->base.fb;
-       struct drm_display_mode *mode = &state->base.crtc->mode;
        unsigned long flags;
        dma_addr_t luma_addr[2], chroma_addr[2];
        bool tiled_mode = false;
@@ -539,9 +539,9 @@ static void mixer_graph_buffer(struct mixer_context *ctx,
 {
        struct exynos_drm_plane_state *state =
                                to_exynos_plane_state(plane->base.state);
+       struct drm_display_mode *mode = &state->base.crtc->state->adjusted_mode;
        struct mixer_resources *res = &ctx->mixer_res;
        struct drm_framebuffer *fb = state->base.fb;
-       struct drm_display_mode *mode = &state->base.crtc->mode;
        unsigned long flags;
        unsigned int win = plane->zpos;
        unsigned int x_ratio = 0, y_ratio = 0;