diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-02-28 17:30:30 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 16:13:26 +0300 |
commit | fb5571717c24c264518aaaf1ab4ec4df73e4cebd (patch) | |
tree | bc524604e9c431eebee1ba5919f872744083ff7a /drivers/gpu/drm/omapdrm/dss/omapdss.h | |
parent | 73fc0ac4a69506ead7cf0c0ad0ef79f283766f25 (diff) | |
download | kernel_replicant_linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.tar.gz kernel_replicant_linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.tar.bz2 kernel_replicant_linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.zip |
drm/omap: dss: Move src and dst check and set to connection handlers
The encoders duplicate the same omap_dss_device src and dst fields set
and checks in their connect and disconnect handlers. Move the code to
the connect and disconnect wrappers.
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/omapdss.h')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/omapdss.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h index 58bd6948bcde..0033adf534d3 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h @@ -391,6 +391,9 @@ struct omap_dss_device { struct module *owner; + struct omap_dss_device *src; + struct omap_dss_device *dst; + struct list_head list; struct list_head panel_list; @@ -409,8 +412,6 @@ struct omap_dss_device { enum omap_display_caps caps; - struct omap_dss_device *src; - enum omap_dss_display_state state; /* OMAP DSS output specific fields */ @@ -426,9 +427,6 @@ struct omap_dss_device { /* the port number in the DT node */ int port_num; - - /* dynamic fields */ - struct omap_dss_device *dst; }; struct omap_dss_driver { |