devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Fend <Matthias.Fend@wolfvision.net>
To: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>
Cc: Matthias Fend <Matthias.Fend@wolfvision.net>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: [PATCH 2/2] Input: st1232 - handle common DT bindings
Date: Mon, 28 Jan 2019 09:06:08 +0000	[thread overview]
Message-ID: <1548666345-24667-2-git-send-email-matthias.fend@wolfvision.net> (raw)
In-Reply-To: <1548666345-24667-1-git-send-email-matthias.fend@wolfvision.net>

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);
 
 	error = devm_request_threaded_irq(&client->dev, client->irq,
 					  NULL, st1232_ts_irq_handler,
-- 
2.7.4


Matthias Fend
R&D Electronics 

Wolfvision GmbH
Oberes Ried 14 | 6833 Klaus | Austria 
Tel: +43 5523 52250 | Mail: Matthias.Fend@wolfvision.net 

Webpage: www.wolfvision.com | www.wolfvision.com/green
Firmenbuch / Commercial Register: FN283521v Feldkirch/Austria


  parent reply	other threads:[~2019-01-28  9:06 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     ` Matthias Fend [this message]
2019-01-28 19:08       ` [PATCH 2/2] Input: st1232 - handle " dmitry.torokhov
     [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=1548666345-24667-2-git-send-email-matthias.fend@wolfvision.net \
    --to=matthias.fend@wolfvision.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --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).