Skip to contentSkip to conversation

usb: typec: add kernel-doc for priority and mode_selection members

PATCH In review Kit Dallege 3 participants 3 messages Mar 15 – Mar 16

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

PATCH 2/5 usb: typec: add kernel-doc for priority and mode_selection members

Document the priority and mode_selection members of struct typec_altmode that were added without kernel-doc descriptions.

This fixes the following warnings when building with W=1:

include/linux/usb/typec_altmode.h: struct member 'priority' not described in 'typec_altmode' include/linux/usb/typec_altmode.h: struct member 'mode_selection' not described in 'typec_altmode'

---
 include/linux/usb/typec_altmode.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/usb/typec_altmode.h +2 -0
index 0513d333b797..c7cfc4629484 100644
@@ -26,6 +26,8 @@ struct typec_altmode_ops;
  * @mode: Index of the Mode
  * @vdo: VDO returned by Discover Modes USB PD command
  * @active: Tells has the mode been entered or not
+ * @priority: Numeric priority for alternate mode selection ordering
+ * @mode_selection: Indicates support for the mode selection feature
  * @desc: Optional human readable description of the mode
  * @ops: Operations vector from the driver
  * @cable_ops: Cable operations vector from the driver.
Signature · 1 line
2.53.0
#1 lore raw
Quoted 10 lines · Kit Dallege

Document the priority and mode_selection members of struct typec_altmode that were added without kernel-doc descriptions.

This fixes the following warnings when building with W=1:

include/linux/usb/typec_altmode.h: struct member 'priority' not described in 'typec_altmode' include/linux/usb/typec_altmode.h: struct member 'mode_selection' not described in 'typec_altmode'

Please use your name, not an alias, to sign off on a patch. And no need to list it twice.

Also, where are the other 5 patches here?

thanks,

greg k-h

#2 lore raw
Quoted 9 lines · Greg Kroah-Hartman
Quoted 8 lines · Kit Dallege

Document the priority and mode_selection members of struct typec_altmode that were added without kernel-doc descriptions.

This fixes the following warnings when building with W=1:

include/linux/usb/typec_altmode.h: struct member 'priority' not described in 'typec_altmode' include/linux/usb/typec_altmode.h: struct member 'mode_selection' not described in 'typec_altmode'

Quoted 7 lines
Quoted 2 lines

Please use your name, not an alias, to sign off on a patch. And no need to list it twice.

Also, where are the other 5 patches here?

FWIW, other postings from this author were called as AI slop, so the contents should be thoroughly reviewed.

https://lore.kernel.org/all/?q=f%3A%22Kit+Dallege%22

Best regards,
Krzysztof