Commit 9732e5b0bf87a1b0457be1c5d38262babc4cd2ae

Authored by Xianglong Du
Committed by Dmitry Torokhov
1 parent 415e02bd25

Input: sirfsoc-onkey - set the capability of reporting KEY_POWER

commit a1a7521064428fc1cf8 moved to report EV_KEY event(KEY_POWER) instead of
reporting EV_PWR event(KEY_SUSPEND), but it didn't enable the capability, so
the KEY_POWER will not be reported to userspace by input core. this patch fixes
the issue.

Signed-off-by: Xianglong Du <Xianglong.Du@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/input/misc/sirfsoc-onkey.c
... ... @@ -136,6 +136,7 @@
136 136 pwrcdrv->input->name = "sirfsoc pwrckey";
137 137 pwrcdrv->input->phys = "pwrc/input0";
138 138 pwrcdrv->input->evbit[0] = BIT_MASK(EV_KEY);
  139 + input_set_capability(pwrcdrv->input, EV_KEY, KEY_POWER);
139 140  
140 141 INIT_DELAYED_WORK(&pwrcdrv->work, sirfsoc_pwrc_report_event);
141 142