summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-10 10:46:06 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-11-27 12:47:25 +0200
commit8f46efadf30476692a2f311ad335077ba8fca383 (patch)
treec5e71822f9ce6d59297a6d304d8b4c5c0e2ccb1e
parent3f30b8c2b6f20a00a97929fdbe7191e2a5e74064 (diff)
downloadop-kernel-dev-8f46efadf30476692a2f311ad335077ba8fca383.zip
op-kernel-dev-8f46efadf30476692a2f311ad335077ba8fca383.tar.gz
OMAPDSS: add dss_get_core_pdev()
Add dss_get_core_pdev() which returns the platform device for dss core device. The following patches use the core pdev to register sysfs files in the compat code. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/core.c5
-rw-r--r--drivers/video/omap2/dss/dss.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
index b1a9ce1..8c30831 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -66,6 +66,11 @@ enum omapdss_version omapdss_get_version(void)
}
EXPORT_SYMBOL(omapdss_get_version);
+struct platform_device *dss_get_core_pdev(void)
+{
+ return core.pdev;
+}
+
/* REGULATORS */
struct regulator *dss_get_vdds_dsi(void)
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index 6c3cfb3..9ee3c88 100644
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -160,6 +160,7 @@ struct seq_file;
struct platform_device;
/* core */
+struct platform_device *dss_get_core_pdev(void);
struct bus_type *dss_get_bus(void);
struct regulator *dss_get_vdds_dsi(void);
struct regulator *dss_get_vdds_sdi(void);
OpenPOWER on IntegriCloud