drm/omap: dss: Create global list of all omap_dss_device instances
The omap_dss_device instances are stored in two separate lists, depending on whether they are panels or outputs. Create a third list that stores all omap_dss_device instances to allow generic code to operate on all instances. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
7e7a0edecc
commit
6a7c5a2200
@@ -97,6 +97,7 @@ EXPORT_SYMBOL(omapdss_output_unset_device);
|
||||
int omapdss_register_output(struct omap_dss_device *out)
|
||||
{
|
||||
list_add_tail(&out->output_list, &output_list);
|
||||
omapdss_device_register(out);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(omapdss_register_output);
|
||||
@@ -104,6 +105,7 @@ EXPORT_SYMBOL(omapdss_register_output);
|
||||
void omapdss_unregister_output(struct omap_dss_device *out)
|
||||
{
|
||||
list_del(&out->output_list);
|
||||
omapdss_device_unregister(out);
|
||||
}
|
||||
EXPORT_SYMBOL(omapdss_unregister_output);
|
||||
|
||||
|
Reference in New Issue
Block a user