diff options
author | Archit Taneja <archit@ti.com> | 2012-08-08 04:59:48 -0400 |
---|---|---|
committer | Archit Taneja <archit@ti.com> | 2012-08-13 06:14:39 -0400 |
commit | bdcae3cc39e8232eca81504a2ff9c60f4cc8f22d (patch) | |
tree | e48c207700a34d269cfab349e7ff30ab51aaf2b5 /drivers | |
parent | c499144c3b69a657b5dfd707b35871e066fabd3a (diff) |
OMAPDSS: DPI displays: Take care of panel timings in the driver itself
The timings maintained in omap_dss_device(dssdev->panel.timings) should be
maintained by the panel driver itself. It's the panel drivers responsibility
to update it if a new set of timings is to be configured. The DPI interface
driver shouldn't be responsible of updating the panel timings, it's responsible
of maintianing it's own copy of timings.
Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/displays/panel-generic-dpi.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/displays/panel-tfp410.c | 1 | ||||
-rw-r--r-- | drivers/video/omap2/displays/panel-tpo-td043mtea1.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c index 8d4e102bb0e..a07e18c8f71 100644 --- a/drivers/video/omap2/displays/panel-generic-dpi.c +++ b/drivers/video/omap2/displays/panel-generic-dpi.c | |||
@@ -730,6 +730,8 @@ static void generic_dpi_panel_set_timings(struct omap_dss_device *dssdev, | |||
730 | 730 | ||
731 | omapdss_dpi_set_timings(dssdev, timings); | 731 | omapdss_dpi_set_timings(dssdev, timings); |
732 | 732 | ||
733 | dssdev->panel.timings = *timings; | ||
734 | |||
733 | mutex_unlock(&drv_data->lock); | 735 | mutex_unlock(&drv_data->lock); |
734 | } | 736 | } |
735 | 737 | ||
diff --git a/drivers/video/omap2/displays/panel-tfp410.c b/drivers/video/omap2/displays/panel-tfp410.c index c6f950321f2..9397236084b 100644 --- a/drivers/video/omap2/displays/panel-tfp410.c +++ b/drivers/video/omap2/displays/panel-tfp410.c | |||
@@ -234,6 +234,7 @@ static void tfp410_set_timings(struct omap_dss_device *dssdev, | |||
234 | 234 | ||
235 | mutex_lock(&ddata->lock); | 235 | mutex_lock(&ddata->lock); |
236 | omapdss_dpi_set_timings(dssdev, timings); | 236 | omapdss_dpi_set_timings(dssdev, timings); |
237 | dssdev->panel.timings = *timings; | ||
237 | mutex_unlock(&ddata->lock); | 238 | mutex_unlock(&ddata->lock); |
238 | } | 239 | } |
239 | 240 | ||
diff --git a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c index ecb163e4cfa..3f47f5f594b 100644 --- a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c | |||
@@ -483,6 +483,8 @@ static void tpo_td043_set_timings(struct omap_dss_device *dssdev, | |||
483 | struct omap_video_timings *timings) | 483 | struct omap_video_timings *timings) |
484 | { | 484 | { |
485 | omapdss_dpi_set_timings(dssdev, timings); | 485 | omapdss_dpi_set_timings(dssdev, timings); |
486 | |||
487 | dssdev->panel.timings = *timings; | ||
486 | } | 488 | } |
487 | 489 | ||
488 | static int tpo_td043_check_timings(struct omap_dss_device *dssdev, | 490 | static int tpo_td043_check_timings(struct omap_dss_device *dssdev, |
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c index 97c7a10bc9f..d561a9198a8 100644 --- a/drivers/video/omap2/dss/dpi.c +++ b/drivers/video/omap2/dss/dpi.c | |||
@@ -283,7 +283,6 @@ void omapdss_dpi_set_timings(struct omap_dss_device *dssdev, | |||
283 | mutex_lock(&dpi.lock); | 283 | mutex_lock(&dpi.lock); |
284 | 284 | ||
285 | dpi.timings = *timings; | 285 | dpi.timings = *timings; |
286 | dssdev->panel.timings = *timings; | ||
287 | 286 | ||
288 | if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) { | 287 | if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE) { |
289 | r = dispc_runtime_get(); | 288 | r = dispc_runtime_get(); |