]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/omap: dss: Remove duplicated parameter to dss_mgr_(dis)connect()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 4 Mar 2018 21:55:56 +0000 (23:55 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:27 +0000 (16:13 +0300)
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>
drivers/gpu/drm/omapdrm/dss/dpi.c
drivers/gpu/drm/omapdrm/dss/dsi.c
drivers/gpu/drm/omapdrm/dss/hdmi4.c
drivers/gpu/drm/omapdrm/dss/hdmi5.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/gpu/drm/omapdrm/dss/output.c
drivers/gpu/drm/omapdrm/dss/sdi.c
drivers/gpu/drm/omapdrm/dss/venc.c

index ae35aa1bf2c5d8eade3fd69ed26ccb982f253a40..533d87e11bf5c0da41f72bc3995e55814a918626 100644 (file)
@@ -652,7 +652,7 @@ static int dpi_connect(struct omap_dss_device *dssdev,
 
        dpi_init_pll(dpi);
 
-       r = dss_mgr_connect(&dpi->output, dssdev);
+       r = dss_mgr_connect(dssdev);
        if (r)
                return r;
 
@@ -660,7 +660,7 @@ static int dpi_connect(struct omap_dss_device *dssdev,
        if (r) {
                DSSERR("failed to connect output to new device: %s\n",
                                dst->name);
-               dss_mgr_disconnect(&dpi->output, dssdev);
+               dss_mgr_disconnect(dssdev);
                return r;
        }
 
@@ -670,11 +670,9 @@ static int dpi_connect(struct omap_dss_device *dssdev,
 static void dpi_disconnect(struct omap_dss_device *dssdev,
                struct omap_dss_device *dst)
 {
-       struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev);
-
        omapdss_output_unset_device(dssdev);
 
-       dss_mgr_disconnect(&dpi->output, dssdev);
+       dss_mgr_disconnect(dssdev);
 }
 
 static const struct omap_dss_device_ops dpi_ops = {
index 631bf58056496df05b7e7a4c658886d35456d4ad..d5ae01529901b56751084f635ea030e6dc911a5e 100644 (file)
@@ -4915,7 +4915,7 @@ static int dsi_connect(struct omap_dss_device *dssdev,
        if (r)
                return r;
 
-       r = dss_mgr_connect(&dsi->output, dssdev);
+       r = dss_mgr_connect(dssdev);
        if (r)
                return r;
 
@@ -4923,7 +4923,7 @@ static int dsi_connect(struct omap_dss_device *dssdev,
        if (r) {
                DSSERR("failed to connect output to new device: %s\n",
                                dssdev->name);
-               dss_mgr_disconnect(&dsi->output, dssdev);
+               dss_mgr_disconnect(dssdev);
                return r;
        }
 
@@ -4933,11 +4933,9 @@ static int dsi_connect(struct omap_dss_device *dssdev,
 static void dsi_disconnect(struct omap_dss_device *dssdev,
                struct omap_dss_device *dst)
 {
-       struct dsi_data *dsi = to_dsi_data(dssdev);
-
        omapdss_output_unset_device(dssdev);
 
-       dss_mgr_disconnect(&dsi->output, dssdev);
+       dss_mgr_disconnect(dssdev);
 }
 
 static const struct omap_dss_device_ops dsi_ops = {
index 118c015624b9518863707f87b111b5d564a264e6..5216c555474157235531e27e1985415e75957e7d 100644 (file)
@@ -458,7 +458,7 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
        if (r)
                return r;
 
-       r = dss_mgr_connect(&hdmi->output, dssdev);
+       r = dss_mgr_connect(dssdev);
        if (r)
                return r;
 
@@ -466,7 +466,7 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
        if (r) {
                DSSERR("failed to connect output to new device: %s\n",
                                dst->name);
-               dss_mgr_disconnect(&hdmi->output, dssdev);
+               dss_mgr_disconnect(dssdev);
                return r;
        }
 
@@ -476,11 +476,9 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
 static void hdmi_disconnect(struct omap_dss_device *dssdev,
                struct omap_dss_device *dst)
 {
-       struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
-
        omapdss_output_unset_device(dssdev);
 
-       dss_mgr_disconnect(&hdmi->output, dssdev);
+       dss_mgr_disconnect(dssdev);
 }
 
 static int hdmi_read_edid(struct omap_dss_device *dssdev,
index 7af60ca4e7b27466aea7a4c18338bb0d62b98991..363bc5843e0f1e3b1d841e3175cfa19d292afe7e 100644 (file)
@@ -461,7 +461,7 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
        if (r)
                return r;
 
-       r = dss_mgr_connect(&hdmi->output, dssdev);
+       r = dss_mgr_connect(dssdev);
        if (r)
                return r;
 
@@ -469,7 +469,7 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
        if (r) {
                DSSERR("failed to connect output to new device: %s\n",
                                dst->name);
-               dss_mgr_disconnect(&hdmi->output, dssdev);
+               dss_mgr_disconnect(dssdev);
                return r;
        }
 
@@ -479,11 +479,9 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
 static void hdmi_disconnect(struct omap_dss_device *dssdev,
                struct omap_dss_device *dst)
 {
-       struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
-
        omapdss_output_unset_device(dssdev);
 
-       dss_mgr_disconnect(&hdmi->output, dssdev);
+       dss_mgr_disconnect(dssdev);
 }
 
 static int hdmi_read_edid(struct omap_dss_device *dssdev,
index 1621d1eaed4252f1df91031f10f89ec5013373dd..5d03e9066a33a4161cfe3eda67565dd87123d518 100644 (file)
@@ -587,10 +587,8 @@ int dss_install_mgr_ops(struct dss_device *dss,
                        struct omap_drm_private *priv);
 void dss_uninstall_mgr_ops(struct dss_device *dss);
 
-int dss_mgr_connect(struct omap_dss_device *dssdev,
-                   struct omap_dss_device *dst);
-void dss_mgr_disconnect(struct omap_dss_device *dssdev,
-                       struct omap_dss_device *dst);
+int dss_mgr_connect(struct omap_dss_device *dssdev);
+void dss_mgr_disconnect(struct omap_dss_device *dssdev);
 void dss_mgr_set_timings(struct omap_dss_device *dssdev,
                const struct videomode *vm);
 void dss_mgr_set_lcd_config(struct omap_dss_device *dssdev,
index 191b2e801257e0af23dc051aaf36ac20e6f56ee0..2f7a019d059eb4224287344ca720e30a93b28f76 100644 (file)
@@ -109,18 +109,17 @@ void dss_uninstall_mgr_ops(struct dss_device *dss)
 }
 EXPORT_SYMBOL(dss_uninstall_mgr_ops);
 
-int dss_mgr_connect(struct omap_dss_device *dssdev, struct omap_dss_device *dst)
+int dss_mgr_connect(struct omap_dss_device *dssdev)
 {
        return dssdev->dss->mgr_ops->connect(dssdev->dss->mgr_ops_priv,
-                                            dssdev->dispc_channel, dst);
+                                            dssdev->dispc_channel, dssdev);
 }
 EXPORT_SYMBOL(dss_mgr_connect);
 
-void dss_mgr_disconnect(struct omap_dss_device *dssdev,
-                       struct omap_dss_device *dst)
+void dss_mgr_disconnect(struct omap_dss_device *dssdev)
 {
        dssdev->dss->mgr_ops->disconnect(dssdev->dss->mgr_ops_priv,
-                                        dssdev->dispc_channel, dst);
+                                        dssdev->dispc_channel, dssdev);
 }
 EXPORT_SYMBOL(dss_mgr_disconnect);
 
index fd7c11ebda5d676e6e23bb06c68e7723bd1ddf16..4b3a24d9806519abfeae0f5e870998d23e9dc629 100644 (file)
@@ -281,7 +281,7 @@ static int sdi_connect(struct omap_dss_device *dssdev,
        if (r)
                return r;
 
-       r = dss_mgr_connect(&sdi->output, dssdev);
+       r = dss_mgr_connect(dssdev);
        if (r)
                return r;
 
@@ -289,7 +289,7 @@ static int sdi_connect(struct omap_dss_device *dssdev,
        if (r) {
                DSSERR("failed to connect output to new device: %s\n",
                                dst->name);
-               dss_mgr_disconnect(&sdi->output, dssdev);
+               dss_mgr_disconnect(dssdev);
                return r;
        }
 
@@ -299,11 +299,9 @@ static int sdi_connect(struct omap_dss_device *dssdev,
 static void sdi_disconnect(struct omap_dss_device *dssdev,
                struct omap_dss_device *dst)
 {
-       struct sdi_device *sdi = dssdev_to_sdi(dssdev);
-
        omapdss_output_unset_device(dssdev);
 
-       dss_mgr_disconnect(&sdi->output, dssdev);
+       dss_mgr_disconnect(dssdev);
 }
 
 static const struct omap_dss_device_ops sdi_ops = {
index 298e86cc9e14df816d3449b126e30a88c09c2ba4..24a2b9a41864f4d00977233fcacd60f2e1de4656 100644 (file)
@@ -720,7 +720,7 @@ static int venc_connect(struct omap_dss_device *dssdev,
        if (r)
                return r;
 
-       r = dss_mgr_connect(&venc->output, dssdev);
+       r = dss_mgr_connect(dssdev);
        if (r)
                return r;
 
@@ -728,7 +728,7 @@ static int venc_connect(struct omap_dss_device *dssdev,
        if (r) {
                DSSERR("failed to connect output to new device: %s\n",
                                dst->name);
-               dss_mgr_disconnect(&venc->output, dssdev);
+               dss_mgr_disconnect(dssdev);
                return r;
        }
 
@@ -738,11 +738,9 @@ static int venc_connect(struct omap_dss_device *dssdev,
 static void venc_disconnect(struct omap_dss_device *dssdev,
                struct omap_dss_device *dst)
 {
-       struct venc_device *venc = dssdev_to_venc(dssdev);
-
        omapdss_output_unset_device(dssdev);
 
-       dss_mgr_disconnect(&venc->output, dssdev);
+       dss_mgr_disconnect(dssdev);
 }
 
 static const struct omap_dss_device_ops venc_ops = {