linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "L.P. White" <lpw25@cam.ac.uk>
To: Jiri Kosina <jkosina@suse.cz>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] HID: Add mapping for "AL Network Chat" usage
Date: 08 Feb 2010 13:02:05 +0000	[thread overview]
Message-ID: <Prayer.1.3.2.1002081302050.29006@hermes-2.csi.cam.ac.uk> (raw)

From: Leo P White <lpw25@cam.ac.uk>

Adding a mapping for the 'AL Network Chat' usage from the 'Consumer' usage 
page (USB HID Usage Tables v1.11). This usage is used by some keyboards for 
a multimedia key.

Signed-off-by: Leo P White <lpw25@cam.ac.uk>

---

diff -upNr linux.orig/drivers/hid/hid-input.c 
linux.new/drivers/hid/hid-input.c --- linux.orig/drivers/hid/hid-input.c 
2010-02-06 22:17:12.000000000 +0000 +++ linux.new/drivers/hid/hid-input.c 
2010-02-08 12:32:13.005554190 +0000 @@ -400,6 +400,7 @@ static void 
hidinput_configure_usage(str
 		case 0x192: map_key_clear(KEY_CALC);		break;
 		case 0x194: map_key_clear(KEY_FILE);		break;
 		case 0x196: map_key_clear(KEY_WWW);		break;
+		case 0x199: map_key_clear(KEY_CHAT);		break;
 		case 0x19c: map_key_clear(KEY_LOGOFF);		break;
 		case 0x19e: map_key_clear(KEY_COFFEE);		break;
 		case 0x1a6: map_key_clear(KEY_HELP);		break;

             reply	other threads:[~2010-02-08 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-08 13:02 L.P. White [this message]
2010-02-09 10:17 ` [PATCH] HID: Add mapping for "AL Network Chat" usage Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Prayer.1.3.2.1002081302050.29006@hermes-2.csi.cam.ac.uk \
    --to=lpw25@cam.ac.uk \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).