From: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>
To: Matthias Fend <Matthias.Fend@wolfvision.net>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH 2/2] Input: st1232 - handle common DT bindings
Date: Mon, 28 Jan 2019 11:08:44 -0800 [thread overview]
Message-ID: <20190128190844.GC34692@dtor-ws> (raw)
In-Reply-To: <1548666345-24667-2-git-send-email-matthias.fend@wolfvision.net>
Hi Matthias,
On Mon, Jan 28, 2019 at 09:06:08AM +0000, Matthias Fend wrote:
> This is required to specify generic touchscreen properties via DT.
>
> Signed-off-by: Matthias Fend <matthias.fend@wolfvision.net>
> ---
> drivers/input/touchscreen/st1232.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
> index 11ff32c..ad617ac 100644
> --- a/drivers/input/touchscreen/st1232.c
> +++ b/drivers/input/touchscreen/st1232.c
> @@ -21,6 +21,7 @@
> #include <linux/pm_qos.h>
> #include <linux/slab.h>
> #include <linux/types.h>
> +#include <linux/input/touchscreen.h>
>
> #define ST1232_TS_NAME "st1232-ts"
>
> @@ -195,6 +196,7 @@ static int st1232_ts_probe(struct i2c_client *client,
> input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, MAX_AREA, 0, 0);
> input_set_abs_params(input_dev, ABS_MT_POSITION_X, MIN_X, MAX_X, 0, 0);
> input_set_abs_params(input_dev, ABS_MT_POSITION_Y, MIN_Y, MAX_Y, 0, 0);
> + touchscreen_parse_properties(input_dev, true, NULL);
Do you think you could complete the conversion and also use
touchscreen_report_pos() to support common transformations (swap,
invert)?
Thanks!
--
Dmitry
next prev parent reply other threads:[~2019-01-28 19:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <419160a7-edf5-48cf-85ea-d6d5e9cd6e59.95bf7d06-047e-438c-8c7b-895af195351a.1a874761-69ea-4dcd-b6ec-8bdc7777bc57@emailsignatures365.codetwo.com>
2019-01-28 9:06 ` [PATCH 1/2] dt-bindings: input: touchscreen: st1232i: reference common DT bindings Matthias Fend
[not found] ` <419160a7-edf5-48cf-85ea-d6d5e9cd6e59.95bf7d06-047e-438c-8c7b-895af195351a.6448af99-cd65-4518-8f79-5ccc17d038ab@emailsignatures365.codetwo.com>
2019-01-28 9:06 ` [PATCH 2/2] Input: st1232 - handle " Matthias Fend
2019-01-28 19:08 ` dmitry.torokhov [this message]
[not found] <1548757144-2222-1-git-send-email-matthias.fend@wolfvision.net>
[not found] ` <1548757144-2222-2-git-send-email-matthias.fend@wolfvision.net>
2019-02-11 7:15 ` AW: " Matthias Fend
2019-02-11 8:45 ` 'dmitry.torokhov@gmail.com'
2019-02-11 8:51 ` Martin Kepplinger
2019-02-11 22:21 ` 'dmitry.torokhov@gmail.com'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190128190844.GC34692@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=Matthias.Fend@wolfvision.net \
--cc=devicetree@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).