phy: qualcomm: ipq806x-usb: Fix kernel-doc style
Subsystems (2)
Vinod Koul
maintainerPATCH v2 1/2 phy: qualcomm: ipq806x-usb: Fix kernel-doc style
The functions are documented but there were style issues, so fix the style and add missing description for phy_dwc3
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:130:drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:174:drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:212: warning:
This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
---
Changes in v2: use () for function names
update description of @phy_dwc3
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c | 26 +++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-)
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c +14 -12
@@ -127,12 +127,13 @@ struct phy_drvdata { };/** -* Write register and read back masked value to confirm it is written +* usb_phy_write_readback() - Write register and read back masked value to +* confirm it is written * -* @base - QCOM DWC3 PHY base virtual address. -* @offset - register offset. -* @mask - register bitmask specifying what should be updated -* @val - value to write. +* @phy_dwc3: QCOM DWC3 phy context +* @offset: register offset. +* @mask: register bitmask specifying what should be updated +* @val: value to write. */ static inline void usb_phy_write_readback(struct usb_phy *phy_dwc3, u32 offset,
@@ -171,11 +172,11 @@ static int wait_for_latch(void __iomem *addr) }/** -* Write SSPHY register +* usb_ss_write_phycreg() - Write SSPHY register * -* @base - QCOM DWC3 PHY base virtual address. -* @addr - SSPHY address to write. -* @val - value to write. +* @phy_dwc3: QCOM DWC3 phy context +* @addr: SSPHY address to write. +* @val: value to write. */ static int usb_ss_write_phycreg (struct usb_phy *phy_dwc3,u32 addr,u32 val)
@@ -209,10 +210,11 @@ static int usb_ss_write_phycreg(struct usb_phy *phy_dwc3, }/** -* Read SSPHY register. +* usb_ss_read_phycreg() - Read SSPHY register. * -* @base - QCOM DWC3 PHY base virtual address. -* @addr - SSPHY address to read. +* @phy_dwc3: QCOM DWC3 phy context +* @addr: SSPHY address to read. +* @val: pointer in which read is store. */ static int usb_ss_read_phycreg (struct usb_phy *phy_dwc3,u32 addr,u32 *val)
Signature · 1 line
2.31.1
Vinod Koul
maintainerPATCH v2 2/2 phy: ti: omap-usb2: Fix the kernel-doc style
The documentation uses incorrect style, so fix that.
drivers/phy/ti/phy-omap-usb2.c:102: warning: Function parameter or member 'comparator' not described in 'omap_usb2_set_comparator'
While at it, use a single line for function description
---
Changes in v2: use () for function names
drivers/phy/ti/phy-omap-usb2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/phy/ti/phy-omap-usb2.c +3 -3
@@ -89,9 +89,9 @@ static inline void omap_usb_writel(void __iomem *addr, unsigned int offset, }/** -* omap_usb2_set_comparator - links the comparator present in the system with -* this phy -* @comparator - the companion phy(comparator) for this phy +* omap_usb2_set_comparator() - links the comparator present in the system with this phy +* +* @comparator: the companion phy(comparator) for this phy * * The phy companion driver should call this API passing the phy_companion * filled with set_vbus and start_srp to be used by usb phy.
Signature · 7 lines
2.31.1 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
Re: [PATCH v2 2/2] phy: ti: omap-usb2: Fix the kernel-doc style
Hi Vinod,
Quoted 18 lines · Vinod Koul
The documentation uses incorrect style, so fix that.
drivers/phy/ti/phy-omap-usb2.c:102: warning: Function parameter or member 'comparator' not described in 'omap_usb2_set_comparator'While at it, use a single line for function description
Signed-off-by Vinod Koul <[email protected]>---
Changes in v2: use () for function namesdrivers/phy/ti/phy-omap-usb2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/phy/ti/phy-omap-usb2.c +0
-0
drivers/phy/ti/phy-omap-usb2.c static inline void omap_usb_writel(void __iomem *addr, unsigned int offset, · line 92
Quoted 7 lines
drivers/phy/ti/phy-omap-usb2.c +1
-3@@ -89,9 +89,9 @@ static inline void omap_usb_writel(void __iomem *addr, unsigned int offset, }/** -* omap_usb2_set_comparator - links the comparator present in the system with -* this phy -* @comparator - the companion phy(comparator) for this phy +* omap_usb2_set_comparator() - links the comparator present in the system with this phy
My apologies for the noise, I just noticed your v2.
Quoted 8 lines
drivers/phy/ti/phy-omap-usb2.c +2
-0+* +* @comparator: the companion phy(comparator) for this phy * * The phy companion driver should call this API passing the phy_companion * filled with set_vbus and start_srp to be used by usb phy. Signature · 1 line
2.31.1
Quoted 9 lines · Vinod Koul
The functions are documented but there were style issues, so fix the style and add missing description for
phy_dwc3
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:130:drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:174:drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:212: warning:
This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Quoted 67 lines
Reviewed-by Randy Dunlap <[email protected]>Signed-off-by Vinod Koul <[email protected]>---
Changes in v2: use () for function names
update description of @phy_dwc3drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c | 26 +++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-)drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c +14
-12@@ -127,12 +127,13 @@ struct phy_drvdata { };/** -* Write register and read back masked value to confirm it is written +* usb_phy_write_readback() - Write register and read back masked value to +* confirm it is written * -* @base - QCOM DWC3 PHY base virtual address. -* @offset - register offset. -* @mask - register bitmask specifying what should be updated -* @val - value to write. +* @phy_dwc3: QCOM DWC3 phy context +* @offset: register offset. +* @mask: register bitmask specifying what should be updated +* @val: value to write. */ static inline void usb_phy_write_readback(struct usb_phy *phy_dwc3, u32 offset,@@ -171,11 +172,11 @@ static int wait_for_latch(void __iomem *addr) }/** -* Write SSPHY register +* usb_ss_write_phycreg() - Write SSPHY register * -* @base - QCOM DWC3 PHY base virtual address. -* @addr - SSPHY address to write. -* @val - value to write. +* @phy_dwc3: QCOM DWC3 phy context +* @addr: SSPHY address to write. +* @val: value to write. */ static int usb_ss_write_phycreg (struct usb_phy *phy_dwc3,u32 addr,u32 val)@@ -209,10 +210,11 @@ static int usb_ss_write_phycreg(struct usb_phy *phy_dwc3, }/** -* Read SSPHY register. +* usb_ss_read_phycreg() - Read SSPHY register. * -* @base - QCOM DWC3 PHY base virtual address. -* @addr - SSPHY address to read. +* @phy_dwc3: QCOM DWC3 phy context +* @addr: SSPHY address to read. +* @val: pointer in which read is store. */ static int usb_ss_read_phycreg (struct usb_phy *phy_dwc3,u32 addr,u32 *val)Signature · 1 line
2.31.1
Quoted 8 lines · Vinod Koul
The functions are documented but there were style issues, so fix the style and add missing description for
phy_dwc3
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:130:drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:174:drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c:212: warning:
This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Applied both, thanks
Signature · 1 line
~Vinod
Vinod Koul
maintainerRe: [PATCH v2 2/2] phy: ti: omap-usb2: Fix the kernel-doc style
In reply to Liam BeguinQuoted 23 lines · Liam Beguin
Hi Vinod,
Quoted 20 lines · Vinod Koul
The documentation uses incorrect style, so fix that.
drivers/phy/ti/phy-omap-usb2.c:102: warning: Function parameter or member 'comparator' not described in 'omap_usb2_set_comparator'While at it, use a single line for function description
Signed-off-by Vinod Koul <[email protected]>---
Changes in v2: use () for function namesdrivers/phy/ti/phy-omap-usb2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/phy/ti/phy-omap-usb2.c +0
-0@@ -89,9 +89,9 @@ static inline void omap_usb_writel(void __iomem *addr, unsigned int offset, }
Quoted 7 lines
drivers/phy/ti/phy-omap-usb2.c static inline void omap_usb_writel(void __iomem *addr, unsigned int offset, · line 92
Quoted 5 lines
drivers/phy/ti/phy-omap-usb2.c +1
-3/** -* omap_usb2_set_comparator - links the comparator present in the system with -* this phy -* @comparator - the companion phy(comparator) for this phy +* omap_usb2_set_comparator() - links the comparator present in the system with this phy My apologies for the noise, I just noticed your v2.
No worries :)
Quoted 2 lines
Reviewed-by Liam Beguin <[email protected]>
Thanks
Signature · 6 lines
~Vinod -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy