drm/omap: drop dssdev display field
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Dec 2020 10:46:19 +0000 (12:46 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Dec 2020 14:08:26 +0000 (16:08 +0200)
All displays are now using a drm_panel or a drm_bridge that models the
connector instead of dssdev, so this field is always 0 and can be
dropped.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-47-tomi.valkeinen@ti.com
drivers/gpu/drm/omapdrm/dss/base.c
drivers/gpu/drm/omapdrm/dss/omapdss.h

index 332eb0d02c6d51c24d823083f7fce0ad7eee0a63..f4a9fcf66b94f9489649896b6e03342be1f6fc8d 100644 (file)
@@ -198,7 +198,7 @@ void omapdss_device_disconnect(struct omap_dss_device *src,
        }
 
        if (!dst->id && !omapdss_device_is_connected(dst)) {
-               WARN_ON(!dst->display);
+               WARN_ON(1);
                return;
        }
 
index 17cdfbbc7a169080cdb99c3f1e6d19a10b30aa48..1ac8f034c48cdfd48b1afa1797351fd611c8d6d1 100644 (file)
@@ -301,12 +301,6 @@ struct omap_dss_device {
         */
        enum omap_display_type type;
 
-       /*
-        * True if the device is a display (panel or connector) at the end of
-        * the pipeline, false otherwise.
-        */
-       bool display;
-
        const char *name;
 
        const struct omap_dss_device_ops *ops;