Skip to contentSkip to conversation

usb: typec: Fix num_altmodes kernel-doc error

PATCH In review Prashant Malani 3 participants 4 messages Nov 20, 2020

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

PATCH 1/1 usb: typec: Fix num_altmodes kernel-doc error

The commit to introduce the num_altmodes attribute for partner had an error where one of the parameters was named differently in the comment and the function signature. Fix the version in the comment to align with what is in the function signature.

This fixes the following htmldocs warning:

drivers/usb/typec/class.c:632: warning: Excess function parameter 'num_alt_modes' description in 'typec_partner_set_num_altmodes'

Fixes a0ccdc4a77a1 ("usb: typec: Add number of altmodes partner attr")
---
 drivers/usb/typec/class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/class.c +1 -1
index e68798599ca8..cb1362187a7c 100644
@@ -618,7 +618,7 @@ EXPORT_SYMBOL_GPL(typec_partner_set_identity);
 /**
  * typec_partner_set_num_altmodes - Set the number of available partner altmodes
  * @partner: The partner to be updated.
- * @num_alt_modes: The number of altmodes we want to specify as available.
+ * @num_altmodes: The number of altmodes we want to specify as available.
  *
  * This routine is used to report the number of alternate modes supported by the
  * partner. This value is *not* enforced in alternate mode registration routines.
Signature · 1 line
2.29.2.454.gaff20da3a2-goog
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Prashant Malani

The commit to introduce the num_altmodes attribute for partner had an error where one of the parameters was named differently in the comment and the function signature. Fix the version in the comment to align with what is in the function signature.

Quoted 7 lines

This fixes the following htmldocs warning:

drivers/usb/typec/class.c:632: warning: Excess function parameter 'num_alt_modes' description in 'typec_partner_set_num_altmodes'

Fixes a0ccdc4a77a1 ("usb: typec: Add number of altmodes partner attr")
Quoted 19 lines
---
 drivers/usb/typec/class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/class.c +1 -1
index e68798599ca8..cb1362187a7c 100644
@@ -618,7 +618,7 @@ EXPORT_SYMBOL_GPL(typec_partner_set_identity);
 /**
  * typec_partner_set_num_altmodes - Set the number of available partner altmodes
  * @partner: The partner to be updated.
- * @num_alt_modes: The number of altmodes we want to specify as available.
+ * @num_altmodes: The number of altmodes we want to specify as available.
  *
  * This routine is used to report the number of alternate modes supported by the
  * partner. This value is *not* enforced in alternate mode registration routines.
Signature · 1 line
2.29.2.454.gaff20da3a2-goog

thanks,

Signature · 1 line
heikki
maintainer
#2 lore raw
In reply to Prashant Malani
Quoted 5 lines · Prashant Malani

The commit to introduce the num_altmodes attribute for partner had an error where one of the parameters was named differently in the comment and the function signature. Fix the version in the comment to align with what is in the function signature.

Quoted 7 lines

This fixes the following htmldocs warning:

drivers/usb/typec/class.c:632: warning: Excess function parameter 'num_alt_modes' description in 'typec_partner_set_num_altmodes'

Fixes a0ccdc4a77a1 ("usb: typec: Add number of altmodes partner attr")

You forgot a "Reported-by:" tag here :(

I'll go add it by hand...

greg k-h

#3 lore raw
Quoted 11 lines · Greg KH
Quoted 10 lines · Prashant Malani

The commit to introduce the num_altmodes attribute for partner had an error where one of the parameters was named differently in the comment and the function signature. Fix the version in the comment to align with what is in the function signature.

This fixes the following htmldocs warning:

drivers/usb/typec/class.c:632: warning: Excess function parameter 'num_alt_modes' description in 'typec_partner_set_num_altmodes'

Quoted 6 lines
Quoted 2 lines
Fixes a0ccdc4a77a1 ("usb: typec: Add number of altmodes partner attr")

You forgot a "Reported-by:" tag here :(

I'll go add it by hand...

My bad :(, thank you for making the addition.

Best regards,

-Prashant