Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-20 Thread Grant Likely
On Mon, 19 Nov 2012 10:52:02 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 10:31 Thu 15 Nov , Sascha Hauer wrote: > > devicetrees may have a linux,stdout-path property in the chosen > > node describing the console device. This adds a helper function > > to match a device against this pr

Re: [PATCH 1/3] OF: Add helper for matching against linux,stdout-path

2012-11-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:31 Thu 15 Nov , Sascha Hauer wrote: > devicetrees may have a linux,stdout-path property in the chosen > node describing the console device. This adds a helper function > to match a device against this property so a driver can call > add_preferred_console for a matching device. I like it

[PATCH 1/3] OF: Add helper for matching against linux,stdout-path

2012-11-15 Thread Sascha Hauer
devicetrees may have a linux,stdout-path property in the chosen node describing the console device. This adds a helper function to match a device against this property so a driver can call add_preferred_console for a matching device. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 28

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-15 Thread Grant Likely
On Thu, Nov 15, 2012 at 8:49 AM, Sascha Hauer wrote: > On Wed, Nov 14, 2012 at 08:49:54PM +, Grant Likely wrote: >> On Fri, Nov 2, 2012 at 9:48 AM, Sascha Hauer wrote: >> > devicetrees may have a linux,stdout-path property in the chosen >> > node describing the console device. This adds a hel

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-15 Thread Sascha Hauer
On Wed, Nov 14, 2012 at 08:49:54PM +, Grant Likely wrote: > On Fri, Nov 2, 2012 at 9:48 AM, Sascha Hauer wrote: > > devicetrees may have a linux,stdout-path property in the chosen > > node describing the console device. This adds a helper function > > to match a device against this property so

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-15 Thread Sascha Hauer
On Wed, Nov 14, 2012 at 08:49:54PM +, Grant Likely wrote: > > +int of_device_is_stdout_path(struct device_node *dn) > > +{ > > + const char *name; > > + > > + name = of_get_property(of_chosen, "linux,stdout-path", NULL); > > + if (name == NULL) > > + return 0; >

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-14 Thread Grant Likely
On Fri, Nov 2, 2012 at 9:48 AM, Sascha Hauer wrote: > devicetrees may have a linux,stdout-path property in the chosen > node describing the console device. This adds a helper function > to match a device against this property so a driver can call > add_preferred_console for a matching device. > >

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-14 Thread Greg Kroah-Hartman
On Fri, Nov 02, 2012 at 10:48:52AM +0100, Sascha Hauer wrote: > devicetrees may have a linux,stdout-path property in the chosen > node describing the console device. This adds a helper function > to match a device against this property so a driver can call > add_preferred_console for a matching dev

[PATCH 1/3] OF: Add helper for matching against linux,stdout-path

2012-11-02 Thread Sascha Hauer
devicetrees may have a linux,stdout-path property in the chosen node describing the console device. This adds a helper function to match a device against this property so a driver can call add_preferred_console for a matching device. Signed-off-by: Sascha Hauer --- drivers/of/Kconfig|