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: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
138fe53ef8
commit
26c91a3898
@@ -25,8 +25,6 @@ struct panel_drv_data {
|
||||
struct omap_dss_device dssdev;
|
||||
|
||||
struct gpio_desc *enable_gpio;
|
||||
|
||||
struct videomode vm;
|
||||
};
|
||||
|
||||
#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)
|
||||
static void opa362_set_timings(struct omap_dss_device *dssdev,
|
||||
const struct videomode *vm)
|
||||
{
|
||||
struct panel_drv_data *ddata = to_panel_data(dssdev);
|
||||
struct omap_dss_device *src = dssdev->src;
|
||||
|
||||
dev_dbg(dssdev->dev, "set_timings\n");
|
||||
|
||||
ddata->vm = *vm;
|
||||
|
||||
src->ops->set_timings(src, vm);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user