drm/omap: dss: Rename for_each_dss_dev macro to for_each_dss_display
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 1 Mar 2018 23:40:48 +0000 (01:40 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:26 +0000 (16:13 +0300)
The macro iterates over displays only, rename it accordingly.

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>
drivers/gpu/drm/omapdrm/dss/dss.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/gpu/drm/omapdrm/omap_drv.c

index e93bed8edd7eceec2decd163bf27ae23be24a940..7245dd3423e6c3a9db0cc6613ea53cd683ea1352 100644 (file)
@@ -1557,7 +1557,7 @@ static void dss_shutdown(struct platform_device *pdev)
 
        DSSDBG("shutdown\n");
 
-       for_each_dss_dev(dssdev) {
+       for_each_dss_display(dssdev) {
                if (!dssdev->driver)
                        continue;
 
index 26abc09f3d4a6db2352dbccad0e633c27a1b8706..a6ddc881ea727c83688adff9627525e73622e340 100644 (file)
@@ -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);
 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);
 
 int omap_dss_get_num_overlay_managers(void);
index 6bc4b01c8e9c5b5a6b4cc41aeefdb022aeffed91..4f402eb8088d0cf6a0b129b8d7134156c1e3c10d 100644 (file)
@@ -188,7 +188,7 @@ static int omap_connect_dssdevs(struct drm_device *ddev)
        if (!omapdss_stack_is_ready())
                return -EPROBE_DEFER;
 
-       for_each_dss_dev(dssdev) {
+       for_each_dss_display(dssdev) {
                r = omapdss_device_connect(dssdev, NULL);
                if (r == -EPROBE_DEFER) {
                        omap_dss_put_device(dssdev);
@@ -200,7 +200,7 @@ static int omap_connect_dssdevs(struct drm_device *ddev)
                        omap_dss_get_device(dssdev);
                        priv->dssdevs[priv->num_dssdevs++] = dssdev;
                        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);
                                break;
                        }