Skip to contentSkip to conversation

device property: Fix the description of struct fwnode_operations

PATCH In review Heikki Krogerus 3 participants 3 messages Oct 8, 2019 – Oct 11, 2019

Subsystems (3)
lore
Share & tools
lore

Heikki Krogerus

author reviewer
#0 lore raw

PATCH 1/1 device property: Fix the description of struct fwnode_operations

Adding description for the device_is_available member which was missing, and fixing the description of the member property_read_int_array.

---
 include/linux/fwnode.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/fwnode.h +3 -3
index 6ae05b9ce359..fc002aacae8d 100644
@@ -50,11 +50,11 @@ struct fwnode_reference_args {
  * struct fwnode_operations - Operations for fwnode interface
  * @get: Get a reference to an fwnode.
  * @put: Put a reference to an fwnode.
+ * @device_is_available: Return true if the device is available.
  * @device_get_match_data: Return the device driver match data.
  * @property_present: Return true if a property is present.
- * @property_read_integer_array: Read an array of integer properties. Return
- *				 zero on success, a negative error code
- *				 otherwise.
+ * @property_read_int_array: Read an array of integer properties. Return zero on
+ *			     success, a negative error code otherwise.
  * @property_read_string_array: Read an array of string properties. Return zero
  *				on success, a negative error code otherwise.
  * @get_parent: Return the parent of an fwnode.
Signature · 1 line
2.23.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Heikki Krogerus

Adding description for the device_is_available member which was missing, and fixing the description of the member property_read_int_array.

Quoted 28 lines
---
 include/linux/fwnode.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/fwnode.h +3 -3
index 6ae05b9ce359..fc002aacae8d 100644
@@ -50,11 +50,11 @@ struct fwnode_reference_args {
  * struct fwnode_operations - Operations for fwnode interface
  * @get: Get a reference to an fwnode.
  * @put: Put a reference to an fwnode.
+ * @device_is_available: Return true if the device is available.
  * @device_get_match_data: Return the device driver match data.
  * @property_present: Return true if a property is present.
- * @property_read_integer_array: Read an array of integer properties. Return
- *				 zero on success, a negative error code
- *				 otherwise.
+ * @property_read_int_array: Read an array of integer properties. Return zero on
+ *			     success, a negative error code otherwise.
  * @property_read_string_array: Read an array of string properties. Return zero
  *				on success, a negative error code otherwise.
  * @get_parent: Return the parent of an fwnode.
Signature · 1 line
2.23.0
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 24 lines · CEST Andy Shevchenko
Quoted 3 lines · Heikki Krogerus

Adding description for the device_is_available member which was missing, and fixing the description of the member property_read_int_array.

Quoted 17 lines
---
 include/linux/fwnode.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/linux/fwnode.h +1 -0
index 6ae05b9ce359..fc002aacae8d 100644
@@ -50,11 +50,11 @@ struct fwnode_reference_args {
  * struct fwnode_operations - Operations for fwnode interface
  * @get: Get a reference to an fwnode.
  * @put: Put a reference to an fwnode.
+ * @device_is_available: Return true if the device is available.
  * @device_get_match_data: Return the device driver match data.
  * @property_present: Return true if a property is present.
Quoted 10 lines

include/linux/fwnode.h struct fwnode_reference_args { · line 60

Quoted 8 lines
include/linux/fwnode.h +2 -3
- * @property_read_integer_array: Read an array of integer properties. Return
- *				 zero on success, a negative error code
- *				 otherwise.
+ * @property_read_int_array: Read an array of integer properties. Return zero on
+ *			     success, a negative error code otherwise.
  * @property_read_string_array: Read an array of string properties. Return zero
  *				on success, a negative error code otherwise.
  * @get_parent: Return the parent of an fwnode.

Applying as 5.5 material, thanks!