* [PATCH] Superflous code in mac_hid.c
@ 2002-02-04 19:09 Matthias Grimm
0 siblings, 0 replies; only message in thread
From: Matthias Grimm @ 2002-02-04 19:09 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: LinuxPPC-Dev
Hi Ben,
The following patch deletes some code lines in mac_hid.c which were from
my point of view an copy-&-paste artefact from char/pc_keyb.c.
--- drivers/macintosh/mac_hid.c.orig Thu Feb 4 01:06:49 1904
+++ drivers/macintosh/mac_hid.c Mon Feb 4 12:10:30 2002
@@ -363,11 +363,9 @@
prev_scancode = 0;
return 0;
}
-
} else {
+
} else
prev_scancode = 0;
-
if (scancode == 0x2a || scancode == 0x36)
-
return 0;
-
}
+
if (e0_keys[scancode])
*keycode = e0_keys[scancode];
else {
----------------
The code is only nessecary to fix a misbehaviour of a special pc
keyboard as described in char/pc_keyb.c. I think it's not relevant
for macintosh computers.
The reason to delete this lines is that two scancodes can't be used.
I found this problem, as I tried to assign the Keycode 209 to the Fn-Key
for test purposes. After all translations and mappings the key sequence
0xe0 0x36 was generated and quashed by this code lines.
This is a low priority and temporary patch (until the new input device is
fully integrated in the kernel), but temporary solutions mostly have
incredible livespans. ;-)
Kind regards
Matthias Grimm
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-04 19:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-04 19:09 [PATCH] Superflous code in mac_hid.c Matthias Grimm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).