aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/display.c
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/dss/display.c
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/dss/display.c')
-rw-r--r--drivers/video/omap2/dss/display.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c
index 3f345b8cbcb0..8b9179668f48 100644
--- a/drivers/video/omap2/dss/display.c
+++ b/drivers/video/omap2/dss/display.c
@@ -215,9 +215,9 @@ static ssize_t display_mirror_show(struct device *dev,
215{ 215{
216 struct omap_dss_device *dssdev = to_dss_device(dev); 216 struct omap_dss_device *dssdev = to_dss_device(dev);
217 int mirror; 217 int mirror;
218 if (!dssdev->get_mirror) 218 if (!dssdev->driver->get_mirror)
219 return -ENOENT; 219 return -ENOENT;
220 mirror = dssdev->get_mirror(dssdev); 220 mirror = dssdev->driver->get_mirror(dssdev);
221 return snprintf(buf, PAGE_SIZE, "%u\n", mirror); 221 return snprintf(buf, PAGE_SIZE, "%u\n", mirror);
222} 222}
223 223
@@ -228,12 +228,12 @@ static ssize_t display_mirror_store(struct device *dev,
228 unsigned long mirror; 228 unsigned long mirror;
229 int r; 229 int r;
230 230
231 if (!dssdev->set_mirror || !dssdev->get_mirror) 231 if (!dssdev->driver->set_mirror || !dssdev->driver->get_mirror)
232 return -ENOENT; 232 return -ENOENT;
233 233
234 mirror = simple_strtoul(buf, NULL, 0); 234 mirror = simple_strtoul(buf, NULL, 0);
235 235
236 r = dssdev->set_mirror(dssdev, mirror); 236 r = dssdev->driver->set_mirror(dssdev, mirror);
237 if (r) 237 if (r)
238 return r; 238 return r;
239 239