From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Jean-Baptiste Theou <jtheou@adeneo-embedded.us>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org
Subject: [rtc-linux] Re: [PATCH 2/2] rtc-isl1208: add device tree support
Date: Tue, 26 May 2015 22:20:32 +0200 [thread overview]
Message-ID: <20150526202032.GK3199@piout.net> (raw)
In-Reply-To: <1432667550-24272-2-git-send-email-jtheou@adeneo-embedded.us>
Hi,
On 26/05/2015 at 12:12:30 -0700, Jean-Baptiste Theou wrote :
> Add a basic device tree support for isl1208 driver
>
> Signed-off-by: Jean-Baptiste Theou <jtheou@adeneo-embedded.us>
> ---
> drivers/rtc/rtc-isl1208.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c
> index c3c549d..b47a3f9 100644
> --- a/drivers/rtc/rtc-isl1208.c
> +++ b/drivers/rtc/rtc-isl1208.c
> @@ -692,6 +692,14 @@ isl1208_remove(struct i2c_client *client)
> return 0;
> }
>
> +#ifdef CONFIG_OF
> +static const struct of_device_id isl1208_dt_match[] = {
> + { .compatible = "isil,isl1208" },
> + { .compatible = "isil,isl1218" },
> + { },
> +};
> +#endif
> +
> static const struct i2c_device_id isl1208_id[] = {
> { "isl1208", 0 },
> { "isl1218", 0 },
> @@ -702,6 +710,7 @@ MODULE_DEVICE_TABLE(i2c, isl1208_id);
> static struct i2c_driver isl1208_driver = {
> .driver = {
> .name = "rtc-isl1208",
> + .of_match_table = of_match_ptr(isl1208_dt_match),
This patch is unnecessary as the i2c subsystem will already match
isil,isl1208 or isil,isl1218 with the i2c_device_id array.
> },
> .probe = isl1208_probe,
> .remove = isl1208_remove,
> --
> 2.4.0
>
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2015-05-26 20:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 19:12 [rtc-linux] [PATCH 1/2] rtc-isl1208: Add device tree binding Jean-Baptiste Theou
2015-05-26 19:12 ` [rtc-linux] [PATCH 2/2] rtc-isl1208: add device tree support Jean-Baptiste Theou
2015-05-26 20:20 ` Alexandre Belloni [this message]
2015-05-26 20:49 ` [rtc-linux] " Jean-Baptiste Theou
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=20150526202032.GK3199@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=a.zummo@towertech.it \
--cc=jtheou@adeneo-embedded.us \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/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