aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/displays
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-01-08 09:30:33 -0500
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-24 07:31:27 -0500
commit8d8aa61dcf8721021cd5c0c86a14ef944535fa54 (patch)
tree93dbc81d2dbd02693ede7528ec6807b200c7601d /drivers/video/omap2/displays
parentc75d9464c1fa315796e78468bfaf32f2ce676fed (diff)
OMAP: DSS2: move set/get_mirror()
Move set/get_mirror() from omap_dss_device to omap_dss_driver. This is part of a larger patch-set, which moves the control from omapdss driver to the display driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/displays')
-rw-r--r--drivers/video/omap2/displays/panel-taal.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index 5f78d3851d91..4d644497431d 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -797,16 +797,20 @@ static int taal_mirror(struct omap_dss_device *dssdev, bool enable)
797 797
798 dev_dbg(&dssdev->dev, "mirror %d\n", enable); 798 dev_dbg(&dssdev->dev, "mirror %d\n", enable);
799 799
800 dsi_bus_lock();
800 if (td->enabled) { 801 if (td->enabled) {
801 r = taal_set_addr_mode(td->rotate, enable); 802 r = taal_set_addr_mode(td->rotate, enable);
802
803 if (r) 803 if (r)
804 return r; 804 goto err;
805 } 805 }
806 806
807 td->mirror = enable; 807 td->mirror = enable;
808 808
809 dsi_bus_unlock();
809 return 0; 810 return 0;
811err:
812 dsi_bus_unlock();
813 return r;
810} 814}
811 815
812static bool taal_get_mirror(struct omap_dss_device *dssdev) 816static bool taal_get_mirror(struct omap_dss_device *dssdev)