Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177587
b: refs/heads/master
c: d607af9
h: refs/heads/master
i:
  177585: 676b616
  177583: 0d7a689
v: v3
  • Loading branch information
Anisse Astier authored and Len Brown committed Dec 16, 2009
1 parent 2357b76 commit d857e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 977f9b921c82726745a8b7281dc679edb32b4906
refs/heads/master: d607af93006594f7da1d4b7d44724c5308f4e892
13 changes: 4 additions & 9 deletions trunk/drivers/platform/x86/msi-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,10 @@ static void msi_wmi_notify(u32 value, void *context)
}
key->last_pressed = cur;

switch (key->type) {
case KE_KEY:
/* Brightness is served via acpi video driver */
if (!backlight &&
(key->keycode == KEY_BRIGHTNESSUP ||
key->keycode == KEY_BRIGHTNESSDOWN))
break;

if (key->type == KE_KEY &&
/* Brightness is served via acpi video driver */
(backlight || (key->keycode != KEY_BRIGHTNESSUP &&
key->keycode != KEY_BRIGHTNESSDOWN))) {
dprintk("Send key: 0x%X - "
"Input layer keycode: %d\n", key->code,
key->keycode);
Expand All @@ -260,7 +256,6 @@ static void msi_wmi_notify(u32 value, void *context)
input_report_key(msi_wmi_input_dev,
key->keycode, 0);
input_sync(msi_wmi_input_dev);
break;
}
} else
printk(KERN_INFO "Unknown key pressed - %x\n",
Expand Down

0 comments on commit d857e67

Please sign in to comment.