drm/omap: Replace struct omap_video_timings with videomode

omap_video_timings can be replaced with the generic videomode in omapdrm
and the omap_video_timings can be removed.

This patch will replace the omap_video_timings with videomode.
With the change we no longer need the functions to convert to/from
videomode and drm_display_mode to omap_video_timings, these can be removed
as well.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Peter Ujfalusi
2016-09-22 14:07:03 +03:00
committed by Tomi Valkeinen
parent 7aa91e76ae
commit 4520ff28aa
34 changed files with 178 additions and 317 deletions

View File

@@ -27,7 +27,7 @@ struct panel_drv_data {
struct gpio_desc *enable_gpio;
struct omap_video_timings timings;
struct videomode timings;
};
#define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
@@ -123,7 +123,7 @@ static void opa362_disable(struct omap_dss_device *dssdev)
}
static void opa362_set_timings(struct omap_dss_device *dssdev,
struct omap_video_timings *timings)
struct videomode *timings)
{
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *in = ddata->in;
@@ -137,7 +137,7 @@ static void opa362_set_timings(struct omap_dss_device *dssdev,
}
static void opa362_get_timings(struct omap_dss_device *dssdev,
struct omap_video_timings *timings)
struct videomode *timings)
{
struct panel_drv_data *ddata = to_panel_data(dssdev);
@@ -147,7 +147,7 @@ static void opa362_get_timings(struct omap_dss_device *dssdev,
}
static int opa362_check_timings(struct omap_dss_device *dssdev,
struct omap_video_timings *timings)
struct videomode *timings)
{
struct panel_drv_data *ddata = to_panel_data(dssdev);
struct omap_dss_device *in = ddata->in;