diff options
Diffstat (limited to 'drivers/platform/x86/intel-hid.c')
-rw-r--r-- | drivers/platform/x86/intel-hid.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c index e28bcf61b126..bc0d55a59015 100644 --- a/drivers/platform/x86/intel-hid.c +++ b/drivers/platform/x86/intel-hid.c | |||
@@ -363,7 +363,7 @@ wakeup: | |||
363 | * the 5-button array, but still send notifies with power button | 363 | * the 5-button array, but still send notifies with power button |
364 | * event code to this device object on power button actions. | 364 | * event code to this device object on power button actions. |
365 | * | 365 | * |
366 | * Report the power button press; catch and ignore the button release. | 366 | * Report the power button press and release. |
367 | */ | 367 | */ |
368 | if (!priv->array) { | 368 | if (!priv->array) { |
369 | if (event == 0xce) { | 369 | if (event == 0xce) { |
@@ -372,8 +372,11 @@ wakeup: | |||
372 | return; | 372 | return; |
373 | } | 373 | } |
374 | 374 | ||
375 | if (event == 0xcf) | 375 | if (event == 0xcf) { |
376 | input_report_key(priv->input_dev, KEY_POWER, 0); | ||
377 | input_sync(priv->input_dev); | ||
376 | return; | 378 | return; |
379 | } | ||
377 | } | 380 | } |
378 | 381 | ||
379 | /* 0xC0 is for HID events, other values are for 5 button array */ | 382 | /* 0xC0 is for HID events, other values are for 5 button array */ |