@@ -68,6 +68,9 @@ EXPORT_SYMBOL_GPL(fwnode_property_present);
68
68
* Function reads an array of u8 properties with @propname from the device
69
69
* firmware description and stores them to @val if found.
70
70
*
71
+ * It's recommended to call device_property_count_u8() instead of calling
72
+ * this function with @val equals %NULL and @nval equals 0.
73
+ *
71
74
* Return: number of values if @val was %NULL,
72
75
* %0 if the property was found (success),
73
76
* %-EINVAL if given arguments are not valid,
@@ -93,6 +96,9 @@ EXPORT_SYMBOL_GPL(device_property_read_u8_array);
93
96
* Function reads an array of u16 properties with @propname from the device
94
97
* firmware description and stores them to @val if found.
95
98
*
99
+ * It's recommended to call device_property_count_u16() instead of calling
100
+ * this function with @val equals %NULL and @nval equals 0.
101
+ *
96
102
* Return: number of values if @val was %NULL,
97
103
* %0 if the property was found (success),
98
104
* %-EINVAL if given arguments are not valid,
@@ -118,6 +124,9 @@ EXPORT_SYMBOL_GPL(device_property_read_u16_array);
118
124
* Function reads an array of u32 properties with @propname from the device
119
125
* firmware description and stores them to @val if found.
120
126
*
127
+ * It's recommended to call device_property_count_u32() instead of calling
128
+ * this function with @val equals %NULL and @nval equals 0.
129
+ *
121
130
* Return: number of values if @val was %NULL,
122
131
* %0 if the property was found (success),
123
132
* %-EINVAL if given arguments are not valid,
@@ -143,6 +152,9 @@ EXPORT_SYMBOL_GPL(device_property_read_u32_array);
143
152
* Function reads an array of u64 properties with @propname from the device
144
153
* firmware description and stores them to @val if found.
145
154
*
155
+ * It's recommended to call device_property_count_u64() instead of calling
156
+ * this function with @val equals %NULL and @nval equals 0.
157
+ *
146
158
* Return: number of values if @val was %NULL,
147
159
* %0 if the property was found (success),
148
160
* %-EINVAL if given arguments are not valid,
@@ -168,6 +180,9 @@ EXPORT_SYMBOL_GPL(device_property_read_u64_array);
168
180
* Function reads an array of string properties with @propname from the device
169
181
* firmware description and stores them to @val if found.
170
182
*
183
+ * It's recommended to call device_property_string_array_count() instead of calling
184
+ * this function with @val equals %NULL and @nval equals 0.
185
+ *
171
186
* Return: number of values read on success if @val is non-NULL,
172
187
* number of values available on success if @val is NULL,
173
188
* %-EINVAL if given arguments are not valid,
@@ -256,6 +271,9 @@ static int fwnode_property_read_int_array(const struct fwnode_handle *fwnode,
256
271
* Read an array of u8 properties with @propname from @fwnode and stores them to
257
272
* @val if found.
258
273
*
274
+ * It's recommended to call fwnode_property_count_u8() instead of calling
275
+ * this function with @val equals %NULL and @nval equals 0.
276
+ *
259
277
* Return: number of values if @val was %NULL,
260
278
* %0 if the property was found (success),
261
279
* %-EINVAL if given arguments are not valid,
@@ -282,6 +300,9 @@ EXPORT_SYMBOL_GPL(fwnode_property_read_u8_array);
282
300
* Read an array of u16 properties with @propname from @fwnode and store them to
283
301
* @val if found.
284
302
*
303
+ * It's recommended to call fwnode_property_count_u16() instead of calling
304
+ * this function with @val equals %NULL and @nval equals 0.
305
+ *
285
306
* Return: number of values if @val was %NULL,
286
307
* %0 if the property was found (success),
287
308
* %-EINVAL if given arguments are not valid,
@@ -308,6 +329,9 @@ EXPORT_SYMBOL_GPL(fwnode_property_read_u16_array);
308
329
* Read an array of u32 properties with @propname from @fwnode store them to
309
330
* @val if found.
310
331
*
332
+ * It's recommended to call fwnode_property_count_u32() instead of calling
333
+ * this function with @val equals %NULL and @nval equals 0.
334
+ *
311
335
* Return: number of values if @val was %NULL,
312
336
* %0 if the property was found (success),
313
337
* %-EINVAL if given arguments are not valid,
@@ -334,6 +358,9 @@ EXPORT_SYMBOL_GPL(fwnode_property_read_u32_array);
334
358
* Read an array of u64 properties with @propname from @fwnode and store them to
335
359
* @val if found.
336
360
*
361
+ * It's recommended to call fwnode_property_count_u64() instead of calling
362
+ * this function with @val equals %NULL and @nval equals 0.
363
+ *
337
364
* Return: number of values if @val was %NULL,
338
365
* %0 if the property was found (success),
339
366
* %-EINVAL if given arguments are not valid,
@@ -360,6 +387,9 @@ EXPORT_SYMBOL_GPL(fwnode_property_read_u64_array);
360
387
* Read an string list property @propname from the given firmware node and store
361
388
* them to @val if found.
362
389
*
390
+ * It's recommended to call fwnode_property_string_array_count() instead of calling
391
+ * this function with @val equals %NULL and @nval equals 0.
392
+ *
363
393
* Return: number of values read on success if @val is non-NULL,
364
394
* number of values available on success if @val is NULL,
365
395
* %-EINVAL if given arguments are not valid,
0 commit comments