mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] char/nvram: Use bitwise OR to obtain Atari video mode data
@ 2015-07-03  3:35 Finn Thain
  2015-07-03  6:52 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Finn Thain @ 2015-07-03  3:35 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-kernel, linux-m68k


Signed-off-by: Finn Thain <fthain@telegraphics.com.au>

Index: linux/drivers/char/nvram.c
===================================================================
--- linux.orig/drivers/char/nvram.c	2015-07-02 13:50:40.000000000 +1000
+++ linux/drivers/char/nvram.c	2015-07-02 14:00:05.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],

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

end of thread, other threads:[~2015-07-03  6:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-03  3:35 [PATCH] char/nvram: Use bitwise OR to obtain Atari video mode data Finn Thain
2015-07-03  6:52 ` Geert Uytterhoeven

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

all inboxes | Powered by JetHome®