diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-16 08:45:26 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 07:00:48 -0400 |
commit | 2e7e3dc79492953c2c1192d8d4129ac86ee70aec (patch) | |
tree | 3d79db98c7697e285267248b404c4e05e03835d4 /include/video/omapdss.h | |
parent | 7ae9a71e09d098deecce1140acf4f5e529211270 (diff) |
OMAPDSS: add panel list
We currently use the omapdss bus (which contains all the available
displays) to iterate the displays. As the omapdss bus is on its way out,
this needs to be changed.
Instead of using the dss bus to iterate displays, this patch adds our
own list of displays which we manage. The panels on the dss bus are
automatically added to this new list.
An "alias" field is also added to omap_dss_device. This field is
set to "display%d", the same way as omap_dss_device's dev name is set.
This alias is later used to keep backward compatibility, when the
embedded dev is no longer used.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video/omapdss.h')
-rw-r--r-- | include/video/omapdss.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 0324c7b8a3e0..ee1645336fc4 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -598,6 +598,11 @@ struct omap_dss_output { | |||
598 | struct omap_dss_device { | 598 | struct omap_dss_device { |
599 | struct device dev; | 599 | struct device dev; |
600 | 600 | ||
601 | struct list_head panel_list; | ||
602 | |||
603 | /* alias in the form of "display%d" */ | ||
604 | char alias[16]; | ||
605 | |||
601 | enum omap_display_type type; | 606 | enum omap_display_type type; |
602 | 607 | ||
603 | /* obsolete, to be removed */ | 608 | /* obsolete, to be removed */ |
@@ -759,6 +764,9 @@ bool omapdss_is_initialized(void); | |||
759 | int omap_dss_register_driver(struct omap_dss_driver *); | 764 | int omap_dss_register_driver(struct omap_dss_driver *); |
760 | void omap_dss_unregister_driver(struct omap_dss_driver *); | 765 | void omap_dss_unregister_driver(struct omap_dss_driver *); |
761 | 766 | ||
767 | int omapdss_register_display(struct omap_dss_device *dssdev); | ||
768 | void omapdss_unregister_display(struct omap_dss_device *dssdev); | ||
769 | |||
762 | void omap_dss_get_device(struct omap_dss_device *dssdev); | 770 | void omap_dss_get_device(struct omap_dss_device *dssdev); |
763 | void omap_dss_put_device(struct omap_dss_device *dssdev); | 771 | void omap_dss_put_device(struct omap_dss_device *dssdev); |
764 | #define for_each_dss_dev(d) while ((d = omap_dss_get_next_device(d)) != NULL) | 772 | #define for_each_dss_dev(d) while ((d = omap_dss_get_next_device(d)) != NULL) |