Skip to contentSkip to conversation

usb: typec: Correct the documentation for typec_cable_put()

PATCH In review Azhar Shaikh 2 participants 2 messages Mar 26, 2020 – Mar 27, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: typec: Correct the documentation for typec_cable_put()

typec_cable_put() function had typec_cable_get in it's documentation. Change it to reflect the correct name.

---
 drivers/usb/typec/class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/class.c +1 -1
index 7c44e930602f..a7ca415ad1ef 100644
@@ -859,7 +859,7 @@ struct typec_cable *typec_cable_get(struct typec_port *port)
 EXPORT_SYMBOL_GPL(typec_cable_get);
 
 /**
- * typec_cable_get - Decrement the reference count on USB Type-C cable
+ * typec_cable_put - Decrement the reference count on USB Type-C cable
  * @cable: The USB Type-C cable
  */
 void typec_cable_put(struct typec_cable *cable)
Signature · 1 line
2.17.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Azhar Shaikh

typec_cable_put() function had typec_cable_get in it's documentation. Change it to reflect the correct name.

Quoted 19 lines
---
 drivers/usb/typec/class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/class.c +1 -1
index 7c44e930602f..a7ca415ad1ef 100644
@@ -859,7 +859,7 @@ struct typec_cable *typec_cable_get(struct typec_port *port)
 EXPORT_SYMBOL_GPL(typec_cable_get);
 
 /**
- * typec_cable_get - Decrement the reference count on USB Type-C cable
+ * typec_cable_put - Decrement the reference count on USB Type-C cable
  * @cable: The USB Type-C cable
  */
 void typec_cable_put(struct typec_cable *cable)
Signature · 1 line
2.17.1

thanks,

Signature · 1 line
heikki