From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: jzp0409 <jzp0409@163.com>
Cc: linux-input@vger.kernel.org, jiangzhipeng <jiangzhipeng@yulong.com>
Subject: Re: [PATCH] Input: ft5x06 - of_device_id using CONFIG_OF
Date: Tue, 19 Jan 2021 17:14:04 -0800 [thread overview]
Message-ID: <YAeD3LyTyR4T7Qxz@google.com> (raw)
In-Reply-To: <20210120005301.2158-1-jzp0409@163.com>
On Wed, Jan 20, 2021 at 08:53:01AM +0800, jzp0409 wrote:
> From: jiangzhipeng <jiangzhipeng@yulong.com>
>
> ft5x06 use of_device_id,Use CONFIG_OF include
This will not compile with !C0NFIG_OF.
>
> Signed-off-by: jiangzhipeng <jiangzhipeng@yulong.com>
> ---
> drivers/input/touchscreen/edt-ft5x06.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c
> index 2eefbc2..c69fde0 100644
> --- a/drivers/input/touchscreen/edt-ft5x06.c
> +++ b/drivers/input/touchscreen/edt-ft5x06.c
> @@ -1371,6 +1371,7 @@ static SIMPLE_DEV_PM_OPS(edt_ft5x06_ts_pm_ops,
> };
> MODULE_DEVICE_TABLE(i2c, edt_ft5x06_ts_id);
>
> +#ifdef CONFIG_OF
> static const struct of_device_id edt_ft5x06_of_match[] = {
> { .compatible = "edt,edt-ft5206", .data = &edt_ft5x06_data },
> { .compatible = "edt,edt-ft5306", .data = &edt_ft5x06_data },
> @@ -1382,6 +1383,7 @@ static SIMPLE_DEV_PM_OPS(edt_ft5x06_ts_pm_ops,
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, edt_ft5x06_of_match);
> +#endif
>
> static struct i2c_driver edt_ft5x06_ts_driver = {
> .driver = {
> --
> 1.9.1
>
>
Thanks.
--
Dmitry
prev parent reply other threads:[~2021-01-20 1:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 0:53 [PATCH] Input: ft5x06 - of_device_id using CONFIG_OF jzp0409
2021-01-20 1:14 ` Dmitry Torokhov [this message]
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=YAeD3LyTyR4T7Qxz@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=jiangzhipeng@yulong.com \
--cc=jzp0409@163.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).