From: Tomasz Figa <tomasz.figa@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com,
jy0922.shim@samsung.com, t.figa@samsung.com,
Tomasz Figa <tomasz.figa@gmail.com>
Subject: [PATCH 1/4] drm/exynos: fimd: Hold pointer to driver data in context struct
Date: Wed, 1 May 2013 21:02:26 +0200 [thread overview]
Message-ID: <1367434949-14838-2-git-send-email-tomasz.figa@gmail.com> (raw)
In-Reply-To: <1367434949-14838-1-git-send-email-tomasz.figa@gmail.com>
This patch adds pointer to driver data to fimd_context structure, to
remove the need to call drm_fimd_get_driver_data() each time access to
driver data is necessary.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
---
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 746b282..264434f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -107,6 +107,7 @@ struct fimd_context {
atomic_t wait_vsync_event;
struct exynos_drm_panel_info *panel;
+ struct fimd_driver_data *driver_data;
};
#ifdef CONFIG_OF
@@ -239,10 +240,9 @@ static void fimd_commit(struct device *dev)
struct exynos_drm_panel_info *panel = ctx->panel;
struct fb_videomode *timing = &panel->timing;
struct fimd_driver_data *driver_data;
- struct platform_device *pdev = to_platform_device(dev);
u32 val;
- driver_data = drm_fimd_get_driver_data(pdev);
+ driver_data = ctx->driver_data;
if (ctx->suspended)
return;
@@ -949,6 +949,7 @@ static int fimd_probe(struct platform_device *pdev)
return ret;
}
+ ctx->driver_data = drm_fimd_get_driver_data(pdev);
ctx->vidcon0 = pdata->vidcon0;
ctx->vidcon1 = pdata->vidcon1;
ctx->default_win = pdata->default_win;
--
1.8.2.1
next prev parent reply other threads:[~2013-05-01 19:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 19:02 [PATCH 0/4] drm/exynos: fimd: Add support for S3C6400/S3C6410 Tomasz Figa
2013-05-01 19:02 ` Tomasz Figa [this message]
2013-05-01 19:02 ` [PATCH 2/4] drm/exynos: fimd: Add support for FIMD versions without SHADOWCON register Tomasz Figa
2013-05-01 19:02 ` [PATCH 3/4] drm/exynos: fimd: Add support for FIMD variants with clock selection Tomasz Figa
2013-05-01 19:02 ` [PATCH 4/4] drm/exynos: fimd: Add support for S3C64xx SoCs Tomasz Figa
2013-05-19 11:26 ` [PATCH 0/4] drm/exynos: fimd: Add support for S3C6400/S3C6410 Tomasz Figa
2013-06-05 18:14 ` Tomasz Figa
2013-06-06 4:02 ` Joonyoung Shim
2013-06-10 12:18 ` Inki Dae
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1367434949-14838-2-git-send-email-tomasz.figa@gmail.com \
--to=tomasz.figa@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=jy0922.shim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=t.figa@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox