diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 23:58:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 23:58:25 -0400 |
commit | 81a3c10ce8a7fd5bf9a06bfc38bd417512911831 (patch) | |
tree | 12ceac10fae8c4b2dc17b362672a5db305a8d960 /include | |
parent | 6585dea1f99cc2265582ff2e4cc1727062136e92 (diff) | |
parent | df80442d1ee2902c2e39f90f18160f2e08d14c06 (diff) |
Merge branch 'next/cleanup2' of git://git.linaro.org/people/arnd/arm-soc
* 'next/cleanup2' of git://git.linaro.org/people/arnd/arm-soc: (31 commits)
ARM: OMAP: Warn if omap_ioremap is called before SoC detection
ARM: OMAP: Move set_globals initialization to happen in init_early
ARM: OMAP: Map SRAM later on with ioremap_exec()
ARM: OMAP: Remove calls to SRAM allocations for framebuffer
ARM: OMAP: Avoid cpu_is_omapxxxx usage until map_io is done
ARM: OMAP1: Use generic map_io, init_early and init_irq
arm/dts: OMAP3+: Add mpu, dsp and iva nodes
arm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver
ARM: OMAP2+: l3-noc: Add support for device-tree
ARM: OMAP2+: board-generic: Add i2c static init
ARM: OMAP2+: board-generic: Add DT support to generic board
arm/dts: Add support for OMAP3 Beagle board
arm/dts: Add initial device tree support for OMAP3 SoC
arm/dts: Add support for OMAP4 SDP board
arm/dts: Add support for OMAP4 PandaBoard
arm/dts: Add initial device tree support for OMAP4 SoC
ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node
ARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration
of: Add helpers to get one string in multiple strings property
ARM: OMAP2+: devices: Remove all omap_device_pm_latency structures
...
Fix up trivial header file conflicts in arch/arm/mach-omap2/board-generic.c
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/of.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 5dbe263462a9..f01ba8a209c0 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -207,6 +207,11 @@ extern int of_property_read_u64(const struct device_node *np, | |||
207 | extern int of_property_read_string(struct device_node *np, | 207 | extern int of_property_read_string(struct device_node *np, |
208 | const char *propname, | 208 | const char *propname, |
209 | const char **out_string); | 209 | const char **out_string); |
210 | extern int of_property_read_string_index(struct device_node *np, | ||
211 | const char *propname, | ||
212 | int index, const char **output); | ||
213 | extern int of_property_count_strings(struct device_node *np, | ||
214 | const char *propname); | ||
210 | extern int of_device_is_compatible(const struct device_node *device, | 215 | extern int of_device_is_compatible(const struct device_node *device, |
211 | const char *); | 216 | const char *); |
212 | extern int of_device_is_available(const struct device_node *device); | 217 | extern int of_device_is_available(const struct device_node *device); |
@@ -283,6 +288,19 @@ static inline int of_property_read_string(struct device_node *np, | |||
283 | return -ENOSYS; | 288 | return -ENOSYS; |
284 | } | 289 | } |
285 | 290 | ||
291 | static inline int of_property_read_string_index(struct device_node *np, | ||
292 | const char *propname, int index, | ||
293 | const char **out_string) | ||
294 | { | ||
295 | return -ENOSYS; | ||
296 | } | ||
297 | |||
298 | static inline int of_property_count_strings(struct device_node *np, | ||
299 | const char *propname) | ||
300 | { | ||
301 | return -ENOSYS; | ||
302 | } | ||
303 | |||
286 | static inline const void *of_get_property(const struct device_node *node, | 304 | static inline const void *of_get_property(const struct device_node *node, |
287 | const char *name, | 305 | const char *name, |
288 | int *lenp) | 306 | int *lenp) |