Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1465012
| From | Finlye Xiao <finley.xiao@rock-chips.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/4] of: introduce of_property_read_s32_index |
| Date | 2016-08-18 11:10 +0200 |
| Message-ID | <s7ruN-66w-1@gated-at.bofh.it> (permalink) |
| References | <s7rl7-5No-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Finley Xiao <finley.xiao@rock-chips.com>
Introduce single indexed signed 32bit integer of_property_read method.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
---
include/linux/of.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/linux/of.h b/include/linux/of.h
index 3d9ff8e..8ef775e 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -929,6 +929,14 @@ static inline int of_property_read_s32(const struct device_node *np,
return of_property_read_u32(np, propname, (u32*) out_value);
}
+static inline int of_property_read_s32_index(const struct device_node *np,
+ const char *propname, u32 index,
+ s32 *out_value)
+{
+ return of_property_read_u32_index(np, propname, index,
+ (u32 *)out_value);
+}
+
#define of_for_each_phandle(it, err, np, ln, cn, cc) \
for (of_phandle_iterator_init((it), (np), (ln), (cn), (cc)), \
err = of_phandle_iterator_next(it); \
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] PM / AVS: add Rockchip cpu avs Finlye Xiao <finley.xiao@rock-chips.com> - 2016-08-18 11:00 +0200
[PATCH v2 2/4] of: introduce of_property_read_s32_index Finlye Xiao <finley.xiao@rock-chips.com> - 2016-08-18 11:10 +0200
[PATCH v2 3/4] dt-bindings: add binding document for Rockchip cpu avs Finlye Xiao <finley.xiao@rock-chips.com> - 2016-08-18 11:10 +0200
[PATCH v2 1/4] nvmem: rockchip-efuse: Change initcall to subsys Finlye Xiao <finley.xiao@rock-chips.com> - 2016-08-18 11:10 +0200
Re: [PATCH v2 1/4] nvmem: rockchip-efuse: Change initcall to subsys Heiko Stuebner <heiko@sntech.de> - 2016-08-19 03:00 +0200
Re: [PATCH v2 1/4] nvmem: rockchip-efuse: Change initcall to subsys Kevin Hilman <khilman@baylibre.com> - 2016-08-19 18:20 +0200
Re: [PATCH v2 1/4] nvmem: rockchip-efuse: Change initcall to subsys Kevin Hilman <khilman@baylibre.com> - 2016-08-19 05:20 +0200
csiph-web