iio: adc: set INPUT_PROP_DIRECT
Subsystems (2)
PATCH 2/2 iio: adc: set INPUT_PROP_DIRECT
In reply to a message not in the archiveSet INPUT_PROP_DIRECT to indicate that it is a touchscreen on the device to help userspace classify it.
Signed-off-by Ksenija Stanojevic <[email protected]>
--- drivers/iio/adc/mxs-lradc.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/adc/mxs-lradc.c +1 -0
@@ -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,
Signature · 1 line
1.9.1
Jonathan Cameron
maintainerQuoted 4 lines · Ksenija Stanojevic
Set
INPUT_PROP_DIRECTto indicate that it is a touchscreen on the device to help userspace classify it.Signed-off-by Ksenija Stanojevic <[email protected]>
Sounds correct to me. Dmitry?
Quoted 17 lines
--- drivers/iio/adc/mxs-lradc.c | 1 + 1 file changed, 1 insertion(+)drivers/iio/adc/mxs-lradc.c +1
-0@@ -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,
Dmitry Torokhov
Acked-byQuoted 6 lines · Jonathan Cameron
Quoted 4 lines · Ksenija Stanojevic
Set
INPUT_PROP_DIRECTto indicate that it is a touchscreen on the device to help userspace classify it.Signed-off-by Ksenija Stanojevic <[email protected]>Sounds correct to me. Dmitry?
Acked-by Dmitry Torokhov <[email protected]>
Quoted 18 lines
Quoted 17 lines
--- drivers/iio/adc/mxs-lradc.c | 1 + 1 file changed, 1 insertion(+)drivers/iio/adc/mxs-lradc.c +1
-0@@ -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,
Signature · 1 line
Dmitry
Quoted 9 lines · Dmitry Torokhov
Quoted 6 lines · Jonathan Cameron
Quoted 4 lines · Ksenija Stanojevic
Set
INPUT_PROP_DIRECTto indicate that it is a touchscreen on the device to help userspace classify it.Signed-off-by Ksenija Stanojevic <[email protected]>Sounds correct to me. Dmitry?
Acked-by Dmitry Torokhov <[email protected]>
Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to mess with it.
Thanks,
Jonathan
Quoted 20 lines
Quoted 19 lines
Quoted 18 lines
--- drivers/iio/adc/mxs-lradc.c | 1 + 1 file changed, 1 insertion(+)drivers/iio/adc/mxs-lradc.c +1
-0@@ -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,