Skip to content

Commit

Permalink
dell-wmi: Add support for eject key on Dell Studio 1555
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Islam Amer authored and Matthew Garrett committed Aug 3, 2010
1 parent c715a38 commit d5164db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/dell-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5164db

Please sign in to comment.