summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIslam Amer <pharon@gmail.com>2010-06-24 13:39:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-26 17:18:39 -0700
commit221d4da7cbe3a3a66d2adc0d7bb91a1d92d8c0bb (patch)
treec7227c98d700a5ed7624c3c2fd151aeddd18abd1
parent92e8e73dcc82076d63296c03700a3d6324672028 (diff)
dell-wmi: Add support for eject key on Dell Studio 1555
commit d5164dbf1f651d1e955b158fb70a9c844cc91cd1 upstream. Fixes pressing the eject key on Dell Studio 1555 does not work and produces message : dell-wmi: Unknown key 0 pressed Signed-off-by: Islam Amer <pharon@gmail.com> Cc: Kyle McMartin <kyle@mcmartin.ca> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/platform/x86/dell-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 66f53c3c35e..12a8e6fa1d5 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -221,7 +221,7 @@ static void dell_wmi_notify(u32 value, void *context)
return;
}
- if (dell_new_hk_type)
+ if (dell_new_hk_type || buffer_entry[1] == 0x0)
reported_key = (int)buffer_entry[2];
else
reported_key = (int)buffer_entry[1] & 0xffff;