Re: [Qemu-devel] [RESEND RFC 4/6] device_tree: introduce qemu_fdt_getprop_optional

2015-12-03 Thread Eric Auger
Hi Peter, On 11/27/2015 08:38 PM, Peter Crosthwaite wrote: > On Thu, Nov 19, 2015 at 7:22 AM, Eric Auger wrote: >> Current qemu_fdt_getprop exits if the property is not found. It is >> sometimes needed to read an optional property, in which case we do >> not wish to exit but simply returns a null

Re: [Qemu-devel] [RESEND RFC 4/6] device_tree: introduce qemu_fdt_getprop_optional

2015-11-27 Thread Peter Crosthwaite
On Thu, Nov 19, 2015 at 7:22 AM, Eric Auger wrote: > Current qemu_fdt_getprop exits if the property is not found. It is > sometimes needed to read an optional property, in which case we do > not wish to exit but simply returns a null value. > > This is what this new qemu_fdt_getprop_optional funct

Re: [Qemu-devel] [RESEND RFC 4/6] device_tree: introduce qemu_fdt_getprop_optional

2015-11-26 Thread Alex Bennée
Eric Auger writes: > Current qemu_fdt_getprop exits if the property is not found. It is > sometimes needed to read an optional property, in which case we do > not wish to exit but simply returns a null value. > > This is what this new qemu_fdt_getprop_optional function does. > > Signed-off-by: E

[Qemu-devel] [RESEND RFC 4/6] device_tree: introduce qemu_fdt_getprop_optional

2015-11-19 Thread Eric Auger
Current qemu_fdt_getprop exits if the property is not found. It is sometimes needed to read an optional property, in which case we do not wish to exit but simply returns a null value. This is what this new qemu_fdt_getprop_optional function does. Signed-off-by: Eric Auger --- device_tree.c