]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Input: zforce_ts - do not explicitly set EV_SYN, etc bits
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 24 Aug 2024 05:50:28 +0000 (22:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Sep 2024 05:56:45 +0000 (22:56 -0700)
Input core and various helpers already do that for us, so drop the code
setting these bits explicitly.

Tested-by: Andreas Kemnade <andreas@kemnade.info> # Tolino Shine2HD
Link: https://lore.kernel.org/r/20240824055047.1706392-5-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zforce_ts.c

index 5a8f79b800e6325968fca6023069a4bcd110a23a..a6f6cc5d8a3fc6187ffaea7a6e40e7873d1c9db3 100644 (file)
@@ -814,10 +814,6 @@ static int zforce_probe(struct i2c_client *client)
        input_dev->open = zforce_input_open;
        input_dev->close = zforce_input_close;
 
-       __set_bit(EV_KEY, input_dev->evbit);
-       __set_bit(EV_SYN, input_dev->evbit);
-       __set_bit(EV_ABS, input_dev->evbit);
-
        zforce_ts_parse_legacy_properties(ts);
        touchscreen_parse_properties(input_dev, true, &ts->prop);
        if (ts->prop.max_x == 0 || ts->prop.max_y == 0) {