* [PATCH] i2c-ocores: register devices on child nodes
@ 2011-02-10 2:51 Thomas Chou
[not found] ` <1297306314-11483-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Chou @ 2011-02-10 2:51 UTC (permalink / raw)
To: Grant Likely, Ben Dooks
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-i2c-u79uwXL29TY76Z2rM5mHXA, Thomas Chou
This patch registers devices on the devicetree child nodes to the bus.
Also removes one trailing whitespace.
Signed-off-by: Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
---
drivers/i2c/busses/i2c-ocores.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c
index ef3bcb1..c63838f 100644
--- a/drivers/i2c/busses/i2c-ocores.c
+++ b/drivers/i2c/busses/i2c-ocores.c
@@ -18,7 +18,7 @@
* - interrupts : interrupt number
* - regstep : size of device registers in bytes
* - clock-frequency : frequency of bus clock in Hz
- *
+ *
* Example:
*
* i2c0: ocores@a0000000 {
@@ -55,6 +55,7 @@
#include <linux/i2c-ocores.h>
#include <linux/slab.h>
#include <linux/io.h>
+#include <linux/of_i2c.h>
struct ocores_i2c {
void __iomem *base;
@@ -347,6 +348,9 @@ static int __devinit ocores_i2c_probe(struct platform_device *pdev)
i2c_new_device(&i2c->adap, pdata->devices + i);
}
+ /* Now register all the child nodes */
+ of_i2c_register_devices(&i2c->adap);
+
return 0;
}
--
1.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread[parent not found: <1297306314-11483-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>]
* Re: [PATCH] i2c-ocores: register devices on child nodes [not found] ` <1297306314-11483-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> @ 2011-02-16 4:35 ` Grant Likely 2011-02-20 23:28 ` Ben Dooks 2011-02-23 0:12 ` Ben Dooks 1 sibling, 1 reply; 7+ messages in thread From: Grant Likely @ 2011-02-16 4:35 UTC (permalink / raw) To: Thomas Chou Cc: Ben Dooks, linux-kernel-u79uwXL29TY76Z2rM5mHXA, nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA On Thu, Feb 10, 2011 at 10:51:54AM +0800, Thomas Chou wrote: > This patch registers devices on the devicetree child nodes to the bus. > Also removes one trailing whitespace. > > Signed-off-by: Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> Acked-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> Ben, do you want to pick this one up? Or should I merge it via my devicetree branch? g. > --- > drivers/i2c/busses/i2c-ocores.c | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c > index ef3bcb1..c63838f 100644 > --- a/drivers/i2c/busses/i2c-ocores.c > +++ b/drivers/i2c/busses/i2c-ocores.c > @@ -18,7 +18,7 @@ > * - interrupts : interrupt number > * - regstep : size of device registers in bytes > * - clock-frequency : frequency of bus clock in Hz > - * > + * > * Example: > * > * i2c0: ocores@a0000000 { > @@ -55,6 +55,7 @@ > #include <linux/i2c-ocores.h> > #include <linux/slab.h> > #include <linux/io.h> > +#include <linux/of_i2c.h> > > struct ocores_i2c { > void __iomem *base; > @@ -347,6 +348,9 @@ static int __devinit ocores_i2c_probe(struct platform_device *pdev) > i2c_new_device(&i2c->adap, pdata->devices + i); > } > > + /* Now register all the child nodes */ > + of_i2c_register_devices(&i2c->adap); > + > return 0; > } > > -- > 1.7.4 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] i2c-ocores: register devices on child nodes 2011-02-16 4:35 ` Grant Likely @ 2011-02-20 23:28 ` Ben Dooks [not found] ` <20110220232808.GL15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Ben Dooks @ 2011-02-20 23:28 UTC (permalink / raw) To: Grant Likely Cc: Thomas Chou, Ben Dooks, linux-kernel, nios2-dev, devicetree-discuss, linux-i2c On Tue, Feb 15, 2011 at 09:35:40PM -0700, Grant Likely wrote: > On Thu, Feb 10, 2011 at 10:51:54AM +0800, Thomas Chou wrote: > > This patch registers devices on the devicetree child nodes to the bus. > > Also removes one trailing whitespace. > > > > Signed-off-by: Thomas Chou <thomas@wytron.com.tw> > > Acked-by: Grant Likely <grant.likely@secretlab.ca> > > Ben, do you want to pick this one up? Or should I merge it via my > devicetree branch? If it applies to the mainline kernel, then I'll take it. -- Ben Dooks, ben@fluff.org, http://www.fluff.org/ben/ Large Hadron Colada: A large Pina Colada that makes the universe disappear. ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20110220232808.GL15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>]
* Re: [PATCH] i2c-ocores: register devices on child nodes [not found] ` <20110220232808.GL15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org> @ 2011-02-21 3:40 ` Grant Likely 0 siblings, 0 replies; 7+ messages in thread From: Grant Likely @ 2011-02-21 3:40 UTC (permalink / raw) To: Ben Dooks Cc: nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Ben Dooks On Sun, Feb 20, 2011 at 4:28 PM, Ben Dooks <ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org> wrote: > On Tue, Feb 15, 2011 at 09:35:40PM -0700, Grant Likely wrote: >> On Thu, Feb 10, 2011 at 10:51:54AM +0800, Thomas Chou wrote: >> > This patch registers devices on the devicetree child nodes to the bus. >> > Also removes one trailing whitespace. >> > >> > Signed-off-by: Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> >> >> Acked-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> >> >> Ben, do you want to pick this one up? Or should I merge it via my >> devicetree branch? > > If it applies to the mainline kernel, then I'll take it. It should apply to mainline no problem. g. > > -- > Ben Dooks, ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/ben/ > > Large Hadron Colada: A large Pina Colada that makes the universe disappear. > > -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] i2c-ocores: register devices on child nodes [not found] ` <1297306314-11483-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> 2011-02-16 4:35 ` Grant Likely @ 2011-02-23 0:12 ` Ben Dooks [not found] ` <20110223001252.GT15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org> 1 sibling, 1 reply; 7+ messages in thread From: Ben Dooks @ 2011-02-23 0:12 UTC (permalink / raw) To: Thomas Chou Cc: Grant Likely, Ben Dooks, linux-kernel-u79uwXL29TY76Z2rM5mHXA, nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA On Thu, Feb 10, 2011 at 10:51:54AM +0800, Thomas Chou wrote: > This patch registers devices on the devicetree child nodes to the bus. > Also removes one trailing whitespace. Is this required as an urgent fix, or can it queue for next merge window? > Signed-off-by: Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> > --- > drivers/i2c/busses/i2c-ocores.c | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c > index ef3bcb1..c63838f 100644 > --- a/drivers/i2c/busses/i2c-ocores.c > +++ b/drivers/i2c/busses/i2c-ocores.c > @@ -18,7 +18,7 @@ > * - interrupts : interrupt number > * - regstep : size of device registers in bytes > * - clock-frequency : frequency of bus clock in Hz > - * > + * > * Example: > * > * i2c0: ocores@a0000000 { > @@ -55,6 +55,7 @@ > #include <linux/i2c-ocores.h> > #include <linux/slab.h> > #include <linux/io.h> > +#include <linux/of_i2c.h> > > struct ocores_i2c { > void __iomem *base; > @@ -347,6 +348,9 @@ static int __devinit ocores_i2c_probe(struct platform_device *pdev) > i2c_new_device(&i2c->adap, pdata->devices + i); > } > > + /* Now register all the child nodes */ > + of_i2c_register_devices(&i2c->adap); > + > return 0; > } > > -- > 1.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Ben Dooks, ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/ben/ Large Hadron Colada: A large Pina Colada that makes the universe disappear. ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20110223001252.GT15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>]
* Re: [PATCH] i2c-ocores: register devices on child nodes [not found] ` <20110223001252.GT15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org> @ 2011-02-23 0:31 ` Thomas Chou [not found] ` <4D645578.3020906-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Thomas Chou @ 2011-02-23 0:31 UTC (permalink / raw) To: Ben Dooks Cc: nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Ben Dooks On 02/23/2011 08:12 AM, Ben Dooks wrote: > On Thu, Feb 10, 2011 at 10:51:54AM +0800, Thomas Chou wrote: >> This patch registers devices on the devicetree child nodes to the bus. >> Also removes one trailing whitespace. > > Is this required as an urgent fix, or can it queue for next merge window? It is not urgent. An it is fine to queue it for next merge window. - Thomas > >> Signed-off-by: Thomas Chou<thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> >> --- >> drivers/i2c/busses/i2c-ocores.c | 6 +++++- >> 1 files changed, 5 insertions(+), 1 deletions(-) >> >> diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c >> index ef3bcb1..c63838f 100644 >> --- a/drivers/i2c/busses/i2c-ocores.c >> +++ b/drivers/i2c/busses/i2c-ocores.c >> @@ -18,7 +18,7 @@ >> * - interrupts : interrupt number >> * - regstep : size of device registers in bytes >> * - clock-frequency : frequency of bus clock in Hz >> - * >> + * >> * Example: >> * >> * i2c0: ocores@a0000000 { >> @@ -55,6 +55,7 @@ >> #include<linux/i2c-ocores.h> >> #include<linux/slab.h> >> #include<linux/io.h> >> +#include<linux/of_i2c.h> >> >> struct ocores_i2c { >> void __iomem *base; >> @@ -347,6 +348,9 @@ static int __devinit ocores_i2c_probe(struct platform_device *pdev) >> i2c_new_device(&i2c->adap, pdata->devices + i); >> } >> >> + /* Now register all the child nodes */ >> + of_i2c_register_devices(&i2c->adap); >> + >> return 0; >> } >> >> -- >> 1.7.4 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <4D645578.3020906-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>]
* Re: [PATCH] i2c-ocores: register devices on child nodes [not found] ` <4D645578.3020906-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> @ 2011-02-23 1:07 ` Grant Likely 0 siblings, 0 replies; 7+ messages in thread From: Grant Likely @ 2011-02-23 1:07 UTC (permalink / raw) To: Thomas Chou Cc: Ben Dooks, Ben Dooks, linux-kernel-u79uwXL29TY76Z2rM5mHXA, nios2-dev-1eJk0qcHJCcaeqlQEoCUNoJY59XmG8rH, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-i2c-u79uwXL29TY76Z2rM5mHXA On Tue, Feb 22, 2011 at 5:31 PM, Thomas Chou <thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> wrote: > On 02/23/2011 08:12 AM, Ben Dooks wrote: >> >> On Thu, Feb 10, 2011 at 10:51:54AM +0800, Thomas Chou wrote: >>> >>> This patch registers devices on the devicetree child nodes to the bus. >>> Also removes one trailing whitespace. >> >> Is this required as an urgent fix, or can it queue for next merge window? > > It is not urgent. An it is fine to queue it for next merge window. Yes, queue for .39 g. > > - Thomas > >> >>> Signed-off-by: Thomas Chou<thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org> >>> --- >>> drivers/i2c/busses/i2c-ocores.c | 6 +++++- >>> 1 files changed, 5 insertions(+), 1 deletions(-) >>> >>> diff --git a/drivers/i2c/busses/i2c-ocores.c >>> b/drivers/i2c/busses/i2c-ocores.c >>> index ef3bcb1..c63838f 100644 >>> --- a/drivers/i2c/busses/i2c-ocores.c >>> +++ b/drivers/i2c/busses/i2c-ocores.c >>> @@ -18,7 +18,7 @@ >>> * - interrupts : interrupt number >>> * - regstep : size of device registers in bytes >>> * - clock-frequency : frequency of bus clock in Hz >>> - * >>> + * >>> * Example: >>> * >>> * i2c0: ocores@a0000000 { >>> @@ -55,6 +55,7 @@ >>> #include<linux/i2c-ocores.h> >>> #include<linux/slab.h> >>> #include<linux/io.h> >>> +#include<linux/of_i2c.h> >>> >>> struct ocores_i2c { >>> void __iomem *base; >>> @@ -347,6 +348,9 @@ static int __devinit ocores_i2c_probe(struct >>> platform_device *pdev) >>> i2c_new_device(&i2c->adap, pdata->devices + i); >>> } >>> >>> + /* Now register all the child nodes */ >>> + of_i2c_register_devices(&i2c->adap); >>> + >>> return 0; >>> } >>> >>> -- >>> 1.7.4 >>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-i2c" in >>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-02-23 1:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10 2:51 [PATCH] i2c-ocores: register devices on child nodes Thomas Chou
[not found] ` <1297306314-11483-1-git-send-email-thomas-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-16 4:35 ` Grant Likely
2011-02-20 23:28 ` Ben Dooks
[not found] ` <20110220232808.GL15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2011-02-21 3:40 ` Grant Likely
2011-02-23 0:12 ` Ben Dooks
[not found] ` <20110223001252.GT15795-SMNkleLxa3Z6Wcw2j4pizdi2O/JbrIOy@public.gmane.org>
2011-02-23 0:31 ` Thomas Chou
[not found] ` <4D645578.3020906-SDxUXYEhEBiCuPEqFHbRBg@public.gmane.org>
2011-02-23 1:07 ` Grant Likely
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).