Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1182307 > unrolled thread

[RFC v4 02/25] char/nvram: Use bitwise OR to obtain Atari video mode data

Started byFinn Thain <fthain@telegraphics.com.au>
First post2015-07-12 12:50 +0200
Last post2015-07-12 12:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [RFC v4 02/25] char/nvram: Use bitwise OR to obtain Atari video mode data Finn Thain <fthain@telegraphics.com.au> - 2015-07-12 12:50 +0200

#1182307 — [RFC v4 02/25] char/nvram: Use bitwise OR to obtain Atari video mode data

FromFinn Thain <fthain@telegraphics.com.au>
Date2015-07-12 12:50 +0200
Subject[RFC v4 02/25] char/nvram: Use bitwise OR to obtain Atari video mode data
Message-ID<pLmZz-7cl-5@gated-at.bofh.it>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

---
 drivers/char/nvram.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/char/nvram.c
===================================================================
--- linux.orig/drivers/char/nvram.c	2015-07-12 20:24:54.000000000 +1000
+++ linux/drivers/char/nvram.c	2015-07-12 20:24:55.000000000 +1000
@@ -702,7 +702,7 @@ static void atari_proc_infos(unsigned ch
 		seq_printf(seq, "%ds%s\n", nvram[10],
 		    nvram[10] < 8 ? ", no memory test" : "");
 
-	vmode = (nvram[14] << 8) || nvram[15];
+	vmode = (nvram[14] << 8) | nvram[15];
 	seq_printf(seq,
 	    "Video mode       : %s colors, %d columns, %s %s monitor\n",
 	    colors[vmode & 7],


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web