diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-10 07:13:26 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-27 05:27:02 -0500 |
commit | 916188a46618313eedb07acac00fa575c503ff25 (patch) | |
tree | 8845a175132d753d14d30642678681185480f9d7 /drivers/video/omap2 | |
parent | b08e3e1342ff836e47767daa47211692d865e730 (diff) |
OMAPDSS: cleanup WB enable/is_enabled functions
Instead of doing direct register reads/writes, dispc_wb_enable() and
dispc_wb_is_enabled() functions can use the common overlay functions to
set and check the enable bit.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 08c08d507273..942dd16f317d 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
@@ -2810,12 +2810,12 @@ void dispc_mgr_disable_sync(enum omap_channel channel) | |||
2810 | 2810 | ||
2811 | void dispc_wb_enable(bool enable) | 2811 | void dispc_wb_enable(bool enable) |
2812 | { | 2812 | { |
2813 | REG_FLD_MOD(DISPC_OVL_ATTRIBUTES(OMAP_DSS_WB), enable ? 1 : 0, 0, 0); | 2813 | dispc_ovl_enable(OMAP_DSS_WB, enable); |
2814 | } | 2814 | } |
2815 | 2815 | ||
2816 | bool dispc_wb_is_enabled(void) | 2816 | bool dispc_wb_is_enabled(void) |
2817 | { | 2817 | { |
2818 | return REG_GET(DISPC_OVL_ATTRIBUTES(OMAP_DSS_WB), 0, 0); | 2818 | return dispc_ovl_enabled(OMAP_DSS_WB); |
2819 | } | 2819 | } |
2820 | 2820 | ||
2821 | static void dispc_lcd_enable_signal_polarity(bool act_high) | 2821 | static void dispc_lcd_enable_signal_polarity(bool act_high) |