public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* logic error in radeonfb.
@ 2004-01-23  6:35 davej
  2004-01-23  6:46 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 6+ messages in thread
From: davej @ 2004-01-23  6:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds, akpm, benh

Looks like another instance of a ! in the wrong place.

    Dave

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/video/radeonfb.c linux-2.5/drivers/video/radeonfb.c
--- bk-linus/drivers/video/radeonfb.c	2004-01-21 15:58:42.000000000 +0000
+++ linux-2.5/drivers/video/radeonfb.c	2004-01-21 17:48:54.000000000 +0000
@@ -2319,7 +2319,7 @@ static int radeon_set_backlight_enable(i
 	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);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-23 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23  6:35 logic error in radeonfb davej
2004-01-23  6:46 ` Benjamin Herrenschmidt
2004-01-23  6:54   ` Dave Jones
2004-01-23  7:03     ` Benjamin Herrenschmidt
2004-01-23 11:24     ` John Levon
2004-01-23 13:53       ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox