Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-20 Thread Rafael J. Wysocki
On Monday, October 20, 2014 04:19:57 PM Arnd Bergmann wrote: > On Monday 20 October 2014 01:46:00 Rafael J. Wysocki wrote: > > > > > Something like: > > > > > > #define define_fwnode_accessors(__type, __devprop_type) \ > > > int device_property_read_##__type(struct device *dev, \ > > >

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-20 Thread Rafael J. Wysocki
On Monday, October 20, 2014 04:18:18 PM Grant Likely wrote: > On Mon, 20 Oct 2014 01:46 +0200 > , "Rafael J. Wysocki" > wrote: > > On Saturday, October 18, 2014 04:55:20 PM Grant Likely wrote: > > > On Fri, 17 Oct 2014 14:14:53 +0200 [cut] > > > > No, that wouldn't work for ACPI (if I understa

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-20 Thread Grant Likely
On Mon, Oct 20, 2014 at 4:19 PM, Arnd Bergmann wrote: > On Monday 20 October 2014 01:46:00 Rafael J. Wysocki wrote: >> >> > Something like: >> > >> > #define define_fwnode_accessors(__type, __devprop_type) \ >> > int device_property_read_##__type(struct device *dev, \ >> >

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-20 Thread Arnd Bergmann
On Monday 20 October 2014 01:46:00 Rafael J. Wysocki wrote: > > > Something like: > > > > #define define_fwnode_accessors(__type, __devprop_type) \ > > int device_property_read_##__type(struct device *dev, \ > > const char *propname, __type *val) \ > > { \ > >

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-20 Thread Grant Likely
On Mon, 20 Oct 2014 01:46 +0200 , "Rafael J. Wysocki" wrote: > On Saturday, October 18, 2014 04:55:20 PM Grant Likely wrote: > > On Fri, 17 Oct 2014 14:14:53 +0200 > > , "Rafael J. Wysocki" > > wrote: > > > From: Rafael J. Wysocki > > > > > > Add new generic routines are provided for retrievi

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-20 Thread Arnd Bergmann
On Monday 20 October 2014 01:30:47 Rafael J. Wysocki wrote: > On Saturday, October 18, 2014 11:35:21 AM Arnd Bergmann wrote: > > On Friday 17 October 2014 14:14:53 Rafael J. Wysocki wrote: > > > +/** > > > + * fwnode_property_present - check if a property of a firmware node is > > > present > > >

[Update][PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add new generic routines are provided for retrieving properties from device description objects in the platform firmware in case there are no struct device objects for them (either those objects have not been created yet or they do not exist at all). The following functio

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-19 Thread Rafael J. Wysocki
On Saturday, October 18, 2014 04:55:20 PM Grant Likely wrote: > On Fri, 17 Oct 2014 14:14:53 +0200 > , "Rafael J. Wysocki" > wrote: > > From: Rafael J. Wysocki > > > > Add new generic routines are provided for retrieving properties from > > device description objects in the platform firmware in

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-19 Thread Rafael J. Wysocki
On Monday, October 20, 2014 06:14:34 AM Greg Kroah-Hartman wrote: > On Fri, Oct 17, 2014 at 02:14:53PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Add new generic routines are provided for retrieving properties from > > device description objects in the platform firmware i

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-19 Thread Rafael J. Wysocki
On Saturday, October 18, 2014 11:35:21 AM Arnd Bergmann wrote: > On Friday 17 October 2014 14:14:53 Rafael J. Wysocki wrote: > > +/** > > + * fwnode_property_present - check if a property of a firmware node is > > present > > + * @fwnode: Firmware node whose property to check > > + * @propname: Na

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-19 Thread Greg Kroah-Hartman
On Fri, Oct 17, 2014 at 02:14:53PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add new generic routines are provided for retrieving properties from > device description objects in the platform firmware in case there are > no struct device objects for them (either those objects h

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-18 Thread Grant Likely
On Fri, 17 Oct 2014 14:14:53 +0200 , "Rafael J. Wysocki" wrote: > From: Rafael J. Wysocki > > Add new generic routines are provided for retrieving properties from > device description objects in the platform firmware in case there are > no struct device objects for them (either those objects ha

Re: [PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-18 Thread Arnd Bergmann
On Friday 17 October 2014 14:14:53 Rafael J. Wysocki wrote: > +/** > + * fwnode_property_present - check if a property of a firmware node is > present > + * @fwnode: Firmware node whose property to check > + * @propname: Name of the property > + */ > +bool fwnode_property_present(struct fwnode_han

[PATCH v5 09/12] Driver core: Unified interface for firmware node properties

2014-10-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add new generic routines are provided for retrieving properties from device description objects in the platform firmware in case there are no struct device objects for them (either those objects have not been created yet or they do not exist at all). The following functio