drm/omap: remove recommended_bpp
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 12 May 2017 09:48:33 +0000 (12:48 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:17 +0000 (10:57 +0300)
recommended_bpp hasn't been used for ages, remove the code.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
drivers/gpu/drm/omapdrm/dss/display.c
drivers/gpu/drm/omapdrm/dss/omapdss.h

index ac5800c72cb48ee36a59bda5d76b356cf0409296..1fbbe4c4bce6d12695da549c598129a8b5aa238e 100644 (file)
@@ -1117,7 +1117,6 @@ static struct omap_dss_driver dsicm_ops = {
        .sync           = dsicm_sync,
 
        .get_resolution = dsicm_get_resolution,
-       .get_recommended_bpp = omapdss_default_get_recommended_bpp,
 
        .enable_te      = dsicm_enable_te,
        .get_te         = dsicm_get_te,
index ac2e297e7e1b9d84cd1898cbc18bda292bf7dba4..10c36539d8ee39a8910cdf158d3a83be7981c3d0 100644 (file)
@@ -38,37 +38,6 @@ void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
 }
 EXPORT_SYMBOL(omapdss_default_get_resolution);
 
-int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev)
-{
-       switch (dssdev->type) {
-       case OMAP_DISPLAY_TYPE_DPI:
-               if (dssdev->phy.dpi.data_lines == 24)
-                       return 24;
-               else
-                       return 16;
-
-       case OMAP_DISPLAY_TYPE_DBI:
-               if (dssdev->ctrl.pixel_size == 24)
-                       return 24;
-               else
-                       return 16;
-       case OMAP_DISPLAY_TYPE_DSI:
-               if (dssdev->panel.dsi_pix_fmt == OMAP_DSS_DSI_FMT_RGB565)
-                       return 16;
-               else
-                       return 24;
-       case OMAP_DISPLAY_TYPE_VENC:
-       case OMAP_DISPLAY_TYPE_SDI:
-       case OMAP_DISPLAY_TYPE_HDMI:
-       case OMAP_DISPLAY_TYPE_DVI:
-               return 24;
-       default:
-               BUG();
-               return 0;
-       }
-}
-EXPORT_SYMBOL(omapdss_default_get_recommended_bpp);
-
 void omapdss_default_get_timings(struct omap_dss_device *dssdev,
                                 struct videomode *vm)
 {
@@ -104,8 +73,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev)
 
        if (drv && drv->get_resolution == NULL)
                drv->get_resolution = omapdss_default_get_resolution;
-       if (drv && drv->get_recommended_bpp == NULL)
-               drv->get_recommended_bpp = omapdss_default_get_recommended_bpp;
        if (drv && drv->get_timings == NULL)
                drv->get_timings = omapdss_default_get_timings;
 
index abdb332019e95b866f75d90d76eb86409418d16f..47f0205809a15a72644cb64c19db75b416cc62ff 100644 (file)
@@ -730,7 +730,6 @@ struct omap_dss_driver {
                        u16 *xres, u16 *yres);
        void (*get_dimensions)(struct omap_dss_device *dssdev,
                        u32 *width, u32 *height);
-       int (*get_recommended_bpp)(struct omap_dss_device *dssdev);
 
        int (*check_timings)(struct omap_dss_device *dssdev,
                             struct videomode *vm);
@@ -792,7 +791,6 @@ struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_devic
 
 void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
                u16 *xres, u16 *yres);
-int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev);
 void omapdss_default_get_timings(struct omap_dss_device *dssdev,
                                 struct videomode *vm);