Skip to content

Commit a9d59c2

Browse files
committed
Input: zforce_ts - do not explicitly set EV_SYN, etc bits
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>
1 parent f820b43 commit a9d59c2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/input/touchscreen/zforce_ts.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,6 @@ static int zforce_probe(struct i2c_client *client)
814814
input_dev->open = zforce_input_open;
815815
input_dev->close = zforce_input_close;
816816

817-
__set_bit(EV_KEY, input_dev->evbit);
818-
__set_bit(EV_SYN, input_dev->evbit);
819-
__set_bit(EV_ABS, input_dev->evbit);
820-
821817
zforce_ts_parse_legacy_properties(ts);
822818
touchscreen_parse_properties(input_dev, true, &ts->prop);
823819
if (ts->prop.max_x == 0 || ts->prop.max_y == 0) {

0 commit comments

Comments
 (0)