aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/mpr121_touchkey.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2017-01-15 14:44:05 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-15 15:08:43 -0800
commit9723ddc8fe0d76ce41fe0dc16afb241ec7d0a29d (patch)
treed020e496389013a33a02dae43c6c5cc1f8013813 /drivers/input/keyboard/mpr121_touchkey.c
parentInput: mpr121 - remove unused field in struct mpr121_touchkey (diff)
downloadlinux-dev-9723ddc8fe0d76ce41fe0dc16afb241ec7d0a29d.tar.xz
linux-dev-9723ddc8fe0d76ce41fe0dc16afb241ec7d0a29d.zip
Input: mpr121 - set missing event capability
This driver reports misc scan input events on the sensor's status register changes. But the event capability for them was not set in the device initialization, so these events were ignored. This change adds the missing event capability. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/keyboard/mpr121_touchkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/keyboard/mpr121_touchkey.c b/drivers/input/keyboard/mpr121_touchkey.c
index 90be99d58c85..2558c602f099 100644
--- a/drivers/input/keyboard/mpr121_touchkey.c
+++ b/drivers/input/keyboard/mpr121_touchkey.c
@@ -230,6 +230,7 @@ static int mpr_touchkey_probe(struct i2c_client *client,
input_dev->id.bustype = BUS_I2C;
input_dev->dev.parent = &client->dev;
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP);
+ input_set_capability(input_dev, EV_MSC, MSC_SCAN);
input_dev->keycode = mpr121->keycodes;
input_dev->keycodesize = sizeof(mpr121->keycodes[0]);