From patchwork Fri Mar 8 13:46:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Terje Bergstrom X-Patchwork-Id: 2237951 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id AA5D5DF215 for ; Fri, 8 Mar 2013 13:49:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 62E4DE6D3E for ; Fri, 8 Mar 2013 05:49:49 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from hqemgate03.nvidia.com (hqemgate03.nvidia.com [216.228.121.140]) by gabe.freedesktop.org (Postfix) with ESMTP id F0513E6D19 for ; Fri, 8 Mar 2013 05:48:27 -0800 (PST) Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate03.nvidia.com id ; Fri, 08 Mar 2013 05:53:31 -0800 Received: from hqemhub03.nvidia.com ([172.17.108.22]) by hqnvupgp08.nvidia.com (PGP Universal service); Fri, 08 Mar 2013 05:42:12 -0800 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Fri, 08 Mar 2013 05:42:12 -0800 Received: from deemhub01.nvidia.com (10.21.69.137) by hqemhub03.nvidia.com (172.20.150.15) with Microsoft SMTP Server (TLS) id 8.3.298.1; Fri, 8 Mar 2013 05:48:23 -0800 Received: from tbergstrom-desktop.Nvidia.com (10.21.65.27) by deemhub01.nvidia.com (10.21.69.137) with Microsoft SMTP Server id 8.3.298.1; Fri, 8 Mar 2013 14:48:18 +0100 From: Terje Bergstrom To: , , , Subject: [PATCHv6 6/9] gpu: host1x: drm: Rename host1x to host1x_drm Date: Fri, 8 Mar 2013 15:46:58 +0200 Message-ID: <1362750421-18080-7-git-send-email-tbergstrom@nvidia.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1362750421-18080-1-git-send-email-tbergstrom@nvidia.com> References: <1362750421-18080-1-git-send-email-tbergstrom@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Cc: Terje Bergstrom , linux-kernel@vger.kernel.org, amerilainen@nvidia.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Arto Merilainen Both host1x and drm drivers have host1x structures. This patch renames the host1x structure under drm to follow name host1x_drm. Signed-off-by: Arto Merilainen Signed-off-by: Terje Bergstrom --- drivers/gpu/host1x/drm/dc.c | 4 ++-- drivers/gpu/host1x/drm/drm.c | 4 ++-- drivers/gpu/host1x/drm/drm.h | 14 +++++++------- drivers/gpu/host1x/drm/fb.c | 6 +++--- drivers/gpu/host1x/drm/hdmi.c | 4 ++-- drivers/gpu/host1x/drm/host1x.c | 22 ++++++++++++---------- 6 files changed, 28 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/host1x/drm/dc.c b/drivers/gpu/host1x/drm/dc.c index de94707..d1f6609 100644 --- a/drivers/gpu/host1x/drm/dc.c +++ b/drivers/gpu/host1x/drm/dc.c @@ -1097,7 +1097,7 @@ static const struct host1x_client_ops dc_client_ops = { static int tegra_dc_probe(struct platform_device *pdev) { - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); struct resource *regs; struct tegra_dc *dc; int err; @@ -1160,7 +1160,7 @@ static int tegra_dc_probe(struct platform_device *pdev) static int tegra_dc_remove(struct platform_device *pdev) { - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); struct tegra_dc *dc = platform_get_drvdata(pdev); int err; diff --git a/drivers/gpu/host1x/drm/drm.c b/drivers/gpu/host1x/drm/drm.c index 9d452df..6c59bcd 100644 --- a/drivers/gpu/host1x/drm/drm.c +++ b/drivers/gpu/host1x/drm/drm.c @@ -26,7 +26,7 @@ static int tegra_drm_load(struct drm_device *drm, unsigned long flags) { struct device *dev = drm->dev; - struct host1x *host1x; + struct host1x_drm *host1x; int err; host1x = dev_get_drvdata(dev); @@ -69,7 +69,7 @@ static int tegra_drm_open(struct drm_device *drm, struct drm_file *filp) static void tegra_drm_lastclose(struct drm_device *drm) { - struct host1x *host1x = drm->dev_private; + struct host1x_drm *host1x = drm->dev_private; drm_fbdev_cma_restore_mode(host1x->fbdev); } diff --git a/drivers/gpu/host1x/drm/drm.h b/drivers/gpu/host1x/drm/drm.h index a6c011d..7fedb6c 100644 --- a/drivers/gpu/host1x/drm/drm.h +++ b/drivers/gpu/host1x/drm/drm.h @@ -18,7 +18,7 @@ #include #include -struct host1x { +struct host1x_drm { struct drm_device *drm; struct device *dev; void __iomem *regs; @@ -44,7 +44,7 @@ struct host1x_client_ops { }; struct host1x_client { - struct host1x *host1x; + struct host1x_drm *host1x; struct device *dev; const struct host1x_client_ops *ops; @@ -52,12 +52,12 @@ struct host1x_client { struct list_head list; }; -extern int host1x_drm_init(struct host1x *host1x, struct drm_device *drm); -extern int host1x_drm_exit(struct host1x *host1x); +extern int host1x_drm_init(struct host1x_drm *host1x, struct drm_device *drm); +extern int host1x_drm_exit(struct host1x_drm *host1x); -extern int host1x_register_client(struct host1x *host1x, +extern int host1x_register_client(struct host1x_drm *host1x, struct host1x_client *client); -extern int host1x_unregister_client(struct host1x *host1x, +extern int host1x_unregister_client(struct host1x_drm *host1x, struct host1x_client *client); struct tegra_output; @@ -66,7 +66,7 @@ struct tegra_dc { struct host1x_client client; spinlock_t lock; - struct host1x *host1x; + struct host1x_drm *host1x; struct device *dev; struct drm_crtc base; diff --git a/drivers/gpu/host1x/drm/fb.c b/drivers/gpu/host1x/drm/fb.c index 0391495..6ed885a 100644 --- a/drivers/gpu/host1x/drm/fb.c +++ b/drivers/gpu/host1x/drm/fb.c @@ -11,7 +11,7 @@ static void tegra_drm_fb_output_poll_changed(struct drm_device *drm) { - struct host1x *host1x = drm->dev_private; + struct host1x_drm *host1x = drm->dev_private; drm_fbdev_cma_hotplug_event(host1x->fbdev); } @@ -23,7 +23,7 @@ static const struct drm_mode_config_funcs tegra_drm_mode_funcs = { int tegra_drm_fb_init(struct drm_device *drm) { - struct host1x *host1x = drm->dev_private; + struct host1x_drm *host1x = drm->dev_private; struct drm_fbdev_cma *fbdev; drm->mode_config.min_width = 0; @@ -46,7 +46,7 @@ int tegra_drm_fb_init(struct drm_device *drm) void tegra_drm_fb_exit(struct drm_device *drm) { - struct host1x *host1x = drm->dev_private; + struct host1x_drm *host1x = drm->dev_private; drm_fbdev_cma_fini(host1x->fbdev); } diff --git a/drivers/gpu/host1x/drm/hdmi.c b/drivers/gpu/host1x/drm/hdmi.c index bb747f6..f438f80 100644 --- a/drivers/gpu/host1x/drm/hdmi.c +++ b/drivers/gpu/host1x/drm/hdmi.c @@ -1189,7 +1189,7 @@ static const struct host1x_client_ops hdmi_client_ops = { static int tegra_hdmi_probe(struct platform_device *pdev) { - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); struct tegra_hdmi *hdmi; struct resource *regs; int err; @@ -1278,7 +1278,7 @@ static int tegra_hdmi_probe(struct platform_device *pdev) static int tegra_hdmi_remove(struct platform_device *pdev) { - struct host1x *host1x = dev_get_drvdata(pdev->dev.parent); + struct host1x_drm *host1x = dev_get_drvdata(pdev->dev.parent); struct tegra_hdmi *hdmi = platform_get_drvdata(pdev); int err; diff --git a/drivers/gpu/host1x/drm/host1x.c b/drivers/gpu/host1x/drm/host1x.c index 92e25a7..c3d8ee5 100644 --- a/drivers/gpu/host1x/drm/host1x.c +++ b/drivers/gpu/host1x/drm/host1x.c @@ -21,7 +21,8 @@ struct host1x_drm_client { struct list_head list; }; -static int host1x_add_drm_client(struct host1x *host1x, struct device_node *np) +static int host1x_add_drm_client(struct host1x_drm *host1x, + struct device_node *np) { struct host1x_drm_client *client; @@ -37,7 +38,7 @@ static int host1x_add_drm_client(struct host1x *host1x, struct device_node *np) return 0; } -static int host1x_activate_drm_client(struct host1x *host1x, +static int host1x_activate_drm_client(struct host1x_drm *host1x, struct host1x_drm_client *drm, struct host1x_client *client) { @@ -50,7 +51,7 @@ static int host1x_activate_drm_client(struct host1x *host1x, return 0; } -static int host1x_remove_drm_client(struct host1x *host1x, +static int host1x_remove_drm_client(struct host1x_drm *host1x, struct host1x_drm_client *client) { mutex_lock(&host1x->drm_clients_lock); @@ -63,7 +64,7 @@ static int host1x_remove_drm_client(struct host1x *host1x, return 0; } -static int host1x_parse_dt(struct host1x *host1x) +static int host1x_parse_dt(struct host1x_drm *host1x) { static const char * const compat[] = { "nvidia,tegra20-dc", @@ -92,7 +93,7 @@ static int host1x_parse_dt(struct host1x *host1x) static int tegra_host1x_probe(struct platform_device *pdev) { - struct host1x *host1x; + struct host1x_drm *host1x; struct resource *regs; int err; @@ -156,14 +157,14 @@ err: static int tegra_host1x_remove(struct platform_device *pdev) { - struct host1x *host1x = platform_get_drvdata(pdev); + struct host1x_drm *host1x = platform_get_drvdata(pdev); clk_disable_unprepare(host1x->clk); return 0; } -int host1x_drm_init(struct host1x *host1x, struct drm_device *drm) +int host1x_drm_init(struct host1x_drm *host1x, struct drm_device *drm) { struct host1x_client *client; @@ -186,7 +187,7 @@ int host1x_drm_init(struct host1x *host1x, struct drm_device *drm) return 0; } -int host1x_drm_exit(struct host1x *host1x) +int host1x_drm_exit(struct host1x_drm *host1x) { struct platform_device *pdev = to_platform_device(host1x->dev); struct host1x_client *client; @@ -216,7 +217,8 @@ int host1x_drm_exit(struct host1x *host1x) return 0; } -int host1x_register_client(struct host1x *host1x, struct host1x_client *client) +int host1x_register_client(struct host1x_drm *host1x, + struct host1x_client *client) { struct host1x_drm_client *drm, *tmp; int err; @@ -244,7 +246,7 @@ int host1x_register_client(struct host1x *host1x, struct host1x_client *client) return 0; } -int host1x_unregister_client(struct host1x *host1x, +int host1x_unregister_client(struct host1x_drm *host1x, struct host1x_client *client) { struct host1x_drm_client *drm, *tmp;