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
@@ -20,8 +20,6 @@ struct panel_drv_data {
|
||||
struct omap_dss_device dssdev;
|
||||
|
||||
struct gpio_desc *pd_gpio;
|
||||
|
||||
struct videomode vm;
|
||||
};
|
||||
|
||||
#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)
|
||||
static void tfp410_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;
|
||||
|
||||
ddata->vm = *vm;
|
||||
|
||||
src->ops->set_timings(src, vm);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user