From: Karsten Merker <merker@debian.org>
To: "Tirdea, Irina" <irina.tirdea@intel.com>
Cc: Karsten Merker <merker@debian.org>,
Bastien Nocera <hadess@hadess.net>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Aleksei Mamlin <mamlinav@gmail.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Chen-Yu Tsai <wens@csie.org>
Subject: Re: [PATCH RFC V2 1/3] Input: goodix - add dt axis swapping and axis inversion support
Date: Wed, 14 Oct 2015 22:10:21 +0200 [thread overview]
Message-ID: <20151014201021.GA1799@excalibur.cnev.de> (raw)
In-Reply-To: <1F3AC3675D538145B1661F571FE1805F2F0FE498@irsmsx105.ger.corp.intel.com>
On Tue, Oct 13, 2015 at 06:58:07AM +0000, Tirdea, Irina wrote:
>
> > -----Original Message-----
> > From: linux-input-owner@vger.kernel.org [mailto:linux-input-owner@vger.kernel.org] On Behalf Of Karsten Merker
> > Sent: 09 October, 2015 20:56
> > To: Bastien Nocera; Dmitry Torokhov; Tirdea, Irina; Aleksei Mamlin; linux-input@vger.kernel.org; Ian Campbell
> > Cc: devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Chen-Yu Tsai; Karsten Merker
> > Subject: [PATCH RFC V2 1/3] Input: goodix - add dt axis swapping and axis inversion support
> >
> > Implement support for the following device-tree properties
> > in the goodix touchscreen driver:
> >
> > - touchscreen-inverted-x: X axis is inverted (boolean)
> > - touchscreen-inverted-y: Y axis is inverted (boolean)
> > - touchscreen-swapped-x-y: X and Y axis are swapped (boolean)
> >
> > These are necessary on tablets which have a display in portrait
> > format while the touchscreen is in landscape format, such as e.g.
> > the MSI Primo 81.
[...]
> > @@ -950,6 +968,15 @@ static int goodix_ts_probe(struct i2c_client *client,
> > return 0;
> > }
> >
> > +#ifdef CONFIG_OF
> > + ts->swapped_x_y = of_property_read_bool(client->dev.of_node,
> > + "touchscreen-swapped-x-y");
> > + ts->inverted_x = of_property_read_bool(client->dev.of_node,
> > + "touchscreen-inverted-x");
> > + ts->inverted_y = of_property_read_bool(client->dev.of_node,
> > + "touchscreen-inverted-y");
> > +#endif
> > +
>
> If interrupt and reset gpio pins are declared in the DT configuration, this code will not
> be executed. To make the properties available for all configurations (with/without
> gpio pins declared), you should read the properties inside goodix_configure_dev().
>
> You could also use device_property_read_bool() instead, so that these properties can
> be used with ACPI 5.1. as well.
Hello,
many thanks for the review.
I'll address both points in a v3 of the patch.
Regards,
Karsten
--
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.
next prev parent reply other threads:[~2015-10-14 20:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-09 17:55 [PATCH RFC V2 0/3] Input: goodix - add axis swapping and axis inversion support Karsten Merker
2015-10-09 17:55 ` [PATCH RFC V2 1/3] Input: goodix - add dt " Karsten Merker
2015-10-12 13:10 ` Bastien Nocera
2015-10-13 6:58 ` Tirdea, Irina
2015-10-14 20:10 ` Karsten Merker [this message]
2015-10-09 17:55 ` [PATCH RFC V2 2/3] Input: goodix - use "inverted_[xy]" flags instead of "rotated_screen" Karsten Merker
2015-10-12 13:10 ` Bastien Nocera
2015-10-13 7:01 ` Tirdea, Irina
2015-10-09 17:55 ` [PATCH RFC V2 3/3] Input: goodix - update dt bindings documentation (axis swapping/inversion) Karsten Merker
2015-10-13 7:01 ` Tirdea, Irina
2015-10-12 13:09 ` [PATCH RFC V2 0/3] Input: goodix - add axis swapping and axis inversion support Bastien Nocera
2015-10-13 6:59 ` Tirdea, Irina
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=20151014201021.GA1799@excalibur.cnev.de \
--to=merker@debian.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=hadess@hadess.net \
--cc=ijc+devicetree@hellion.org.uk \
--cc=irina.tirdea@intel.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mamlinav@gmail.com \
--cc=wens@csie.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).