Commit e0eb2acb authored by Tomi Valkeinen's avatar Tomi Valkeinen

drm/omap: remove recommended_bpp

recommended_bpp hasn't been used for ages, remove the code.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent f2214bc8
...@@ -1117,7 +1117,6 @@ static struct omap_dss_driver dsicm_ops = { ...@@ -1117,7 +1117,6 @@ static struct omap_dss_driver dsicm_ops = {
.sync = dsicm_sync, .sync = dsicm_sync,
.get_resolution = dsicm_get_resolution, .get_resolution = dsicm_get_resolution,
.get_recommended_bpp = omapdss_default_get_recommended_bpp,
.enable_te = dsicm_enable_te, .enable_te = dsicm_enable_te,
.get_te = dsicm_get_te, .get_te = dsicm_get_te,
......
...@@ -38,37 +38,6 @@ void omapdss_default_get_resolution(struct omap_dss_device *dssdev, ...@@ -38,37 +38,6 @@ void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
} }
EXPORT_SYMBOL(omapdss_default_get_resolution); 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, void omapdss_default_get_timings(struct omap_dss_device *dssdev,
struct videomode *vm) struct videomode *vm)
{ {
...@@ -104,8 +73,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev) ...@@ -104,8 +73,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev)
if (drv && drv->get_resolution == NULL) if (drv && drv->get_resolution == NULL)
drv->get_resolution = omapdss_default_get_resolution; 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) if (drv && drv->get_timings == NULL)
drv->get_timings = omapdss_default_get_timings; drv->get_timings = omapdss_default_get_timings;
......
...@@ -730,7 +730,6 @@ struct omap_dss_driver { ...@@ -730,7 +730,6 @@ struct omap_dss_driver {
u16 *xres, u16 *yres); u16 *xres, u16 *yres);
void (*get_dimensions)(struct omap_dss_device *dssdev, void (*get_dimensions)(struct omap_dss_device *dssdev,
u32 *width, u32 *height); u32 *width, u32 *height);
int (*get_recommended_bpp)(struct omap_dss_device *dssdev);
int (*check_timings)(struct omap_dss_device *dssdev, int (*check_timings)(struct omap_dss_device *dssdev,
struct videomode *vm); struct videomode *vm);
...@@ -792,7 +791,6 @@ struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_devic ...@@ -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, void omapdss_default_get_resolution(struct omap_dss_device *dssdev,
u16 *xres, u16 *yres); 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, void omapdss_default_get_timings(struct omap_dss_device *dssdev,
struct videomode *vm); struct videomode *vm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment