diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2012-03-15 14:00:23 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-04-23 03:48:07 -0400 |
commit | 4b6430fc98cfe051eab69f4696a608bba14ebd6c (patch) | |
tree | 3af96f2ef29fba9c7942228f6b29971044edfa7a /drivers/video/omap2/dss/display.c | |
parent | f3fb3bbc7f71d573be40213af4a90751a81b2379 (diff) |
OMAPDSS: provide default get_timings function for panels
With this we can eliminate some duplicate code in panel drivers.
Also lgphilips-lb035q02, nec-nl8048hl11-01b, picodlp and
tpo-td043mtea1 gain support of reading timings over sysfs.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/display.c')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index 4424c198dbcd..e688d10f061a 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
@@ -308,6 +308,13 @@ int omapdss_default_get_recommended_bpp(struct omap_dss_device *dssdev) | |||
308 | } | 308 | } |
309 | EXPORT_SYMBOL(omapdss_default_get_recommended_bpp); | 309 | EXPORT_SYMBOL(omapdss_default_get_recommended_bpp); |
310 | 310 | ||
311 | void omapdss_default_get_timings(struct omap_dss_device *dssdev, | ||
312 | struct omap_video_timings *timings) | ||
313 | { | ||
314 | *timings = dssdev->panel.timings; | ||
315 | } | ||
316 | EXPORT_SYMBOL(omapdss_default_get_timings); | ||
317 | |||
311 | /* Checks if replication logic should be used. Only use for active matrix, | 318 | /* Checks if replication logic should be used. Only use for active matrix, |
312 | * when overlay is in RGB12U or RGB16 mode, and LCD interface is | 319 | * when overlay is in RGB12U or RGB16 mode, and LCD interface is |
313 | * 18bpp or 24bpp */ | 320 | * 18bpp or 24bpp */ |