iio: adc: set INPUT_PROP_DIRECT
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Sun, 10 Apr 2016 19:22:32 +0000 (21:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 Apr 2016 09:47:20 +0000 (10:47 +0100)
Set INPUT_PROP_DIRECT to indicate that it is a touchscreen on the
device to help userspace classify it.

Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/mxs-lradc.c

index 07287afa5bd3a3d10f9dbc851858fc8b02f0cb80..e4c4c5c8af8309f1bb719cceb5b699f3a65a2946 100644 (file)
@@ -1127,6 +1127,7 @@ static int mxs_lradc_ts_register(struct mxs_lradc *lradc)
        __set_bit(EV_ABS, input->evbit);
        __set_bit(EV_KEY, input->evbit);
        __set_bit(BTN_TOUCH, input->keybit);
+       __set_bit(INPUT_PROP_DIRECT, input->propbit);
        input_set_abs_params(input, ABS_X, 0, LRADC_SINGLE_SAMPLE_MASK, 0, 0);
        input_set_abs_params(input, ABS_Y, 0, LRADC_SINGLE_SAMPLE_MASK, 0, 0);
        input_set_abs_params(input, ABS_PRESSURE, 0, LRADC_SINGLE_SAMPLE_MASK,