From: Giuseppe Bilotta <bilotta78@hotpop.com>

This patch fixes a problem with the RAW mode emulation for AT keyboards in
Translated Set 2 mode.

It allows correct behavior for scancodes 0x81 to 0x84 which, if mapped by
e.g.  setkeycodes to their correct value (129 to 132) behave as if they
were 0x85, 0x86, 0x87, 0x8c

The patch should present no problems since only 0 values get changed.


---

 25-akpm/drivers/input/keyboard/atkbd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/input/keyboard/atkbd.c~fix-scancode-keycode-scancode-conversion-for-265 drivers/input/keyboard/atkbd.c
--- 25/drivers/input/keyboard/atkbd.c~fix-scancode-keycode-scancode-conversion-for-265	2004-04-20 18:30:07.317650864 -0700
+++ 25-akpm/drivers/input/keyboard/atkbd.c	2004-04-20 18:30:07.321650256 -0700
@@ -81,13 +81,13 @@ static unsigned char atkbd_set2_keycode[
 	 82, 83, 80, 76, 77, 72,  1, 69, 87, 78, 81, 74, 55, 73, 70, 99,
 
 	  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
-	217,100,255,  0, 97,165,  0,  0,156,  0,  0,  0,  0,  0,  0,125,
-	173,114,  0,113,  0,  0,  0,126,128,  0,  0,140,  0,  0,  0,127,
+	217,100,255,  0, 97,165,172,  0,156,  0,  0,  0,  0,  0,187,125,
+	173,114,  0,113,  0,  0,189,126,128,  0,  0,140,  0,  0,  0,127,
 	159,  0,115,  0,164,  0,  0,116,158,  0,150,166,  0,  0,  0,142,
 	157,  0,  0,  0,  0,  0,  0,  0,155,  0, 98,  0,  0,163,  0,  0,
 	226,  0,  0,  0,  0,  0,  0,  0,  0,255, 96,  0,  0,  0,143,  0,
 	  0,  0,  0,  0,  0,  0,  0,  0,  0,107,  0,105,102,  0,  0,112,
-	110,111,108,112,106,103,  0,119,  0,118,109,  0, 99,104,119,  0,
+	110,111,108,112,106,103,171,119,  0,118,109,  0, 99,104,119,  0,
 
 	  0,  0,  0, 65, 99,
 };

_