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/displays/panel-n8x0.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/displays/panel-n8x0.c')
-rw-r--r-- | drivers/video/omap2/displays/panel-n8x0.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/video/omap2/displays/panel-n8x0.c b/drivers/video/omap2/displays/panel-n8x0.c index dc9408dc93d1..4a34cdc1371b 100644 --- a/drivers/video/omap2/displays/panel-n8x0.c +++ b/drivers/video/omap2/displays/panel-n8x0.c | |||
@@ -610,12 +610,6 @@ static int n8x0_panel_resume(struct omap_dss_device *dssdev) | |||
610 | return 0; | 610 | return 0; |
611 | } | 611 | } |
612 | 612 | ||
613 | static void n8x0_panel_get_timings(struct omap_dss_device *dssdev, | ||
614 | struct omap_video_timings *timings) | ||
615 | { | ||
616 | *timings = dssdev->panel.timings; | ||
617 | } | ||
618 | |||
619 | static void n8x0_panel_get_resolution(struct omap_dss_device *dssdev, | 613 | static void n8x0_panel_get_resolution(struct omap_dss_device *dssdev, |
620 | u16 *xres, u16 *yres) | 614 | u16 *xres, u16 *yres) |
621 | { | 615 | { |
@@ -678,8 +672,6 @@ static struct omap_dss_driver n8x0_panel_driver = { | |||
678 | .get_resolution = n8x0_panel_get_resolution, | 672 | .get_resolution = n8x0_panel_get_resolution, |
679 | .get_recommended_bpp = omapdss_default_get_recommended_bpp, | 673 | .get_recommended_bpp = omapdss_default_get_recommended_bpp, |
680 | 674 | ||
681 | .get_timings = n8x0_panel_get_timings, | ||
682 | |||
683 | .driver = { | 675 | .driver = { |
684 | .name = "n8x0_panel", | 676 | .name = "n8x0_panel", |
685 | .owner = THIS_MODULE, | 677 | .owner = THIS_MODULE, |