From patchwork Wed Nov 26 21:09:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5387941 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 782B29F2F5 for ; Wed, 26 Nov 2014 21:09:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A0290201FA for ; Wed, 26 Nov 2014 21:09:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A2822201B9 for ; Wed, 26 Nov 2014 21:09:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C588E6E046; Wed, 26 Nov 2014 13:09:18 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C0D76E046 for ; Wed, 26 Nov 2014 13:09:18 -0800 (PST) Received: by mail-qg0-f51.google.com with SMTP id l89so2695496qgf.10 for ; Wed, 26 Nov 2014 13:09:17 -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=+0QJ1SImTviSus8ZNDlg1H8dPUJadaxq9FFi9wXtpWk=; b=bJ8jMS3wmAPd20cl3m44Ga7CcEKNXskBN2uBpKOfu8mCA4E/RbZ81MDOTNfryAvhft os//c1tUZejsAEik3KKexCryYG18srOzUsJN/CQ2TqUFHc4K02GCLP5tw2zKZSdku+Uy CovMAsDHDCgQpi+Us9lVeCmCv6t20wSfn7ELKHT4Q/UjBHqkWnDEFBnkeT6OHzKo77nb cowByctUvhCK9GXZ4Au52uM/Jl2tcgku8Esw8FMZOOrbx/gVUxlMIkmTmLoNH3X81cqf BBgXIUED+IS8oLK9hNtA3E1atzk0OdZuAdJyRsgMCZ9nzhT+7Swvu2GZbA6wz+0X/F4Y mb3w== X-Received: by 10.140.36.168 with SMTP id p37mr47547254qgp.101.1417036157693; Wed, 26 Nov 2014 13:09:17 -0800 (PST) Received: from localhost.localdomain ([191.8.93.69]) by mx.google.com with ESMTPSA id n5sm4910678qat.13.2014.11.26.13.09.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 13:09:16 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/6] drm/exynos: rename base object of struct exynos_drm_crtc to 'base' Date: Wed, 26 Nov 2014 19:09:00 -0200 Message-Id: <1417036145-11017-2-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1417036145-11017-1-git-send-email-gustavo@padovan.org> References: <1417036145-11017-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 'base' is more widely used name in the drm subsystem for the base object. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 4 ++-- drivers/gpu/drm/exynos/exynos_drm_drv.h | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index 5b3d182..1cdf705 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -324,8 +324,8 @@ int exynos_drm_crtc_create(struct exynos_drm_manager *manager) goto err_plane; } - manager->crtc = &exynos_crtc->drm_crtc; - crtc = &exynos_crtc->drm_crtc; + manager->crtc = &exynos_crtc->base; + crtc = &exynos_crtc->base; private->crtc[manager->pipe] = crtc; diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 187dde5..0a565f8 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -23,8 +23,7 @@ #define MAX_FB_BUFFER 4 #define DEFAULT_ZPOS -1 -#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc,\ - drm_crtc) +#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc, base) #define to_exynos_plane(x) container_of(x, struct exynos_drm_plane, base) /* This enumerates device type. */ @@ -229,7 +228,7 @@ enum exynos_crtc_mode { /* * Exynos specific crtc structure. * - * @drm_crtc: crtc object. + * @base: crtc object. * @manager: the manager associated with this crtc * @pipe: a crtc index created at load() with a new crtc object creation * and the crtc object would be set to private->crtc array @@ -242,7 +241,7 @@ enum exynos_crtc_mode { * @mode: store the crtc mode value */ struct exynos_drm_crtc { - struct drm_crtc drm_crtc; + struct drm_crtc base; struct exynos_drm_manager *manager; unsigned int pipe; unsigned int dpms;