summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2011-07-24 20:59:11 +0100
committerAndy Green <andy.green@linaro.org>2011-09-26 17:23:58 +0100
commitae0a1d40f461bf188697b945949d8c449fd8e32e (patch)
tree0832f2afe841888d899671cc9883b2577ddd4201
parenteeb7218b562bb2c9490cfc4526d8d4e0749efed2 (diff)
OMAP DSS: allow discovery of default display
Enable code outside of DSS core to find out the default display that was passed to the kernel Signed-off-by: Andy Doan <andy.doan@linaro.org> Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--drivers/video/omap2/dss/core.c5
-rw-r--r--include/video/omapdss.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 14004536edb0..22a7f4ebec88 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -57,6 +57,11 @@ module_param_named(debug, dss_debug, bool, 0644);
static int omap_dss_register_device(struct omap_dss_device *);
static void omap_dss_unregister_device(struct omap_dss_device *);
+const char* omap_dss_get_def_disp()
+{
+ return def_disp_name;
+}
+
/* REGULATORS */
struct regulator *dss_get_vdds_dsi(void)
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 7b43798c298b..e7d769121068 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -584,6 +584,7 @@ struct omap_dss_driver {
int omap_dss_register_driver(struct omap_dss_driver *);
void omap_dss_unregister_driver(struct omap_dss_driver *);
+const char* omap_dss_get_def_disp(void);
void omap_dss_get_device(struct omap_dss_device *dssdev);
void omap_dss_put_device(struct omap_dss_device *dssdev);