diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-03-04 16:55:56 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 09:13:27 -0400 |
commit | a48bc6ac2c6cd85bc079fc859ab14ea844e812cd (patch) | |
tree | f0b6acb223de28f74a0e54f6ae6751d88c16ae67 /drivers/gpu/drm/omapdrm/dss/dsi.c | |
parent | bea131966ffab271e8c3b33e37244ad340fb7876 (diff) |
drm/omap: dss: Remove duplicated parameter to dss_mgr_(dis)connect()
The dss_mgr_connect() and dss_mgr_disconnect() functions take two
omap_dss_device pointers as parameters, which are always set to the same
value by all callers. Remove the duplicated pointer.
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/dsi.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dsi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index 631bf5805649..d5ae01529901 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c | |||
@@ -4915,7 +4915,7 @@ static int dsi_connect(struct omap_dss_device *dssdev, | |||
4915 | if (r) | 4915 | if (r) |
4916 | return r; | 4916 | return r; |
4917 | 4917 | ||
4918 | r = dss_mgr_connect(&dsi->output, dssdev); | 4918 | r = dss_mgr_connect(dssdev); |
4919 | if (r) | 4919 | if (r) |
4920 | return r; | 4920 | return r; |
4921 | 4921 | ||
@@ -4923,7 +4923,7 @@ static int dsi_connect(struct omap_dss_device *dssdev, | |||
4923 | if (r) { | 4923 | if (r) { |
4924 | DSSERR("failed to connect output to new device: %s\n", | 4924 | DSSERR("failed to connect output to new device: %s\n", |
4925 | dssdev->name); | 4925 | dssdev->name); |
4926 | dss_mgr_disconnect(&dsi->output, dssdev); | 4926 | dss_mgr_disconnect(dssdev); |
4927 | return r; | 4927 | return r; |
4928 | } | 4928 | } |
4929 | 4929 | ||
@@ -4933,11 +4933,9 @@ static int dsi_connect(struct omap_dss_device *dssdev, | |||
4933 | static void dsi_disconnect(struct omap_dss_device *dssdev, | 4933 | static void dsi_disconnect(struct omap_dss_device *dssdev, |
4934 | struct omap_dss_device *dst) | 4934 | struct omap_dss_device *dst) |
4935 | { | 4935 | { |
4936 | struct dsi_data *dsi = to_dsi_data(dssdev); | ||
4937 | |||
4938 | omapdss_output_unset_device(dssdev); | 4936 | omapdss_output_unset_device(dssdev); |
4939 | 4937 | ||
4940 | dss_mgr_disconnect(&dsi->output, dssdev); | 4938 | dss_mgr_disconnect(dssdev); |
4941 | } | 4939 | } |
4942 | 4940 | ||
4943 | static const struct omap_dss_device_ops dsi_ops = { | 4941 | static const struct omap_dss_device_ops dsi_ops = { |