From: Bastien Nocera <hadess-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org>
To: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/3] input: goodix: Add device tree support
Date: Sat, 17 Jan 2015 21:38:05 +0100 [thread overview]
Message-ID: <1421527085.2075.12.camel@hadess.net> (raw)
In-Reply-To: <1421505361-8871-1-git-send-email-mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Sat, 2015-01-17 at 17:36 +0300, Aleksei Mamlin wrote:
> Signed-off-by: Aleksei Mamlin <mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> drivers/input/touchscreen/goodix.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
> index ca19668..603d2ae 100644
> --- a/drivers/input/touchscreen/goodix.c
> +++ b/drivers/input/touchscreen/goodix.c
> @@ -23,6 +23,7 @@
> #include <linux/irq.h>
> #include <linux/interrupt.h>
> #include <linux/slab.h>
> +#include <linux/of.h>
> #include <asm/unaligned.h>
>
> struct goodix_ts_data {
> @@ -378,6 +379,14 @@ static const struct acpi_device_id goodix_acpi_match[] = {
> };
> MODULE_DEVICE_TABLE(acpi, goodix_acpi_match);
>
> +#ifdef CONFIG_OF
> +static struct of_device_id goodix_of_match[] = {
> + { .compatible = "goodix,gt9xx" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, goodix_of_match);
> +#endif
> +
> static struct i2c_driver goodix_ts_driver = {
> .probe = goodix_ts_probe,
> .id_table = goodix_ts_id,
> @@ -385,6 +394,7 @@ static struct i2c_driver goodix_ts_driver = {
> .name = "Goodix-TS",
> .owner = THIS_MODULE,
> .acpi_match_table = goodix_acpi_match,
> + .of_match_table = of_match_ptr(goodix_of_match),
Pretty sure that wouldn't compile if CONFIG_OF is disabled.
> },
> };
> module_i2c_driver(goodix_ts_driver);
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-01-17 20:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-17 14:34 [PATCH 0/3] Add device tree support for Goodix GT9xx series touchscreen controller Aleksei Mamlin
[not found] ` <1421505253-7474-1-git-send-email-mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-17 14:36 ` [PATCH 1/3] input: goodix: Add device tree support Aleksei Mamlin
[not found] ` <1421505361-8871-1-git-send-email-mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-17 20:38 ` Bastien Nocera [this message]
[not found] ` <1421527085.2075.12.camel-0MeiytkfxGOsTnJN9+BGXg@public.gmane.org>
2015-01-18 12:25 ` Алексей Мамлин
2015-01-18 14:22 ` Antonio Ospite
2015-01-18 15:12 ` Aleksei Mamlin
2015-01-17 14:36 ` [PATCH 2/3] dt-bindings: Add vendor-prefix for Goodix Aleksei Mamlin
2015-01-17 14:36 ` [PATCH 3/3] input: goodix: Add bindings documentation Aleksei Mamlin
2015-01-19 12:13 ` Arnd Bergmann
2015-01-17 20:37 ` [PATCH 0/3] Add device tree support for Goodix GT9xx series touchscreen controller Bastien Nocera
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=1421527085.2075.12.camel@hadess.net \
--to=hadess-0meiytkfxgostnjn9+bgxg@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mamlinav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).