* [PATCH] phy.h: fix obvious errors in doc and kerneldoc content
@ 2018-12-26 11:41 Robert P. J. Day
2018-12-26 12:25 ` Andrew Lunn
0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2018-12-26 11:41 UTC (permalink / raw)
To: Linux kernel netdev mailing list
1) gianfar_phy.c should clearly refer to gianfar.c
2) fix obvious copy and paste error in regular doc
3) change regular doc into kerneldoc for phy_modes()
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 3ea87f774a76..1ca94a51a93e 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1,6 +1,6 @@
/*
* Framework and drivers for configuring and reading different PHYs
- * Based on code in sungem_phy.c and gianfar_phy.c
+ * Based on code in sungem_phy.c and gianfar.c
*
* Author: Andy Fleming
*
@@ -106,8 +106,8 @@ typedef enum {
* @speeds: buffer to store supported speeds in.
* @size: size of speeds buffer.
*
- * Description: Returns the number of supported speeds, and
- * fills the speeds * buffer with the supported speeds. If speeds buffer is
+ * Description: Returns the number of supported speeds, and fills
+ * the speeds buffer with the supported speeds. If speeds buffer is
* too small to contain * all currently supported speeds, will return as
* many speeds as can fit.
*/
@@ -116,7 +116,10 @@ unsigned int phy_supported_speeds(struct phy_device *phy,
unsigned int size);
/**
- * It maps 'enum phy_interface_t' found in include/linux/phy.h
+ * phy_modes - map phy_interface_t enum to device tree binding of phy-mode
+ * @interface: enum phy_interface_t value
+ *
+ * Description: maps 'enum phy_interface_t' defined in this file
* into the device tree binding of 'phy-mode', so that Ethernet
* device driver can get phy interface from device tree.
*/
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca/dokuwiki
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] phy.h: fix obvious errors in doc and kerneldoc content
2018-12-26 11:41 [PATCH] phy.h: fix obvious errors in doc and kerneldoc content Robert P. J. Day
@ 2018-12-26 12:25 ` Andrew Lunn
2018-12-26 12:29 ` Robert P. J. Day
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2018-12-26 12:25 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux kernel netdev mailing list
On Wed, Dec 26, 2018 at 05:41:29AM -0600, Robert P. J. Day wrote:
>
> 1) gianfar_phy.c should clearly refer to gianfar.c
> 2) fix obvious copy and paste error in regular doc
> 3) change regular doc into kerneldoc for phy_modes()
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---
Hi Robert
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 3ea87f774a76..1ca94a51a93e 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -1,6 +1,6 @@
> /*
> * Framework and drivers for configuring and reading different PHYs
> - * Based on code in sungem_phy.c and gianfar_phy.c
> + * Based on code in sungem_phy.c and gianfar.c
Nope, checkout the commit which added this file:
git checkout 00db8189d984
and take a look around. You will find drivers/net/gianfar_phy.c It has
long since gone, but it was the basis for the framework.
> *
> * Author: Andy Fleming
> *
> @@ -106,8 +106,8 @@ typedef enum {
> * @speeds: buffer to store supported speeds in.
> * @size: size of speeds buffer.
> *
> - * Description: Returns the number of supported speeds, and
> - * fills the speeds * buffer with the supported speeds. If speeds buffer is
> + * Description: Returns the number of supported speeds, and fills
> + * the speeds buffer with the supported speeds. If speeds buffer is
> * too small to contain * all currently supported speeds, will return as
^^^
Don't forget this one.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy.h: fix obvious errors in doc and kerneldoc content
2018-12-26 12:25 ` Andrew Lunn
@ 2018-12-26 12:29 ` Robert P. J. Day
0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2018-12-26 12:29 UTC (permalink / raw)
To: Andrew Lunn; +Cc: Linux kernel netdev mailing list
On Wed, 26 Dec 2018, Andrew Lunn wrote:
> On Wed, Dec 26, 2018 at 05:41:29AM -0600, Robert P. J. Day wrote:
> >
> > 1) gianfar_phy.c should clearly refer to gianfar.c
> > 2) fix obvious copy and paste error in regular doc
> > 3) change regular doc into kerneldoc for phy_modes()
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
>
> Hi Robert
>
> > diff --git a/include/linux/phy.h b/include/linux/phy.h
> > index 3ea87f774a76..1ca94a51a93e 100644
> > --- a/include/linux/phy.h
> > +++ b/include/linux/phy.h
> > @@ -1,6 +1,6 @@
> > /*
> > * Framework and drivers for configuring and reading different PHYs
> > - * Based on code in sungem_phy.c and gianfar_phy.c
> > + * Based on code in sungem_phy.c and gianfar.c
>
> Nope, checkout the commit which added this file:
>
> git checkout 00db8189d984
>
> and take a look around. You will find drivers/net/gianfar_phy.c It has
> long since gone, but it was the basis for the framework.
... snip ...
ack, i used "git log" assuming it had originally been under
drivers/phy ... my bad. will fix that and the other issue.
rday
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-26 12:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-26 11:41 [PATCH] phy.h: fix obvious errors in doc and kerneldoc content Robert P. J. Day
2018-12-26 12:25 ` Andrew Lunn
2018-12-26 12:29 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox