Skip to content

Commit 9723ddc

Browse files
mitadtor
authored andcommitted
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>
1 parent a4b1aeb commit 9723ddc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/keyboard/mpr121_touchkey.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ static int mpr_touchkey_probe(struct i2c_client *client,
230230
input_dev->id.bustype = BUS_I2C;
231231
input_dev->dev.parent = &client->dev;
232232
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP);
233+
input_set_capability(input_dev, EV_MSC, MSC_SCAN);
233234

234235
input_dev->keycode = mpr121->keycodes;
235236
input_dev->keycodesize = sizeof(mpr121->keycodes[0]);

0 commit comments

Comments
 (0)