Input: goodix - do not explicitly set evbits in input device
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Jun 2015 18:51:05 +0000 (11:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Jun 2015 23:47:34 +0000 (16:47 -0700)
input_mt_init_slots() will do that for us.

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c

index 73ade35ea90f334fc565eeeca5c63a075e14727d..b4d12e29abff72008125c2406b3808cf174e0f71 100644 (file)
@@ -301,10 +301,6 @@ static int goodix_request_input_dev(struct goodix_ts_data *ts, u16 version,
                return -ENOMEM;
        }
 
-       ts->input_dev->evbit[0] = BIT_MASK(EV_SYN) |
-                                 BIT_MASK(EV_KEY) |
-                                 BIT_MASK(EV_ABS);
-
        input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X,
                             0, ts->abs_x_max, 0, 0);
        input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y,