Skip to contentSkip to conversation

iio: adc: set INPUT_PROP_DIRECT

PATCH Applied Ksenija Stanojevic 3 participants 4 messages Apr 10, 2016 – Apr 17, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 2/2 iio: adc: set INPUT_PROP_DIRECT

In reply to a message not in the archive

Set INPUT_PROP_DIRECT to indicate that it is a touchscreen on the device to help userspace classify it.

---
 drivers/iio/adc/mxs-lradc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/mxs-lradc.c +1 -0
index 07287af..e4c4c5c 100644
@@ -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
maintainer
#2 lore raw
Quoted 4 lines · Ksenija Stanojevic

Set INPUT_PROP_DIRECT to indicate that it is a touchscreen on the device to help userspace classify it.

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
index 07287af..e4c4c5c 100644
@@ -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,
#3 lore raw
Quoted 6 lines · Jonathan Cameron
Quoted 4 lines · Ksenija Stanojevic

Set INPUT_PROP_DIRECT to indicate that it is a touchscreen on the device to help userspace classify it.

Sounds correct to me. Dmitry?

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
index 07287af..e4c4c5c 100644
@@ -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
maintainer Applied
#4 lore raw
Quoted 9 lines · Dmitry Torokhov
Quoted 6 lines · Jonathan Cameron
Quoted 4 lines · Ksenija Stanojevic

Set INPUT_PROP_DIRECT to indicate that it is a touchscreen on the device to help userspace classify it.

Sounds correct to me. Dmitry?

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
index 07287af..e4c4c5c 100644
@@ -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,