drm/omap: dsi: drop unused get_te()
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Dec 2020 10:45:51 +0000 (12:45 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Dec 2020 14:08:21 +0000 (16:08 +0200)
The get_te() callback is not used, so we can drop the
custom API.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-19-tomi.valkeinen@ti.com
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
drivers/gpu/drm/omapdrm/dss/omapdss.h

index 870271fc04981300a92b0f2aadf2f86c37dc1fce..498efe3d7eb16ecb7a44c5ff5e5cb0eb8a74c808 100644 (file)
@@ -918,18 +918,6 @@ err:
        return r;
 }
 
-static int dsicm_get_te(struct omap_dss_device *dssdev)
-{
-       struct panel_drv_data *ddata = to_panel_data(dssdev);
-       int r;
-
-       mutex_lock(&ddata->lock);
-       r = ddata->te_enabled;
-       mutex_unlock(&ddata->lock);
-
-       return r;
-}
-
 static void dsicm_ulps_work(struct work_struct *work)
 {
        struct panel_drv_data *ddata = container_of(work, struct panel_drv_data,
@@ -1001,7 +989,6 @@ static const struct omap_dss_driver dsicm_dss_driver = {
        .sync           = dsicm_sync,
 
        .enable_te      = dsicm_enable_te,
-       .get_te         = dsicm_get_te,
 };
 
 static int dsicm_probe_of(struct mipi_dsi_device *dsi)
index 1bc2d5e3104121ff544b6a0904c5c7b765d819ac..c97b1da3ede991544470b3fe63babb4bd62eede3 100644 (file)
@@ -391,7 +391,6 @@ struct omap_dss_driver {
        int (*sync)(struct omap_dss_device *dssdev);
 
        int (*enable_te)(struct omap_dss_device *dssdev, bool enable);
-       int (*get_te)(struct omap_dss_device *dssdev);
 };
 
 struct dss_device *omapdss_get_dss(void);