From 19e86c2dd65d063ad1e619e84f5328007a3248cb Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 22 Jan 2004 16:14:09 -0800 Subject: [PATCH] [PATCH] logic error in radeonfb. Looks like another instance of a ! in the wrong place. --- drivers/video/radeonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/radeonfb.c b/drivers/video/radeonfb.c index a19b42179df90..cb7b2b74ded30 100644 --- a/drivers/video/radeonfb.c +++ b/drivers/video/radeonfb.c @@ -2319,7 +2319,7 @@ static int radeon_set_backlight_enable(int on, int level, void *data) lvds_gen_cntl |= (LVDS_BL_MOD_EN | LVDS_BLON); if (on && (level > BACKLIGHT_OFF)) { lvds_gen_cntl |= LVDS_DIGON; - if (!lvds_gen_cntl & LVDS_ON) { + if (!(lvds_gen_cntl & LVDS_ON)) { lvds_gen_cntl &= ~LVDS_BLON; OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl); (void)INREG(LVDS_GEN_CNTL); -- 2.53.0