OMAPDSS: add dss_get_core_pdev()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 10 Oct 2012 07:46:06 +0000 (10:46 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 27 Nov 2012 10:47:25 +0000 (12:47 +0200)
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>
drivers/video/omap2/dss/core.c
drivers/video/omap2/dss/dss.h

index b1a9ce1188fb86ce6ad14e39b2f0ba9795286a57..8c308317a19f6292a9064dada45ea7c645c1dd2c 100644 (file)
@@ -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)
index 6c3cfb3352df1218dcf209bea2a210665daa1ee4..9ee3c881d1c0e51edf4669df5e6ce9e09effb498 100644 (file)
@@ -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);