From: Heiko Stuebner Date: Wed, 12 Feb 2014 00:00:34 +0000 (+0100) Subject: of: add functions to count number of elements in a property X-Git-Tag: v3.15-rc1~148^2~1^4~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad54a0cfbeb4bd4033d09017557ccbc423f9d5ff;p=pandora-kernel.git of: add functions to count number of elements in a property The need to know the number of array elements in a property is a common pattern. To prevent duplication of open-coded implementations add a helper static function that also centralises strict sanity checking and DTB format details, as well as a set of wrapper functions for u8, u16, u32 and u64. Suggested-by: Mark Rutland Signed-off-by: Heiko Stuebner Acked-by: Rob Herring Acked-by: Grant Likely Acked-by: Mark Rutland Signed-off-by: Mark Brown --- Reading git-diff-tree failed