summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorXianglong Du <Xianglong.Du@csr.com>2014-03-28 11:38:37 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-03-28 12:10:04 +0400
commit9732e5b0bf87a1b0457be1c5d38262babc4cd2ae (patch)
tree3514748c101e9b3240dc845d7e581e047d1ae9c3 /drivers/input
parent415e02bd25b3c053c33db7d1228d207d81c0fb1b (diff)
downloadlinux-9732e5b0bf87a1b0457be1c5d38262babc4cd2ae.tar.xz
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/sirfsoc-onkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/sirfsoc-onkey.c b/drivers/input/misc/sirfsoc-onkey.c
index 4d66c723cf08..e4104f9b2e6d 100644
--- a/drivers/input/misc/sirfsoc-onkey.c
+++ b/drivers/input/misc/sirfsoc-onkey.c
@@ -136,6 +136,7 @@ static int sirfsoc_pwrc_probe(struct platform_device *pdev)
pwrcdrv->input->name = "sirfsoc pwrckey";
pwrcdrv->input->phys = "pwrc/input0";
pwrcdrv->input->evbit[0] = BIT_MASK(EV_KEY);
+ input_set_capability(pwrcdrv->input, EV_KEY, KEY_POWER);
INIT_DELAYED_WORK(&pwrcdrv->work, sirfsoc_pwrc_report_event);