diff options
-rw-r--r-- | drivers/video/omap2/dss/output.c | 13 | ||||
-rw-r--r-- | include/video/omapdss.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/output.c b/drivers/video/omap2/dss/output.c index 3274628e0ea1..4d01001497f4 100644 --- a/drivers/video/omap2/dss/output.c +++ b/drivers/video/omap2/dss/output.c | |||
@@ -128,6 +128,19 @@ struct omap_dss_output *omap_dss_find_output(const char *name) | |||
128 | } | 128 | } |
129 | EXPORT_SYMBOL(omap_dss_find_output); | 129 | EXPORT_SYMBOL(omap_dss_find_output); |
130 | 130 | ||
131 | struct omap_dss_output *omap_dss_find_output_by_node(struct device_node *node) | ||
132 | { | ||
133 | struct omap_dss_output *out; | ||
134 | |||
135 | list_for_each_entry(out, &output_list, list) { | ||
136 | if (out->pdev->dev.of_node == node) | ||
137 | return out; | ||
138 | } | ||
139 | |||
140 | return NULL; | ||
141 | } | ||
142 | EXPORT_SYMBOL(omap_dss_find_output_by_node); | ||
143 | |||
131 | static const struct dss_mgr_ops *dss_mgr_ops; | 144 | static const struct dss_mgr_ops *dss_mgr_ops; |
132 | 145 | ||
133 | int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops) | 146 | int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops) |
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 0b4f718a63c8..25a944e080b4 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -781,6 +781,7 @@ struct omap_overlay *omap_dss_get_overlay(int num); | |||
781 | 781 | ||
782 | struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id); | 782 | struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id); |
783 | struct omap_dss_output *omap_dss_find_output(const char *name); | 783 | struct omap_dss_output *omap_dss_find_output(const char *name); |
784 | struct omap_dss_output *omap_dss_find_output_by_node(struct device_node *node); | ||
784 | int omapdss_output_set_device(struct omap_dss_output *out, | 785 | int omapdss_output_set_device(struct omap_dss_output *out, |
785 | struct omap_dss_device *dssdev); | 786 | struct omap_dss_device *dssdev); |
786 | int omapdss_output_unset_device(struct omap_dss_output *out); | 787 | int omapdss_output_unset_device(struct omap_dss_output *out); |