* [PATCH 2/2] iio: adc: set INPUT_PROP_DIRECT
[not found] <cover.1460316098.git.ksenija.stanojevic@gmail.com>
@ 2016-04-10 19:22 ` Ksenija Stanojevic
2016-04-16 19:26 ` Jonathan Cameron
0 siblings, 1 reply; 4+ messages in thread
From: Ksenija Stanojevic @ 2016-04-10 19:22 UTC (permalink / raw)
To: dmitry.torokhov
Cc: jic23, knaack.h, lars, pmeerw, linux-iio, linux-kernel,
Ksenija Stanojevic
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>
---
drivers/iio/adc/mxs-lradc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/mxs-lradc.c b/drivers/iio/adc/mxs-lradc.c
index 07287af..e4c4c5c 100644
--- a/drivers/iio/adc/mxs-lradc.c
+++ b/drivers/iio/adc/mxs-lradc.c
@@ -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,
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] iio: adc: set INPUT_PROP_DIRECT
2016-04-10 19:22 ` [PATCH 2/2] iio: adc: set INPUT_PROP_DIRECT Ksenija Stanojevic
@ 2016-04-16 19:26 ` Jonathan Cameron
2016-04-17 9:33 ` Dmitry Torokhov
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2016-04-16 19:26 UTC (permalink / raw)
To: Ksenija Stanojevic, dmitry.torokhov
Cc: knaack.h, lars, pmeerw, linux-iio, linux-kernel, Torokhov
On 10/04/16 20:22, Ksenija Stanojevic wrote:
> 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>
Sounds correct to me. Dmitry?
> ---
> drivers/iio/adc/mxs-lradc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/mxs-lradc.c b/drivers/iio/adc/mxs-lradc.c
> index 07287af..e4c4c5c 100644
> --- a/drivers/iio/adc/mxs-lradc.c
> +++ b/drivers/iio/adc/mxs-lradc.c
> @@ -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,
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] iio: adc: set INPUT_PROP_DIRECT
2016-04-16 19:26 ` Jonathan Cameron
@ 2016-04-17 9:33 ` Dmitry Torokhov
2016-04-17 9:48 ` Jonathan Cameron
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2016-04-17 9:33 UTC (permalink / raw)
To: Jonathan Cameron
Cc: Ksenija Stanojevic, knaack.h, lars, pmeerw, linux-iio,
linux-kernel
On Sat, Apr 16, 2016 at 08:26:48PM +0100, Jonathan Cameron wrote:
> On 10/04/16 20:22, Ksenija Stanojevic wrote:
> > 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>
> Sounds correct to me. Dmitry?
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > ---
> > drivers/iio/adc/mxs-lradc.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/iio/adc/mxs-lradc.c b/drivers/iio/adc/mxs-lradc.c
> > index 07287af..e4c4c5c 100644
> > --- a/drivers/iio/adc/mxs-lradc.c
> > +++ b/drivers/iio/adc/mxs-lradc.c
> > @@ -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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] iio: adc: set INPUT_PROP_DIRECT
2016-04-17 9:33 ` Dmitry Torokhov
@ 2016-04-17 9:48 ` Jonathan Cameron
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2016-04-17 9:48 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Ksenija Stanojevic, knaack.h, lars, pmeerw, linux-iio,
linux-kernel
On 17/04/16 10:33, Dmitry Torokhov wrote:
> On Sat, Apr 16, 2016 at 08:26:48PM +0100, Jonathan Cameron wrote:
>> On 10/04/16 20:22, Ksenija Stanojevic wrote:
>>> 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>
>> Sounds correct to me. Dmitry?
>
> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Applied to the togreg branch of iio.git - initially pushed out
as testing for the autobuilders to mess with it.
Thanks,
Jonathan
>
>>> ---
>>> drivers/iio/adc/mxs-lradc.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/iio/adc/mxs-lradc.c b/drivers/iio/adc/mxs-lradc.c
>>> index 07287af..e4c4c5c 100644
>>> --- a/drivers/iio/adc/mxs-lradc.c
>>> +++ b/drivers/iio/adc/mxs-lradc.c
>>> @@ -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,
>>>
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-17 9:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1460316098.git.ksenija.stanojevic@gmail.com>
2016-04-10 19:22 ` [PATCH 2/2] iio: adc: set INPUT_PROP_DIRECT Ksenija Stanojevic
2016-04-16 19:26 ` Jonathan Cameron
2016-04-17 9:33 ` Dmitry Torokhov
2016-04-17 9:48 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox