HID: hid-lcpower: fix key mapping
authorChris Schlund <chrisschlund@gmx.de>
Mon, 7 Feb 2011 16:53:10 +0000 (17:53 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 13 Feb 2011 14:04:51 +0000 (15:04 +0100)
I already got some feedback for this module, telling me red and blue keys are
exchanged.  I checked it, and they are right. Due to my incorrect userspace
settings I missed this during my testing.

Signed-off-by: Chris Schlund <chrisschlund@gmx.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lcpower.c

index 4bdbcf87854422af1e4311fa620c50766dd17f55..c4fe9bd095b7f2c255c44b031624d167c3c0eb69 100644 (file)
@@ -30,8 +30,8 @@ static int ts_input_mapping(struct hid_device *hdev, struct hid_input *hi,
        switch (usage->hid & HID_USAGE) {
         case 0x046: ts_map_key_clear(KEY_YELLOW);         break;
         case 0x047: ts_map_key_clear(KEY_GREEN);          break;
-        case 0x049: ts_map_key_clear(KEY_RED);            break;
-        case 0x04a: ts_map_key_clear(KEY_BLUE);           break;
+        case 0x049: ts_map_key_clear(KEY_BLUE);           break;
+        case 0x04a: ts_map_key_clear(KEY_RED);           break;
         case 0x00d: ts_map_key_clear(KEY_HOME);           break;
         case 0x025: ts_map_key_clear(KEY_TV);             break;
         case 0x048: ts_map_key_clear(KEY_VCR);            break;