diff options
author | Eliad Peller <eliad@wizery.com> | 2015-11-15 13:47:22 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-11-15 16:24:29 +0100 |
commit | b3cb62500ef43511480f416f957cb6d60c24984b (patch) | |
tree | 00517b03859f127c3b5a84484ce214e6eaeb4146 /backport/backport-include/linux/of.h | |
parent | 7d07501a8b71a63644693133b94a46dc72bf113b (diff) |
backports: add of_find_property_value_of_size()
commit 2e98a32a274274fca0e6e ("backport: add
of_property_read_u64_array()") added a call
to of_find_property_value_of_size(), which is a
static function, causing compilation error.
Implement it locally as well.
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[remove of_find_property_value_of_size() from backport-3.10.c]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include/linux/of.h')
-rw-r--r-- | backport/backport-include/linux/of.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backport/backport-include/linux/of.h b/backport/backport-include/linux/of.h index bc0d7fd4..ab98061e 100644 --- a/backport/backport-include/linux/of.h +++ b/backport/backport-include/linux/of.h @@ -82,9 +82,6 @@ static inline const void *of_get_property(const struct device_node *node, extern int of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value); -/* This is static in the kernel, but we need it in multiple places */ -void *of_find_property_value_of_size(const struct device_node *np, - const char *propname, u32 len); #else static inline int of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value) @@ -170,6 +167,9 @@ static inline struct device_node *of_find_compatible_node( #if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0) #define of_property_read_u64_array LINUX_BACKPORT(of_property_read_u64_array) #ifdef CONFIG_OF +/* This is static in the kernel, but we need it in multiple places */ +void *of_find_property_value_of_size(const struct device_node *np, + const char *propname, u32 len); extern int of_property_read_u64_array(const struct device_node *np, const char *propname, u64 *out_values, |