Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 805cc2d1 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAPDSS: add omap_dss_find_output()



Add a support function to find a DSS output by given name. This is used
in later patches to link the panels to DSS outputs.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent c6ca5b22
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -115,6 +115,19 @@ struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id)
}
}
EXPORT_SYMBOL(omap_dss_get_output);
EXPORT_SYMBOL(omap_dss_get_output);


struct omap_dss_output *omap_dss_find_output(const char *name)
{
	struct omap_dss_output *out;

	list_for_each_entry(out, &output_list, list) {
		if (strcmp(out->name, name) == 0)
			return out;
	}

	return NULL;
}
EXPORT_SYMBOL(omap_dss_find_output);

static const struct dss_mgr_ops *dss_mgr_ops;
static const struct dss_mgr_ops *dss_mgr_ops;


int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops)
int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops)
+1 −0
Original line number Original line Diff line number Diff line
@@ -780,6 +780,7 @@ int omap_dss_get_num_overlays(void);
struct omap_overlay *omap_dss_get_overlay(int num);
struct omap_overlay *omap_dss_get_overlay(int num);


struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id);
struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id);
struct omap_dss_output *omap_dss_find_output(const char *name);
int omapdss_output_set_device(struct omap_dss_output *out,
int omapdss_output_set_device(struct omap_dss_output *out,
		struct omap_dss_device *dssdev);
		struct omap_dss_device *dssdev);
int omapdss_output_unset_device(struct omap_dss_output *out);
int omapdss_output_unset_device(struct omap_dss_output *out);