input: gpio_key: add some missing code [1/1]

PD#171750: google b/112555582

add some missing code for send keyevent

Change-Id: I2586a0cd163c02b483657ade4e1a998d54f379d8
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
Signed-off-by: xiaoliang.wang <xiaoliang.wang@amlogic.com>
This commit is contained in:
xiaoliang.wang
2018-08-14 18:23:11 -04:00
committed by Jianxin Pan
parent c4f9d4db05
commit f0d2c7cabe

View File

@@ -200,6 +200,13 @@ static int meson_gpio_kp_probe(struct platform_device *pdev)
return -EINVAL;
set_bit(EV_KEY, input_dev->evbit);
set_bit(EV_REP, input_dev->evbit);
for (i = 0; i < keypad->key_size; i++) {
set_bit(keypad->key[i].code, input_dev->keybit);
dev_info(&pdev->dev, "%s key(%d) registed.\n",
keypad->key[i].name, keypad->key[i].code);
}
input_dev->name = "gpio_keypad";
input_dev->phys = "gpio_keypad/input0";
input_dev->dev.parent = &pdev->dev;