Commit 26c91a38 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen

drm/omap: Don't store video mode internally for external encoders

The omap_dss_device .set_timings() operation for external encoders
stores the video mode in the device data structure. That mode is then
never used again. Drop it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 138fe53e
...@@ -25,8 +25,6 @@ struct panel_drv_data { ...@@ -25,8 +25,6 @@ struct panel_drv_data {
struct omap_dss_device dssdev; struct omap_dss_device dssdev;
struct gpio_desc *enable_gpio; struct gpio_desc *enable_gpio;
struct videomode vm;
}; };
#define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
...@@ -90,13 +88,10 @@ static void opa362_disable(struct omap_dss_device *dssdev) ...@@ -90,13 +88,10 @@ static void opa362_disable(struct omap_dss_device *dssdev)
static void opa362_set_timings(struct omap_dss_device *dssdev, static void opa362_set_timings(struct omap_dss_device *dssdev,
const struct videomode *vm) const struct videomode *vm)
{ {
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *src = dssdev->src; struct omap_dss_device *src = dssdev->src;
dev_dbg(dssdev->dev, "set_timings\n"); dev_dbg(dssdev->dev, "set_timings\n");
ddata->vm = *vm;
src->ops->set_timings(src, vm); src->ops->set_timings(src, vm);
} }
......
...@@ -20,8 +20,6 @@ struct panel_drv_data { ...@@ -20,8 +20,6 @@ struct panel_drv_data {
struct omap_dss_device dssdev; struct omap_dss_device dssdev;
struct gpio_desc *pd_gpio; struct gpio_desc *pd_gpio;
struct videomode vm;
}; };
#define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
...@@ -87,11 +85,8 @@ static void tfp410_fix_timings(struct videomode *vm) ...@@ -87,11 +85,8 @@ static void tfp410_fix_timings(struct videomode *vm)
static void tfp410_set_timings(struct omap_dss_device *dssdev, static void tfp410_set_timings(struct omap_dss_device *dssdev,
const struct videomode *vm) const struct videomode *vm)
{ {
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *src = dssdev->src; struct omap_dss_device *src = dssdev->src;
ddata->vm = *vm;
src->ops->set_timings(src, vm); src->ops->set_timings(src, vm);
} }
......
...@@ -28,8 +28,6 @@ struct panel_drv_data { ...@@ -28,8 +28,6 @@ struct panel_drv_data {
struct gpio_desc *ct_cp_hpd_gpio; struct gpio_desc *ct_cp_hpd_gpio;
struct gpio_desc *ls_oe_gpio; struct gpio_desc *ls_oe_gpio;
struct gpio_desc *hpd_gpio; struct gpio_desc *hpd_gpio;
struct videomode vm;
}; };
#define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
...@@ -96,11 +94,8 @@ static void tpd_disable(struct omap_dss_device *dssdev) ...@@ -96,11 +94,8 @@ static void tpd_disable(struct omap_dss_device *dssdev)
static void tpd_set_timings(struct omap_dss_device *dssdev, static void tpd_set_timings(struct omap_dss_device *dssdev,
const struct videomode *vm) const struct videomode *vm)
{ {
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *src = dssdev->src; struct omap_dss_device *src = dssdev->src;
ddata->vm = *vm;
src->ops->set_timings(src, vm); src->ops->set_timings(src, 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