projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276a1d4
)
OMAP: DSS2: OMAPFB: Skip unnecessary set_overlay_info()
author
Ville Syrjälä
<ville.syrjala@nokia.com>
Wed, 17 Mar 2010 18:13:44 +0000
(20:13 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@nokia.com>
Tue, 3 Aug 2010 12:18:46 +0000
(15:18 +0300)
In omapfb_enable_overlay() if the overlay state is already what we want
skip the set_overlay_info().
Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/omapfb/omapfb.h
patch
|
blob
|
history
diff --git
a/drivers/video/omap2/omapfb/omapfb.h
b/drivers/video/omap2/omapfb/omapfb.h
index
cd54fdb
..
c9866be
100644
(file)
--- a/
drivers/video/omap2/omapfb/omapfb.h
+++ b/
drivers/video/omap2/omapfb/omapfb.h
@@
-148,6
+148,8
@@
static inline int omapfb_overlay_enable(struct omap_overlay *ovl,
struct omap_overlay_info info;
ovl->get_overlay_info(ovl, &info);
+ if (info.enabled == enable)
+ return 0;
info.enabled = enable;
return ovl->set_overlay_info(ovl, &info);
}