Skip to content

Commit 53f0b7f

Browse files
mergedtor
authored andcommitted
Input: ar1021_i2c - set INPUT_PROP_DIRECT
If INPUT_PROP_DIRECT is set, userspace doesn't have to fall back to old ways of identifying touchscreen devices. Let's add it. Signed-off-by: Martin Kepplinger <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 3e64fcb commit 53f0b7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/touchscreen/ar1021_i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ static int ar1021_i2c_probe(struct i2c_client *client,
117117
input->open = ar1021_i2c_open;
118118
input->close = ar1021_i2c_close;
119119

120+
__set_bit(INPUT_PROP_DIRECT, input->propbit);
120121
input_set_capability(input, EV_KEY, BTN_TOUCH);
121122
input_set_abs_params(input, ABS_X, 0, AR1021_MAX_X, 0, 0);
122123
input_set_abs_params(input, ABS_Y, 0, AR1021_MAX_Y, 0, 0);

0 commit comments

Comments
 (0)