From patchwork Mon Nov 24 18:21:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5368811 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9EAB6C11AC for ; Mon, 24 Nov 2014 18:21:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D56692026F for ; Mon, 24 Nov 2014 18:21:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F2FE12020F for ; Mon, 24 Nov 2014 18:21:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 487716E485; Mon, 24 Nov 2014 10:21:18 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id A794F6E2FC for ; Mon, 24 Nov 2014 10:21:15 -0800 (PST) Received: by mail-qc0-f177.google.com with SMTP id x3so7059673qcv.8 for ; Mon, 24 Nov 2014 10:21:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eQ61VYJ3QChG+oxJedFkLX272iz0YxoJf/YYsA0/7C4=; b=CqvxpKFw13yO2vMqmAoaL9VxNLBZfnvde1Yhe15S6+woFHRTU5oNcq/NuQVwjjk2UT oHJ+FWjglNZr0ZbyCqxzjIvNZdSPqihYdGe5mxfh9nms3zNYjqEka9Pvul8TgbcYQZIl aQkynpdbmBeWbrNXMAM93V5mPT/vGN0xKgOSSKQeADagdtiextF3zTQGKNcrneUSJGAR 9klsXyTeOVdi+ayhHtDUL4XM+z6TiGeENwGovIRUzP9llBzTNzuoH6ljPaoV9+pNVncg zHJT9z8rh2P/14BxgS8GC8mxa9Eb3QWlCJwTzVJOrK7j/K2IhNuPVv7a2KOjRCoPTw50 isjg== X-Received: by 10.224.136.130 with SMTP id r2mr31313147qat.80.1416853275313; Mon, 24 Nov 2014 10:21:15 -0800 (PST) Received: from localhost.localdomain ([187.34.44.229]) by mx.google.com with ESMTPSA id g12sm1403650qay.44.2014.11.24.10.21.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Nov 2014 10:21:14 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/4] drm/exynos: move to_exynos_crtc() macro to main header Date: Mon, 24 Nov 2014 16:21:03 -0200 Message-Id: <1416853266-10584-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1416853266-10584-1-git-send-email-gustavo@padovan.org> References: <1416853266-10584-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org 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" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan With this change we allow other pieces of the code to use this macro. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 3 --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index 45026e6..c8a3169 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -20,9 +20,6 @@ #include "exynos_drm_encoder.h" #include "exynos_drm_plane.h" -#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc,\ - drm_crtc) - enum exynos_crtc_mode { CRTC_MODE_NORMAL, /* normal mode */ CRTC_MODE_BLANK, /* The private plane of crtc is blank */ diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 2e4e91b..9e14ae6f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -23,6 +23,9 @@ #define MAX_FB_BUFFER 4 #define DEFAULT_ZPOS -1 +#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc,\ + drm_crtc) + /* This enumerates device type. */ enum exynos_drm_device_type { EXYNOS_DEVICE_TYPE_NONE,