drm/omap: remove legacy get_resolution
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 12 May 2017 09:56:57 +0000 (12:56 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:19 +0000 (10:57 +0300)
get_resolution is not used, remove it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 files changed:
drivers/gpu/drm/omapdrm/displays/connector-analog-tv.c
drivers/gpu/drm/omapdrm/displays/connector-dvi.c
drivers/gpu/drm/omapdrm/displays/connector-hdmi.c
drivers/gpu/drm/omapdrm/displays/panel-dpi.c
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
drivers/gpu/drm/omapdrm/displays/panel-lgphilips-lb035q02.c
drivers/gpu/drm/omapdrm/displays/panel-nec-nl8048hl11.c
drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c
drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
drivers/gpu/drm/omapdrm/dss/display.c
drivers/gpu/drm/omapdrm/dss/omapdss.h

index f25ad9fbc4b0e873d780870122b1b03e601bb743..e1fa143a5625b228a833e79e8b0042b421c5f7f1 100644 (file)
@@ -171,8 +171,6 @@ static struct omap_dss_driver tvc_driver = {
        .get_timings            = tvc_get_timings,
        .check_timings          = tvc_check_timings,
 
-       .get_resolution         = omapdss_default_get_resolution,
-
        .get_wss                = tvc_get_wss,
        .set_wss                = tvc_set_wss,
 };
index 8720b2dcb31677a30664d57cc9de8c4f8f902762..05fa24a518c87783b16e3faed17edb7167569760 100644 (file)
@@ -227,8 +227,6 @@ static struct omap_dss_driver dvic_driver = {
        .get_timings    = dvic_get_timings,
        .check_timings  = dvic_check_timings,
 
-       .get_resolution = omapdss_default_get_resolution,
-
        .read_edid      = dvic_read_edid,
        .detect         = dvic_detect,
 };
index 555e193c973290038199f36e79ed5d790d4abbd0..79cb69f1acf5c68ceedc51623cfc20f58ca94cb9 100644 (file)
@@ -195,8 +195,6 @@ static struct omap_dss_driver hdmic_driver = {
        .get_timings            = hdmic_get_timings,
        .check_timings          = hdmic_check_timings,
 
-       .get_resolution         = omapdss_default_get_resolution,
-
        .read_edid              = hdmic_read_edid,
        .detect                 = hdmic_detect,
        .set_hdmi_mode          = hdmic_set_hdmi_mode,
index 091f73246122d12ae75f38c726f927d0415859ea..6468a765f3d17dc5f4eeb83d54d8c52494105874 100644 (file)
@@ -158,8 +158,6 @@ static struct omap_dss_driver panel_dpi_ops = {
        .set_timings    = panel_dpi_set_timings,
        .get_timings    = panel_dpi_get_timings,
        .check_timings  = panel_dpi_check_timings,
-
-       .get_resolution = omapdss_default_get_resolution,
 };
 
 static int panel_dpi_probe_of(struct platform_device *pdev)
index 1fbbe4c4bce6d12695da549c598129a8b5aa238e..76787a75a4dcc691340c07e27761b241b8e34eef 100644 (file)
@@ -379,13 +379,6 @@ static const struct backlight_ops dsicm_bl_ops = {
        .update_status  = dsicm_bl_update_status,
 };
 
-static void dsicm_get_resolution(struct omap_dss_device *dssdev,
-               u16 *xres, u16 *yres)
-{
-       *xres = dssdev->panel.vm.hactive;
-       *yres = dssdev->panel.vm.vactive;
-}
-
 static ssize_t dsicm_num_errors_show(struct device *dev,
                struct device_attribute *attr, char *buf)
 {
@@ -1116,8 +1109,6 @@ static struct omap_dss_driver dsicm_ops = {
        .update         = dsicm_update,
        .sync           = dsicm_sync,
 
-       .get_resolution = dsicm_get_resolution,
-
        .enable_te      = dsicm_enable_te,
        .get_te         = dsicm_get_te,
 
index 451e1608a1dbbd109f3203b71c8b148633fdef25..c90474afaebd278ef70a2f3a5cf4fab4edee20fa 100644 (file)
@@ -226,8 +226,6 @@ static struct omap_dss_driver lb035q02_ops = {
        .set_timings    = lb035q02_set_timings,
        .get_timings    = lb035q02_get_timings,
        .check_timings  = lb035q02_check_timings,
-
-       .get_resolution = omapdss_default_get_resolution,
 };
 
 static int lb035q02_probe_of(struct spi_device *spi)
index 95f6702a7b4ff7756fed560b979ddd6b4253c5ab..df8132d3b9c694da20924ead82e0e5232d3a87b9 100644 (file)
@@ -220,8 +220,6 @@ static struct omap_dss_driver nec_8048_ops = {
        .set_timings    = nec_8048_set_timings,
        .get_timings    = nec_8048_get_timings,
        .check_timings  = nec_8048_check_timings,
-
-       .get_resolution = omapdss_default_get_resolution,
 };
 
 static int nec_8048_probe_of(struct spi_device *spi)
index b38c3df0532f88b70f3405d36534ad71d6a854b2..98d170aecababf1c5166b8ea50f9948b37c9eee1 100644 (file)
@@ -190,8 +190,6 @@ static struct omap_dss_driver sharp_ls_ops = {
        .set_timings    = sharp_ls_set_timings,
        .get_timings    = sharp_ls_get_timings,
        .check_timings  = sharp_ls_check_timings,
-
-       .get_resolution = omapdss_default_get_resolution,
 };
 
 static  int sharp_ls_get_gpio_of(struct device *dev, int index, int val,
index 9037e1dc093e7ed6f7062f1734b8a4229770fcb1..346aefdb015fc9b009e9336bb983ae3544489795 100644 (file)
@@ -691,8 +691,6 @@ static struct omap_dss_driver acx565akm_ops = {
        .set_timings    = acx565akm_set_timings,
        .get_timings    = acx565akm_get_timings,
        .check_timings  = acx565akm_check_timings,
-
-       .get_resolution = omapdss_default_get_resolution,
 };
 
 static int acx565akm_probe_of(struct spi_device *spi)
index da5ea2c378da08d2140ad465b6b2a78000609ffb..20c6d8fe215a1d9bea70729288d2f54d74fe8661 100644 (file)
@@ -457,8 +457,6 @@ static struct omap_dss_driver tpo_td043_ops = {
 
        .set_mirror     = tpo_td043_set_hmirror,
        .get_mirror     = tpo_td043_get_hmirror,
-
-       .get_resolution = omapdss_default_get_resolution,
 };
 
 static int tpo_td043_probe_of(struct spi_device *spi)
index 10c36539d8ee39a8910cdf158d3a83be7981c3d0..42279933790efb861afae5b80149b652189d2188 100644 (file)
 
 #include "omapdss.h"
 
-void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
-                       u16 *xres, u16 *yres)
-{
-       *xres = dssdev->panel.vm.hactive;
-       *yres = dssdev->panel.vm.vactive;
-}
-EXPORT_SYMBOL(omapdss_default_get_resolution);
-
 void omapdss_default_get_timings(struct omap_dss_device *dssdev,
                                 struct videomode *vm)
 {
@@ -71,8 +63,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev)
        if (dssdev->name == NULL)
                dssdev->name = dssdev->alias;
 
-       if (drv && drv->get_resolution == NULL)
-               drv->get_resolution = omapdss_default_get_resolution;
        if (drv && drv->get_timings == NULL)
                drv->get_timings = omapdss_default_get_timings;
 
index 4909ea11cb718def57b018c2000a808580e95618..74408b0ece262a4572a554d2b4b1e53e367abe39 100644 (file)
@@ -688,9 +688,6 @@ struct omap_dss_driver {
                        void *buf, size_t size,
                        u16 x, u16 y, u16 w, u16 h);
 
-       void (*get_resolution)(struct omap_dss_device *dssdev,
-                       u16 *xres, u16 *yres);
-
        int (*check_timings)(struct omap_dss_device *dssdev,
                             struct videomode *vm);
        void (*set_timings)(struct omap_dss_device *dssdev,
@@ -749,8 +746,6 @@ int omapdss_output_unset_device(struct omap_dss_device *out);
 struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device *dssdev);
 struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_device *dssdev);
 
-void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
-               u16 *xres, u16 *yres);
 void omapdss_default_get_timings(struct omap_dss_device *dssdev,
                                 struct videomode *vm);