diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-12-04 07:20:11 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-12-07 09:50:48 -0500 |
commit | 09645d258334c650cb65a93f55d9acdcd4420d44 (patch) | |
tree | 9d7696ba37f96ba47273d1b00fd3e6d33bee5696 /drivers/video/omap2 | |
parent | c252ea0f75536a55c13ed6d276af5e93cd41ac44 (diff) |
OMAPFB: remove exported udpate window
omapfb contains an exported omapfb_update_window function, which, at
some point in history, was used by a closed source SGX driver. This was
a hack even then, and should not be needed anymore. So remove it.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-ioctl.c | 27 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb.h | 3 |
2 files changed, 3 insertions, 27 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index 8b1e9e375f02..94de47ea71a5 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c | |||
@@ -279,7 +279,7 @@ static int omapfb_query_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) | |||
279 | return 0; | 279 | return 0; |
280 | } | 280 | } |
281 | 281 | ||
282 | static int omapfb_update_window_nolock(struct fb_info *fbi, | 282 | static int omapfb_update_window(struct fb_info *fbi, |
283 | u32 x, u32 y, u32 w, u32 h) | 283 | u32 x, u32 y, u32 w, u32 h) |
284 | { | 284 | { |
285 | struct omap_dss_device *display = fb2display(fbi); | 285 | struct omap_dss_device *display = fb2display(fbi); |
@@ -299,27 +299,6 @@ static int omapfb_update_window_nolock(struct fb_info *fbi, | |||
299 | return display->driver->update(display, x, y, w, h); | 299 | return display->driver->update(display, x, y, w, h); |
300 | } | 300 | } |
301 | 301 | ||
302 | /* This function is exported for SGX driver use */ | ||
303 | int omapfb_update_window(struct fb_info *fbi, | ||
304 | u32 x, u32 y, u32 w, u32 h) | ||
305 | { | ||
306 | struct omapfb_info *ofbi = FB2OFB(fbi); | ||
307 | struct omapfb2_device *fbdev = ofbi->fbdev; | ||
308 | int r; | ||
309 | |||
310 | if (!lock_fb_info(fbi)) | ||
311 | return -ENODEV; | ||
312 | omapfb_lock(fbdev); | ||
313 | |||
314 | r = omapfb_update_window_nolock(fbi, x, y, w, h); | ||
315 | |||
316 | omapfb_unlock(fbdev); | ||
317 | unlock_fb_info(fbi); | ||
318 | |||
319 | return r; | ||
320 | } | ||
321 | EXPORT_SYMBOL(omapfb_update_window); | ||
322 | |||
323 | int omapfb_set_update_mode(struct fb_info *fbi, | 302 | int omapfb_set_update_mode(struct fb_info *fbi, |
324 | enum omapfb_update_mode mode) | 303 | enum omapfb_update_mode mode) |
325 | { | 304 | { |
@@ -646,7 +625,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
646 | break; | 625 | break; |
647 | } | 626 | } |
648 | 627 | ||
649 | r = omapfb_update_window_nolock(fbi, p.uwnd_o.x, p.uwnd_o.y, | 628 | r = omapfb_update_window(fbi, p.uwnd_o.x, p.uwnd_o.y, |
650 | p.uwnd_o.width, p.uwnd_o.height); | 629 | p.uwnd_o.width, p.uwnd_o.height); |
651 | break; | 630 | break; |
652 | 631 | ||
@@ -663,7 +642,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
663 | break; | 642 | break; |
664 | } | 643 | } |
665 | 644 | ||
666 | r = omapfb_update_window_nolock(fbi, p.uwnd.x, p.uwnd.y, | 645 | r = omapfb_update_window(fbi, p.uwnd.x, p.uwnd.y, |
667 | p.uwnd.width, p.uwnd.height); | 646 | p.uwnd.width, p.uwnd.height); |
668 | break; | 647 | break; |
669 | 648 | ||
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h index 5f72bf9017fc..b93086f4306d 100644 --- a/drivers/video/omap2/omapfb/omapfb.h +++ b/drivers/video/omap2/omapfb/omapfb.h | |||
@@ -129,9 +129,6 @@ void omapfb_remove_sysfs(struct omapfb2_device *fbdev); | |||
129 | 129 | ||
130 | int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg); | 130 | int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg); |
131 | 131 | ||
132 | int omapfb_update_window(struct fb_info *fbi, | ||
133 | u32 x, u32 y, u32 w, u32 h); | ||
134 | |||
135 | int dss_mode_to_fb_mode(enum omap_color_mode dssmode, | 132 | int dss_mode_to_fb_mode(enum omap_color_mode dssmode, |
136 | struct fb_var_screeninfo *var); | 133 | struct fb_var_screeninfo *var); |
137 | 134 | ||