From patchwork Tue Nov 10 13:23:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 56320 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp771638lbb; Tue, 10 Nov 2015 05:31:22 -0800 (PST) X-Received: by 10.67.22.66 with SMTP id hq2mr5535892pad.81.1447161901692; Tue, 10 Nov 2015 05:25:01 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id a8si5168996pbu.107.2015.11.10.05.25.01; Tue, 10 Nov 2015 05:25:01 -0800 (PST) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 031786E869; Tue, 10 Nov 2015 05:24:56 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E6776E673 for ; Tue, 10 Nov 2015 05:24:54 -0800 (PST) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NXL00KL0P9HYKA0@mailout3.w1.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 10 Nov 2015 13:24:53 +0000 (GMT) X-AuditID: cbfec7f5-f794b6d000001495-32-5641f024a497 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 03.B8.05269.420F1465; Tue, 10 Nov 2015 13:24:53 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NXL00L9RP94NP10@eusync1.samsung.com>; Tue, 10 Nov 2015 13:24:52 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 12/25] drm/exynos: mixer: use crtc->state->adjusted_mode instead of crtc->mode Date: Tue, 10 Nov 2015 14:23:28 +0100 Message-id: <1447161821-1877-13-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1447161821-1877-1-git-send-email-m.szyprowski@samsung.com> References: <1447161821-1877-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJLMWRmVeSWpSXmKPExsVy+t/xy7qqHxzDDNbqWdxad47VYuOM9awW V76+Z7PY+WAXu8Wk+xNYLN68XcNk8eLeRRaL1y8MLWac38dksfbIXXaLGZNfslm0rf7AarFq 1x9GB16PnbPusnvc7z7O5PHvGLvHln4gb+ekvUwefVtWMXp83iQXwB7FZZOSmpNZllqkb5fA lXHtwjrGgr/cFXcOdbA1MM7h6mLk5JAQMJF48mcLI4QtJnHh3nq2LkYuDiGBpYwSHQfXs0M4 TUwSe6asBatiEzCU6HrbxQZiiwi4STQdnskKYjMLHGaWODy1DsQWFkiQWPVxP1g9i4CqxO0l jSwgNq+Ah8SMuXegtslJ/H+5ggnE5gSKb/34mRnEFhJwl7jZdJFlAiPvAkaGVYyiqaXJBcVJ 6blGesWJucWleel6yfm5mxghAfp1B+PSY1aHGAU4GJV4eCd8cwgTYk0sK67MPcQowcGsJMLL +NoxTIg3JbGyKrUoP76oNCe1+BCjNAeLkjjvzF3vQ4QE0hNLUrNTUwtSi2CyTBycUg2MG1ZO WfD/H6ero7AKF/OvjY8+G9qc/qg8f7mi/aXLa9clJVQbLuPV+aW4T/C+ovzC02JdDc8ERERO blnadtn91W/mKdbx/xzZFMWZDPbMO3Xl0iFBgW2Snc5TIk7s2t+eWC89MfGQkfHC2e9nP68W WTzdprt/s2Sp1CH+3oLf2VMnXhG2ONjXrcRSnJFoqMVcVJwIAMa5sDNMAgAA Cc: Javier Martinez Canillas , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Seung-Woo Kim , Andrzej Hajda , Tobias Jakobi , Marek Szyprowski X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index c3bd8cace37a..a683edce5b68 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -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;