of: Add support for reading a u32 from a multi-value property.
authorTony Prisk <linux@prisktech.co.nz>
Sat, 23 Mar 2013 04:02:15 +0000 (17:02 +1300)
committerTony Prisk <linux@prisktech.co.nz>
Thu, 4 Apr 2013 04:58:59 +0000 (17:58 +1300)
commit3daf37260e965aa4bb060db99c2ed10b28109e04
treeea9a0908cf24622b29d21d16e30f995afe17a58a
parent8bb9660418e05bb1845ac1a2428444d78e322cc7
of: Add support for reading a u32 from a multi-value property.

This patch adds an of_property_read_u32_index() function to allow
reading a single indexed u32 value from a property containing multiple
u32 values.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rob Herring <robherring2@gmail.com>
drivers/of/base.c
include/linux/of.h