Commit 74c654a8 authored by Wang Hai's avatar Wang Hai Committed by David S. Miller

net: cavium: Fix a bunch of kerneldoc parameter issues

Rename ptp to ptp_info.

Fix W=1 compile warnings (invalid kerneldoc):

drivers/net/ethernet/cavium/common/cavium_ptp.c:94: warning: Excess function parameter 'ptp' description in 'cavium_ptp_adjfine'
drivers/net/ethernet/cavium/common/cavium_ptp.c:141: warning: Excess function parameter 'ptp' description in 'cavium_ptp_adjtime'
drivers/net/ethernet/cavium/common/cavium_ptp.c:163: warning: Excess function parameter 'ptp' description in 'cavium_ptp_gettime'
drivers/net/ethernet/cavium/common/cavium_ptp.c:185: warning: Excess function parameter 'ptp' description in 'cavium_ptp_settime'
drivers/net/ethernet/cavium/common/cavium_ptp.c:208: warning: Excess function parameter 'ptp' description in 'cavium_ptp_enable'
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76f919eb
...@@ -86,7 +86,7 @@ EXPORT_SYMBOL(cavium_ptp_put); ...@@ -86,7 +86,7 @@ EXPORT_SYMBOL(cavium_ptp_put);
/** /**
* cavium_ptp_adjfine() - Adjust ptp frequency * cavium_ptp_adjfine() - Adjust ptp frequency
* @ptp: PTP clock info * @ptp_info: PTP clock info
* @scaled_ppm: how much to adjust by, in parts per million, but with a * @scaled_ppm: how much to adjust by, in parts per million, but with a
* 16 bit binary fractional field * 16 bit binary fractional field
*/ */
...@@ -134,7 +134,7 @@ static int cavium_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) ...@@ -134,7 +134,7 @@ static int cavium_ptp_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm)
/** /**
* cavium_ptp_adjtime() - Adjust ptp time * cavium_ptp_adjtime() - Adjust ptp time
* @ptp: PTP clock info * @ptp_info: PTP clock info
* @delta: how much to adjust by, in nanosecs * @delta: how much to adjust by, in nanosecs
*/ */
static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta)
...@@ -155,7 +155,7 @@ static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) ...@@ -155,7 +155,7 @@ static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta)
/** /**
* cavium_ptp_gettime() - Get hardware clock time with adjustment * cavium_ptp_gettime() - Get hardware clock time with adjustment
* @ptp: PTP clock info * @ptp_info: PTP clock info
* @ts: timespec * @ts: timespec
*/ */
static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info, static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info,
...@@ -177,7 +177,7 @@ static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info, ...@@ -177,7 +177,7 @@ static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info,
/** /**
* cavium_ptp_settime() - Set hardware clock time. Reset adjustment * cavium_ptp_settime() - Set hardware clock time. Reset adjustment
* @ptp: PTP clock info * @ptp_info: PTP clock info
* @ts: timespec * @ts: timespec
*/ */
static int cavium_ptp_settime(struct ptp_clock_info *ptp_info, static int cavium_ptp_settime(struct ptp_clock_info *ptp_info,
...@@ -199,7 +199,7 @@ static int cavium_ptp_settime(struct ptp_clock_info *ptp_info, ...@@ -199,7 +199,7 @@ static int cavium_ptp_settime(struct ptp_clock_info *ptp_info,
/** /**
* cavium_ptp_enable() - Request to enable or disable an ancillary feature. * cavium_ptp_enable() - Request to enable or disable an ancillary feature.
* @ptp: PTP clock info * @ptp_info: PTP clock info
* @rq: request * @rq: request
* @on: is it on * @on: is it on
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment