From: Tomi Valkeinen Date: Wed, 10 Oct 2012 07:46:06 +0000 (+0300) Subject: OMAPDSS: add dss_get_core_pdev() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8f46efadf30476692a2f311ad335077ba8fca383;p=deliverable%2Flinux.git 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 --- diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index b1a9ce1188fb..8c308317a19f 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 6c3cfb3352df..9ee3c881d1c0 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);