USB: ohci: ohci_pdriver.h: fix missing kernel-doc comments
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)
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); };
[email protected]
AI reviewSashiko 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:32struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning:include/linux/usb/ohci_pdriver.h:32struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning:include/linux/usb/ohci_pdriver.h:32struct member 'power_suspend'
not described in 'usb_ohci_pdata'Signed-off-by Randy Dunlap <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 24 lines · Randy Dunlap
Convert comments to kernel-doc format to avoid kernel-doc warnings:
Warning:
include/linux/usb/ohci_pdriver.h:32struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning:include/linux/usb/ohci_pdriver.h:32struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning:include/linux/usb/ohci_pdriver.h:32struct member 'power_suspend'
not described in 'usb_ohci_pdata'Signed-off-by Randy Dunlap <[email protected]>---
v2: move all kernel-doc comments to before the struct instead of
having them inline insidet the struct. (Alan)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); };
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:32struct member 'power_on'
not described in 'usb_ohci_pdata'
Warning:include/linux/usb/ohci_pdriver.h:32struct member 'power_off'
not described in 'usb_ohci_pdata'
Warning:include/linux/usb/ohci_pdriver.h:32struct member 'power_suspend'
not described in 'usb_ohci_pdata'Signed-off-by Randy Dunlap <[email protected]>---
v2: move all kernel-doc comments to before the struct instead of
having them inline insidet the struct. (Alan)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
Acked-by Alan Stern <[email protected]>
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