From f259ebb67b61bd8276fbfba43e119e68754be027 Mon Sep 17 00:00:00 2001 From: Krzysztof Helt Date: Tue, 16 Oct 2007 01:28:31 -0700 Subject: pm3fb: header file reduction This patch removes constants named AAA_DISABLE with value 0. They are redudant and misleading ( a |= AAA_DISABLE does nothing and usually should be a &= ~AAA_ENABLE). Signed-off-by: Krzysztof Helt Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/video/pm3fb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/video') diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c index 438872a5f43..0e63f03b536 100644 --- a/drivers/video/pm3fb.c +++ b/drivers/video/pm3fb.c @@ -886,7 +886,7 @@ static int pm3fb_set_par(struct fb_info *info) if ((info->var.activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) par->video |= PM3VideoControl_ENABLE; else { - par->video |= PM3VideoControl_DISABLE; + par->video &= ~PM3VideoControl_ENABLE; DPRINTK("PM3Video disabled\n"); } switch (bpp) { @@ -911,8 +911,7 @@ static int pm3fb_set_par(struct fb_info *info) /* pm3fb_clear_memory(info, 0);*/ pm3fb_clear_colormap(par, 0, 0, 0); - PM3_WRITE_DAC_REG(par, PM3RD_CursorMode, - PM3RD_CursorMode_CURSOR_DISABLE); + PM3_WRITE_DAC_REG(par, PM3RD_CursorMode, 0); pm3fb_init_engine(info); pm3fb_write_mode(info); return 0; -- cgit v1.2.3