aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/displays
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2012-03-15 14:00:23 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-04-23 03:48:07 -0400
commit4b6430fc98cfe051eab69f4696a608bba14ebd6c (patch)
tree3af96f2ef29fba9c7942228f6b29971044edfa7a /drivers/video/omap2/displays
parentf3fb3bbc7f71d573be40213af4a90751a81b2379 (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')
-rw-r--r--drivers/video/omap2/displays/panel-acx565akm.c7
-rw-r--r--drivers/video/omap2/displays/panel-generic-dpi.c7
-rw-r--r--drivers/video/omap2/displays/panel-n8x0.c8
-rw-r--r--drivers/video/omap2/displays/panel-taal.c8
4 files changed, 0 insertions, 30 deletions
diff --git a/drivers/video/omap2/displays/panel-acx565akm.c b/drivers/video/omap2/displays/panel-acx565akm.c
index d26f37ac69d8..c98f2c16f744 100644
--- a/drivers/video/omap2/displays/panel-acx565akm.c
+++ b/drivers/video/omap2/displays/panel-acx565akm.c
@@ -738,12 +738,6 @@ static void acx_panel_set_timings(struct omap_dss_device *dssdev,
738 } 738 }
739} 739}
740 740
741static void acx_panel_get_timings(struct omap_dss_device *dssdev,
742 struct omap_video_timings *timings)
743{
744 *timings = dssdev->panel.timings;
745}
746
747static int acx_panel_check_timings(struct omap_dss_device *dssdev, 741static int acx_panel_check_timings(struct omap_dss_device *dssdev,
748 struct omap_video_timings *timings) 742 struct omap_video_timings *timings)
749{ 743{
@@ -761,7 +755,6 @@ static struct omap_dss_driver acx_panel_driver = {
761 .resume = acx_panel_resume, 755 .resume = acx_panel_resume,
762 756
763 .set_timings = acx_panel_set_timings, 757 .set_timings = acx_panel_set_timings,
764 .get_timings = acx_panel_get_timings,
765 .check_timings = acx_panel_check_timings, 758 .check_timings = acx_panel_check_timings,
766 759
767 .get_recommended_bpp = acx_get_recommended_bpp, 760 .get_recommended_bpp = acx_get_recommended_bpp,
diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c
index 30fe4dfeb227..e2b21c511fcf 100644
--- a/drivers/video/omap2/displays/panel-generic-dpi.c
+++ b/drivers/video/omap2/displays/panel-generic-dpi.c
@@ -549,12 +549,6 @@ static void generic_dpi_panel_set_timings(struct omap_dss_device *dssdev,
549 dpi_set_timings(dssdev, timings); 549 dpi_set_timings(dssdev, timings);
550} 550}
551 551
552static void generic_dpi_panel_get_timings(struct omap_dss_device *dssdev,
553 struct omap_video_timings *timings)
554{
555 *timings = dssdev->panel.timings;
556}
557
558static int generic_dpi_panel_check_timings(struct omap_dss_device *dssdev, 552static int generic_dpi_panel_check_timings(struct omap_dss_device *dssdev,
559 struct omap_video_timings *timings) 553 struct omap_video_timings *timings)
560{ 554{
@@ -571,7 +565,6 @@ static struct omap_dss_driver dpi_driver = {
571 .resume = generic_dpi_panel_resume, 565 .resume = generic_dpi_panel_resume,
572 566
573 .set_timings = generic_dpi_panel_set_timings, 567 .set_timings = generic_dpi_panel_set_timings,
574 .get_timings = generic_dpi_panel_get_timings,
575 .check_timings = generic_dpi_panel_check_timings, 568 .check_timings = generic_dpi_panel_check_timings,
576 569
577 .driver = { 570 .driver = {
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
613static void n8x0_panel_get_timings(struct omap_dss_device *dssdev,
614 struct omap_video_timings *timings)
615{
616 *timings = dssdev->panel.timings;
617}
618
619static void n8x0_panel_get_resolution(struct omap_dss_device *dssdev, 613static 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,
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index 72d63076ab19..3053399faf9a 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -507,12 +507,6 @@ static const struct backlight_ops taal_bl_ops = {
507 .update_status = taal_bl_update_status, 507 .update_status = taal_bl_update_status,
508}; 508};
509 509
510static void taal_get_timings(struct omap_dss_device *dssdev,
511 struct omap_video_timings *timings)
512{
513 *timings = dssdev->panel.timings;
514}
515
516static void taal_get_resolution(struct omap_dss_device *dssdev, 510static void taal_get_resolution(struct omap_dss_device *dssdev,
517 u16 *xres, u16 *yres) 511 u16 *xres, u16 *yres)
518{ 512{
@@ -1807,8 +1801,6 @@ static struct omap_dss_driver taal_driver = {
1807 .run_test = taal_run_test, 1801 .run_test = taal_run_test,
1808 .memory_read = taal_memory_read, 1802 .memory_read = taal_memory_read,
1809 1803
1810 .get_timings = taal_get_timings,
1811
1812 .driver = { 1804 .driver = {
1813 .name = "taal", 1805 .name = "taal",
1814 .owner = THIS_MODULE, 1806 .owner = THIS_MODULE,