Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

of: property: Fix documentation for out values

Property fetching functions which return number of successfully fetched
properties should not state that out-values are only modified if 0 is
returned. Fix this. Also, "pointer to return value" is slightly suboptimal
phrase as "return value" commonly refers to value function returns (not via
arguments). Rather use "pointer to found values".

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Matti Vaittinen and committed by
Rob Herring
7f3fefee cc57d7da

+4 -4
+4 -4
drivers/of/property.c
··· 164 164 * 165 165 * @np: device node from which the property value is to be read. 166 166 * @propname: name of the property to be searched. 167 - * @out_values: pointer to return value, modified only if return value is 0. 167 + * @out_values: pointer to found values. 168 168 * @sz_min: minimum number of array elements to read 169 169 * @sz_max: maximum number of array elements to read, if zero there is no 170 170 * upper limit on the number of elements in the dts entry but only ··· 212 212 * 213 213 * @np: device node from which the property value is to be read. 214 214 * @propname: name of the property to be searched. 215 - * @out_values: pointer to return value, modified only if return value is 0. 215 + * @out_values: pointer to found values. 216 216 * @sz_min: minimum number of array elements to read 217 217 * @sz_max: maximum number of array elements to read, if zero there is no 218 218 * upper limit on the number of elements in the dts entry but only ··· 260 260 * 261 261 * @np: device node from which the property value is to be read. 262 262 * @propname: name of the property to be searched. 263 - * @out_values: pointer to return value, modified only if return value is 0. 263 + * @out_values: pointer to return found values. 264 264 * @sz_min: minimum number of array elements to read 265 265 * @sz_max: maximum number of array elements to read, if zero there is no 266 266 * upper limit on the number of elements in the dts entry but only ··· 334 334 * 335 335 * @np: device node from which the property value is to be read. 336 336 * @propname: name of the property to be searched. 337 - * @out_values: pointer to return value, modified only if return value is 0. 337 + * @out_values: pointer to found values. 338 338 * @sz_min: minimum number of array elements to read 339 339 * @sz_max: maximum number of array elements to read, if zero there is no 340 340 * upper limit on the number of elements in the dts entry but only