Skip to contentSkip to conversation

USB: ohci: ohci_pdriver.h: fix missing kernel-doc comments

PATCH Superseded Randy Dunlap 3 participants 4 messages Nov 3 USB

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 USB: ohci: ohci_pdriver.h: fix missing kernel-doc comments

Convert comments to kernel-doc format to avoid kernel-doc warnings:

Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_suspend'
not described in 'usb_ohci_pdata'

---
v2: move all kernel-doc comments to before the struct instead of
having them inline insidet the struct. (Alan)

Cc Alan Stern <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
 include/linux/usb/ohci_pdriver.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/usb/ohci_pdriver.h +4 -4
@@ -13,6 +13,10 @@
  * @big_endian_mmio:	BE registers
  * @no_big_frame_no:	no big endian frame_no shift
  * @num_ports:		number of ports
+ * @power_on: Turn on all power and clocks
+ * @power_off: Turn off all power and clocks
+ * @power_suspend: Turn on only VBUS suspend power and hotplug
+ *                 detection, turn off everything else
  *
  * These are general configuration options for the OHCI controller. All of
  * these options are activating more or less workarounds for some hardware.
@@ -23,12 +27,8 @@ struct usb_ohci_pdata {
 	unsigned	no_big_frame_no:1;
 	unsigned int	num_ports;
 
-	/* Turn on all power and clocks */
 	int (*power_on)(struct platform_device *pdev);
-	/* Turn off all power and clocks */
 	void (*power_off)(struct platform_device *pdev);
-	/* Turn on only VBUS suspend power and hotplug detection,
-	 * turn off everything else */
 	void (*power_suspend)(struct platform_device *pdev);
 };
 
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 10 lines

Convert comments to kernel-doc format to avoid kernel-doc warnings:

Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_suspend'
not described in 'usb_ohci_pdata'

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Acked-by on v2 1/1
#2 lore raw
In reply to Randy Dunlap
Quoted 24 lines · Randy Dunlap

Convert comments to kernel-doc format to avoid kernel-doc warnings:

Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_suspend'
not described in 'usb_ohci_pdata'

---
v2: move all kernel-doc comments to before the struct instead of
having them inline insidet the struct. (Alan)

Cc Alan Stern <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
 include/linux/usb/ohci_pdriver.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

include/linux/usb/ohci_pdriver.h line 19

Quoted 7 lines
include/linux/usb/ohci_pdriver.h +4 -0
@@ -13,6 +13,10 @@
  * @big_endian_mmio:	BE registers
  * @no_big_frame_no:	no big endian frame_no shift
  * @num_ports:		number of ports
+ * @power_on: Turn on all power and clocks
+ * @power_off: Turn off all power and clocks
+ * @power_suspend: Turn on only VBUS suspend power and hotplug
+ *                 detection, turn off everything else

It would be nice if the indentation for these new entries matched the indentation for the ones above (1 or 2 tabs instead of 1 space). Aside from that:

Alan Stern

Quoted 16 lines
include/linux/usb/ohci_pdriver.h +0 -4
  *
  * These are general configuration options for the OHCI controller. All of
  * these options are activating more or less workarounds for some hardware.
@@ -23,12 +27,8 @@ struct usb_ohci_pdata {
 	unsigned	no_big_frame_no:1;
 	unsigned int	num_ports;
 
-	/* Turn on all power and clocks */
 	int (*power_on)(struct platform_device *pdev);
-	/* Turn off all power and clocks */
 	void (*power_off)(struct platform_device *pdev);
-	/* Turn on only VBUS suspend power and hotplug detection,
-	 * turn off everything else */
 	void (*power_suspend)(struct platform_device *pdev);
 };
 
#3 lore raw
Quoted 37 lines · Alan Stern
Quoted 24 lines · Randy Dunlap

Convert comments to kernel-doc format to avoid kernel-doc warnings:

Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning: include/linux/usb/ohci_pdriver.h:32 struct member 'power_suspend'
not described in 'usb_ohci_pdata'

---
v2: move all kernel-doc comments to before the struct instead of
having them inline insidet the struct. (Alan)

Cc Alan Stern <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
 include/linux/usb/ohci_pdriver.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

include/linux/usb/ohci_pdriver.h line 19

Quoted 7 lines
include/linux/usb/ohci_pdriver.h +4 -0
@@ -13,6 +13,10 @@
  * @big_endian_mmio:	BE registers
  * @no_big_frame_no:	no big endian frame_no shift
  * @num_ports:		number of ports
+ * @power_on: Turn on all power and clocks
+ * @power_off: Turn off all power and clocks
+ * @power_suspend: Turn on only VBUS suspend power and hotplug
+ *                 detection, turn off everything else

It would be nice if the indentation for these new entries matched the indentation for the ones above (1 or 2 tabs instead of 1 space). Aside from that:

Quoted 2 lines

Agreed. I'll send a v3.
Thanks.

Quoted 17 lines
Quoted 17 lines
include/linux/usb/ohci_pdriver.h +0 -4
  *
  * These are general configuration options for the OHCI controller. All of
  * these options are activating more or less workarounds for some hardware.
@@ -23,12 +27,8 @@ struct usb_ohci_pdata {
 	unsigned	no_big_frame_no:1;
 	unsigned int	num_ports;
 
-	/* Turn on all power and clocks */
 	int (*power_on)(struct platform_device *pdev);
-	/* Turn off all power and clocks */
 	void (*power_off)(struct platform_device *pdev);
-	/* Turn on only VBUS suspend power and hotplug detection,
-	 * turn off everything else */
 	void (*power_suspend)(struct platform_device *pdev);
 };
 
Signature · 1 line
~Randy