Commit 92ce521a authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen

drm/omap: dss: Rename for_each_dss_dev macro to for_each_dss_display

The macro iterates over displays only, rename it accordingly.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent de57e9db
...@@ -1557,7 +1557,7 @@ static void dss_shutdown(struct platform_device *pdev) ...@@ -1557,7 +1557,7 @@ static void dss_shutdown(struct platform_device *pdev)
DSSDBG("shutdown\n"); DSSDBG("shutdown\n");
for_each_dss_dev(dssdev) { for_each_dss_display(dssdev) {
if (!dssdev->driver) if (!dssdev->driver)
continue; continue;
......
...@@ -501,7 +501,7 @@ void omapdss_device_disconnect(struct omap_dss_device *src, ...@@ -501,7 +501,7 @@ void omapdss_device_disconnect(struct omap_dss_device *src,
struct omap_dss_device *omap_dss_get_device(struct omap_dss_device *dssdev); struct omap_dss_device *omap_dss_get_device(struct omap_dss_device *dssdev);
void omap_dss_put_device(struct omap_dss_device *dssdev); void omap_dss_put_device(struct omap_dss_device *dssdev);
#define for_each_dss_dev(d) while ((d = omap_dss_get_next_device(d)) != NULL) #define for_each_dss_display(d) while ((d = omap_dss_get_next_device(d)) != NULL)
struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from); struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from);
int omap_dss_get_num_overlay_managers(void); int omap_dss_get_num_overlay_managers(void);
......
...@@ -188,7 +188,7 @@ static int omap_connect_dssdevs(struct drm_device *ddev) ...@@ -188,7 +188,7 @@ static int omap_connect_dssdevs(struct drm_device *ddev)
if (!omapdss_stack_is_ready()) if (!omapdss_stack_is_ready())
return -EPROBE_DEFER; return -EPROBE_DEFER;
for_each_dss_dev(dssdev) { for_each_dss_display(dssdev) {
r = omapdss_device_connect(dssdev, NULL); r = omapdss_device_connect(dssdev, NULL);
if (r == -EPROBE_DEFER) { if (r == -EPROBE_DEFER) {
omap_dss_put_device(dssdev); omap_dss_put_device(dssdev);
...@@ -200,7 +200,7 @@ static int omap_connect_dssdevs(struct drm_device *ddev) ...@@ -200,7 +200,7 @@ static int omap_connect_dssdevs(struct drm_device *ddev)
omap_dss_get_device(dssdev); omap_dss_get_device(dssdev);
priv->dssdevs[priv->num_dssdevs++] = dssdev; priv->dssdevs[priv->num_dssdevs++] = dssdev;
if (priv->num_dssdevs == ARRAY_SIZE(priv->dssdevs)) { if (priv->num_dssdevs == ARRAY_SIZE(priv->dssdevs)) {
/* To balance the 'for_each_dss_dev' loop */ /* To balance the 'for_each_dss_display' loop */
omap_dss_put_device(dssdev); omap_dss_put_device(dssdev);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment