diff options
Diffstat (limited to 'drivers/video/omap2/dss/display.c')
-rw-r--r-- | drivers/video/omap2/dss/display.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index 29ec5a4a46bc..351c8abae0b2 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
@@ -247,10 +247,10 @@ static ssize_t display_wss_show(struct device *dev, | |||
247 | struct omap_dss_device *dssdev = to_dss_device(dev); | 247 | struct omap_dss_device *dssdev = to_dss_device(dev); |
248 | unsigned int wss; | 248 | unsigned int wss; |
249 | 249 | ||
250 | if (!dssdev->get_wss) | 250 | if (!dssdev->driver->get_wss) |
251 | return -ENOENT; | 251 | return -ENOENT; |
252 | 252 | ||
253 | wss = dssdev->get_wss(dssdev); | 253 | wss = dssdev->driver->get_wss(dssdev); |
254 | 254 | ||
255 | return snprintf(buf, PAGE_SIZE, "0x%05x\n", wss); | 255 | return snprintf(buf, PAGE_SIZE, "0x%05x\n", wss); |
256 | } | 256 | } |
@@ -262,7 +262,7 @@ static ssize_t display_wss_store(struct device *dev, | |||
262 | unsigned long wss; | 262 | unsigned long wss; |
263 | int r; | 263 | int r; |
264 | 264 | ||
265 | if (!dssdev->get_wss || !dssdev->set_wss) | 265 | if (!dssdev->driver->get_wss || !dssdev->driver->set_wss) |
266 | return -ENOENT; | 266 | return -ENOENT; |
267 | 267 | ||
268 | if (strict_strtoul(buf, 0, &wss)) | 268 | if (strict_strtoul(buf, 0, &wss)) |
@@ -271,7 +271,7 @@ static ssize_t display_wss_store(struct device *dev, | |||
271 | if (wss > 0xfffff) | 271 | if (wss > 0xfffff) |
272 | return -EINVAL; | 272 | return -EINVAL; |
273 | 273 | ||
274 | r = dssdev->set_wss(dssdev, wss); | 274 | r = dssdev->driver->set_wss(dssdev, wss); |
275 | if (r) | 275 | if (r) |
276 | return r; | 276 | return r; |
277 | 277 | ||