aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/base.c
diff options
context:
space:
mode:
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,