summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAndrew Chew <achew@nvidia.com>2012-08-01 16:39:32 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-03-03 23:29:50 +0100
commit5cdb67f676ffd3e577c5ad1d724369c8c11d1cfd (patch)
treecbd6a53792eead0970973afcc15a813cd1dafc42 /drivers/video
parentd6fa4ec20db6bd0b403d2d99fd9423e6c0f3f845 (diff)
Make it accessible outside of drivers/video/tegra. V4L2 driver needs to
set some platform_data. Signed-off-by: Andrew Chew <achew@nvidia.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/tegra/host/t20/t20.c6
-rw-r--r--drivers/video/tegra/host/t30/t30.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/t20/t20.c b/drivers/video/tegra/host/t20/t20.c
index 71ed7334e714..e6840ae7ba1c 100644
--- a/drivers/video/tegra/host/t20/t20.c
+++ b/drivers/video/tegra/host/t20/t20.c
@@ -286,3 +286,9 @@ int nvhost_init_t20_support(struct nvhost_master *host,
return 0;
}
+
+/* Hacky way to get access to struct nvhost_device tegra_vi01_device. */
+struct nvhost_device *t20_get_tegra_vi01_device(void)
+{
+ return &tegra_vi01_device;
+}
diff --git a/drivers/video/tegra/host/t30/t30.c b/drivers/video/tegra/host/t30/t30.c
index 334d598d5c0b..6c3a7f925177 100644
--- a/drivers/video/tegra/host/t30/t30.c
+++ b/drivers/video/tegra/host/t30/t30.c
@@ -301,3 +301,9 @@ int nvhost_init_t30_support(struct nvhost_master *host,
return 0;
}
+
+/* Hacky way to get access to struct nvhost_device tegra_vi01_device. */
+struct nvhost_device *t30_get_tegra_vi01_device(void)
+{
+ return &tegra_vi01_device;
+}