Thread (31 messages) 31 messages, 2 authors, 2015-08-17

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

flat view

From: Finn Thain <hidden>
Date: 2015-07-25 07:56:51
Also in: linux-m68k, lkml

Signed-off-by: Finn Thain <redacted>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Christian T. Steigies <redacted>

---
 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-25 17:42:34.000000000 +1000
+++ linux/drivers/char/nvram.c	2015-07-25 17:45:25.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],
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help