summaryrefslogtreecommitdiffstats
path: root/drivers/of/base.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 18:51:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 18:51:45 -0400
commit74b9272bbedf45cb01a048217830d64d59aaa73b (patch)
tree11cf66b529d4861edd03d16f97c8178e9cfd9f77 /drivers/of/base.c
parentf5b63ac0f77ecab46796ba5d368ea5dd51834e6e (diff)
parent6dd18e4684f3d188277bbbc27545248487472108 (diff)
Merge tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux
Pull device tree updates from Grant Likely: "This branch contains the following changes: - Removal of CONFIG_OF_DEVICE, it is always enabled by CONFIG_OF - Remove #ifdef from linux/of_platform.h to increase compiler syntax coverage - Bug fix for address decoding on Bimini and js2x powerpc platforms. - miscellaneous binding changes One note on the above. The binding changes going in from all kinds of different trees has gotten rather out of hand. I picked up some during this cycle, but even going though my tree isn't a great fit. Ian Campbell has prototyped splitting the bindings and .dtb files into a separate repository. The plan is to migrate to using that sometime in the next few kernel releases which should get rid of a lot of the churn on binding docs and .dts files" * tag 'devicetree-for-linus' of git://git.secretlab.ca/git/linux: of: Fix address decoding on Bimini and js2x machines of: remove CONFIG_OF_DEVICE usb: chipidea: depend on CONFIG_OF instead of CONFIG_OF_DEVICE of: remove of_platform_driver ibmebus: convert of_platform_driver to platform_driver driver core: move to_platform_driver to platform_device.h mfd: DT bindings for the palmas family MFD ARM: dts: omap3-devkit8000: fix NAND memory binding of/base: fix typos of: remove #ifdef from linux/of_platform.h
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r--drivers/of/base.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index a6f584a7f4a1..5c5427918eb2 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -812,7 +812,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_index);
812 * 812 *
813 * @np: device node from which the property value is to be read. 813 * @np: device node from which the property value is to be read.
814 * @propname: name of the property to be searched. 814 * @propname: name of the property to be searched.
815 * @out_value: pointer to return value, modified only if return value is 0. 815 * @out_values: pointer to return value, modified only if return value is 0.
816 * @sz: number of array elements to read 816 * @sz: number of array elements to read
817 * 817 *
818 * Search for a property in a device node and read 8-bit value(s) from 818 * Search for a property in a device node and read 8-bit value(s) from
@@ -823,7 +823,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_index);
823 * dts entry of array should be like: 823 * dts entry of array should be like:
824 * property = /bits/ 8 <0x50 0x60 0x70>; 824 * property = /bits/ 8 <0x50 0x60 0x70>;
825 * 825 *
826 * The out_value is modified only if a valid u8 value can be decoded. 826 * The out_values is modified only if a valid u8 value can be decoded.
827 */ 827 */
828int of_property_read_u8_array(const struct device_node *np, 828int of_property_read_u8_array(const struct device_node *np,
829 const char *propname, u8 *out_values, size_t sz) 829 const char *propname, u8 *out_values, size_t sz)
@@ -845,7 +845,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u8_array);
845 * 845 *
846 * @np: device node from which the property value is to be read. 846 * @np: device node from which the property value is to be read.
847 * @propname: name of the property to be searched. 847 * @propname: name of the property to be searched.
848 * @out_value: pointer to return value, modified only if return value is 0. 848 * @out_values: pointer to return value, modified only if return value is 0.
849 * @sz: number of array elements to read 849 * @sz: number of array elements to read
850 * 850 *
851 * Search for a property in a device node and read 16-bit value(s) from 851 * Search for a property in a device node and read 16-bit value(s) from
@@ -856,7 +856,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u8_array);
856 * dts entry of array should be like: 856 * dts entry of array should be like:
857 * property = /bits/ 16 <0x5000 0x6000 0x7000>; 857 * property = /bits/ 16 <0x5000 0x6000 0x7000>;
858 * 858 *
859 * The out_value is modified only if a valid u16 value can be decoded. 859 * The out_values is modified only if a valid u16 value can be decoded.
860 */ 860 */
861int of_property_read_u16_array(const struct device_node *np, 861int of_property_read_u16_array(const struct device_node *np,
862 const char *propname, u16 *out_values, size_t sz) 862 const char *propname, u16 *out_values, size_t sz)
@@ -879,7 +879,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u16_array);
879 * 879 *
880 * @np: device node from which the property value is to be read. 880 * @np: device node from which the property value is to be read.
881 * @propname: name of the property to be searched. 881 * @propname: name of the property to be searched.
882 * @out_value: pointer to return value, modified only if return value is 0. 882 * @out_values: pointer to return value, modified only if return value is 0.
883 * @sz: number of array elements to read 883 * @sz: number of array elements to read
884 * 884 *
885 * Search for a property in a device node and read 32-bit value(s) from 885 * Search for a property in a device node and read 32-bit value(s) from
@@ -887,7 +887,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u16_array);
887 * -ENODATA if property does not have a value, and -EOVERFLOW if the 887 * -ENODATA if property does not have a value, and -EOVERFLOW if the
888 * property data isn't large enough. 888 * property data isn't large enough.
889 * 889 *
890 * The out_value is modified only if a valid u32 value can be decoded. 890 * The out_values is modified only if a valid u32 value can be decoded.
891 */ 891 */
892int of_property_read_u32_array(const struct device_node *np, 892int of_property_read_u32_array(const struct device_node *np,
893 const char *propname, u32 *out_values, 893 const char *propname, u32 *out_values,