]> err.no Git - linux-2.6/commitdiff
Input: wistron - add Acer TravelMate 240 to DMI table
authorAshutosh Naik <ashutosh.naik@gmail.com>
Sun, 11 Dec 2005 17:41:32 +0000 (12:41 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Sun, 11 Dec 2005 17:41:32 +0000 (12:41 -0500)
Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/wistron_btns.c

index 49d0416a2a9a9d79eddfa6ebb0aa9bb5210e6fc1..ef7ee924ecc6795f023d4ac7747f9cf938c3760b 100644 (file)
@@ -296,6 +296,16 @@ static struct key_entry keymap_acer_aspire_1500[] = {
        { KE_END, 0 }
 };
 
+static struct key_entry keymap_acer_travelmate_240[] = {
+       { KE_KEY, 0x31, KEY_MAIL },
+       { KE_KEY, 0x36, KEY_WWW },
+       { KE_KEY, 0x11, KEY_PROG1 },
+       { KE_KEY, 0x12, KEY_PROG2 },
+       { KE_BLUETOOTH, 0x44, 0 },
+       { KE_WIFI, 0x30, 0 },
+       { KE_END, 0 }
+};
+
 /*
  * If your machine is not here (which is currently rather likely), please send
  * a list of buttons and their key codes (reported when loading this module
@@ -320,6 +330,15 @@ static struct dmi_system_id dmi_ids[] = {
                },
                .driver_data = keymap_acer_aspire_1500
        },
+       {
+               .callback = dmi_matched,
+               .ident = "Acer TravelMate 240",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 240"),
+               },
+               .driver_data = keymap_acer_travelmate_240
+       },
        { 0, }
 };