dt: add helper functions to read u32 and string property values
authorThomas Abraham <thomas.abraham@linaro.org>
Thu, 30 Jun 2011 15:56:10 +0000 (20:56 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 30 Jun 2011 19:02:10 +0000 (13:02 -0600)
commita3b853633d78c3930b513ee219df48637ac82eed
tree30d36c4b3e03db070f72eeaeed3f2d1dd1da159b
parent7423734e19e7e0a90e3379152eacca2647f4377e
dt: add helper functions to read u32 and string property values

Add helper functions to retrieve unsigned integer and string property
values from properties of a device node. These helper functions can be
used to lookup a property in a device node, perform error checking and
read the property value.

[grant.likely@secretlab.ca: Proposal and initial implementation]
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
[grant.likely: some word smithing and be more defensive validating the string]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c
include/linux/of.h