Commit d2935c1e authored by Tomi Valkeinen's avatar Tomi Valkeinen

drm/omap: remove legacy get_resolution

get_resolution is not used, remove it.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent fb251e34
...@@ -171,8 +171,6 @@ static struct omap_dss_driver tvc_driver = { ...@@ -171,8 +171,6 @@ static struct omap_dss_driver tvc_driver = {
.get_timings = tvc_get_timings, .get_timings = tvc_get_timings,
.check_timings = tvc_check_timings, .check_timings = tvc_check_timings,
.get_resolution = omapdss_default_get_resolution,
.get_wss = tvc_get_wss, .get_wss = tvc_get_wss,
.set_wss = tvc_set_wss, .set_wss = tvc_set_wss,
}; };
......
...@@ -227,8 +227,6 @@ static struct omap_dss_driver dvic_driver = { ...@@ -227,8 +227,6 @@ static struct omap_dss_driver dvic_driver = {
.get_timings = dvic_get_timings, .get_timings = dvic_get_timings,
.check_timings = dvic_check_timings, .check_timings = dvic_check_timings,
.get_resolution = omapdss_default_get_resolution,
.read_edid = dvic_read_edid, .read_edid = dvic_read_edid,
.detect = dvic_detect, .detect = dvic_detect,
}; };
......
...@@ -195,8 +195,6 @@ static struct omap_dss_driver hdmic_driver = { ...@@ -195,8 +195,6 @@ static struct omap_dss_driver hdmic_driver = {
.get_timings = hdmic_get_timings, .get_timings = hdmic_get_timings,
.check_timings = hdmic_check_timings, .check_timings = hdmic_check_timings,
.get_resolution = omapdss_default_get_resolution,
.read_edid = hdmic_read_edid, .read_edid = hdmic_read_edid,
.detect = hdmic_detect, .detect = hdmic_detect,
.set_hdmi_mode = hdmic_set_hdmi_mode, .set_hdmi_mode = hdmic_set_hdmi_mode,
......
...@@ -158,8 +158,6 @@ static struct omap_dss_driver panel_dpi_ops = { ...@@ -158,8 +158,6 @@ static struct omap_dss_driver panel_dpi_ops = {
.set_timings = panel_dpi_set_timings, .set_timings = panel_dpi_set_timings,
.get_timings = panel_dpi_get_timings, .get_timings = panel_dpi_get_timings,
.check_timings = panel_dpi_check_timings, .check_timings = panel_dpi_check_timings,
.get_resolution = omapdss_default_get_resolution,
}; };
static int panel_dpi_probe_of(struct platform_device *pdev) static int panel_dpi_probe_of(struct platform_device *pdev)
......
...@@ -379,13 +379,6 @@ static const struct backlight_ops dsicm_bl_ops = { ...@@ -379,13 +379,6 @@ static const struct backlight_ops dsicm_bl_ops = {
.update_status = dsicm_bl_update_status, .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, static ssize_t dsicm_num_errors_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
...@@ -1116,8 +1109,6 @@ static struct omap_dss_driver dsicm_ops = { ...@@ -1116,8 +1109,6 @@ static struct omap_dss_driver dsicm_ops = {
.update = dsicm_update, .update = dsicm_update,
.sync = dsicm_sync, .sync = dsicm_sync,
.get_resolution = dsicm_get_resolution,
.enable_te = dsicm_enable_te, .enable_te = dsicm_enable_te,
.get_te = dsicm_get_te, .get_te = dsicm_get_te,
......
...@@ -226,8 +226,6 @@ static struct omap_dss_driver lb035q02_ops = { ...@@ -226,8 +226,6 @@ static struct omap_dss_driver lb035q02_ops = {
.set_timings = lb035q02_set_timings, .set_timings = lb035q02_set_timings,
.get_timings = lb035q02_get_timings, .get_timings = lb035q02_get_timings,
.check_timings = lb035q02_check_timings, .check_timings = lb035q02_check_timings,
.get_resolution = omapdss_default_get_resolution,
}; };
static int lb035q02_probe_of(struct spi_device *spi) static int lb035q02_probe_of(struct spi_device *spi)
......
...@@ -220,8 +220,6 @@ static struct omap_dss_driver nec_8048_ops = { ...@@ -220,8 +220,6 @@ static struct omap_dss_driver nec_8048_ops = {
.set_timings = nec_8048_set_timings, .set_timings = nec_8048_set_timings,
.get_timings = nec_8048_get_timings, .get_timings = nec_8048_get_timings,
.check_timings = nec_8048_check_timings, .check_timings = nec_8048_check_timings,
.get_resolution = omapdss_default_get_resolution,
}; };
static int nec_8048_probe_of(struct spi_device *spi) static int nec_8048_probe_of(struct spi_device *spi)
......
...@@ -190,8 +190,6 @@ static struct omap_dss_driver sharp_ls_ops = { ...@@ -190,8 +190,6 @@ static struct omap_dss_driver sharp_ls_ops = {
.set_timings = sharp_ls_set_timings, .set_timings = sharp_ls_set_timings,
.get_timings = sharp_ls_get_timings, .get_timings = sharp_ls_get_timings,
.check_timings = sharp_ls_check_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, static int sharp_ls_get_gpio_of(struct device *dev, int index, int val,
......
...@@ -691,8 +691,6 @@ static struct omap_dss_driver acx565akm_ops = { ...@@ -691,8 +691,6 @@ static struct omap_dss_driver acx565akm_ops = {
.set_timings = acx565akm_set_timings, .set_timings = acx565akm_set_timings,
.get_timings = acx565akm_get_timings, .get_timings = acx565akm_get_timings,
.check_timings = acx565akm_check_timings, .check_timings = acx565akm_check_timings,
.get_resolution = omapdss_default_get_resolution,
}; };
static int acx565akm_probe_of(struct spi_device *spi) static int acx565akm_probe_of(struct spi_device *spi)
......
...@@ -457,8 +457,6 @@ static struct omap_dss_driver tpo_td043_ops = { ...@@ -457,8 +457,6 @@ static struct omap_dss_driver tpo_td043_ops = {
.set_mirror = tpo_td043_set_hmirror, .set_mirror = tpo_td043_set_hmirror,
.get_mirror = tpo_td043_get_hmirror, .get_mirror = tpo_td043_get_hmirror,
.get_resolution = omapdss_default_get_resolution,
}; };
static int tpo_td043_probe_of(struct spi_device *spi) static int tpo_td043_probe_of(struct spi_device *spi)
......
...@@ -30,14 +30,6 @@ ...@@ -30,14 +30,6 @@
#include "omapdss.h" #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, void omapdss_default_get_timings(struct omap_dss_device *dssdev,
struct videomode *vm) struct videomode *vm)
{ {
...@@ -71,8 +63,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev) ...@@ -71,8 +63,6 @@ int omapdss_register_display(struct omap_dss_device *dssdev)
if (dssdev->name == NULL) if (dssdev->name == NULL)
dssdev->name = dssdev->alias; dssdev->name = dssdev->alias;
if (drv && drv->get_resolution == NULL)
drv->get_resolution = omapdss_default_get_resolution;
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;
......
...@@ -688,9 +688,6 @@ struct omap_dss_driver { ...@@ -688,9 +688,6 @@ struct omap_dss_driver {
void *buf, size_t size, void *buf, size_t size,
u16 x, u16 y, u16 w, u16 h); 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, int (*check_timings)(struct omap_dss_device *dssdev,
struct videomode *vm); struct videomode *vm);
void (*set_timings)(struct omap_dss_device *dssdev, void (*set_timings)(struct omap_dss_device *dssdev,
...@@ -749,8 +746,6 @@ int omapdss_output_unset_device(struct omap_dss_device *out); ...@@ -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_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); 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, 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