Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wang Hai and committed by
David S. Miller
74c654a8 76f919eb

+5 -5
+5 -5
drivers/net/ethernet/cavium/common/cavium_ptp.c
··· 86 86 87 87 /** 88 88 * cavium_ptp_adjfine() - Adjust ptp frequency 89 - * @ptp: PTP clock info 89 + * @ptp_info: PTP clock info 90 90 * @scaled_ppm: how much to adjust by, in parts per million, but with a 91 91 * 16 bit binary fractional field 92 92 */ ··· 134 134 135 135 /** 136 136 * cavium_ptp_adjtime() - Adjust ptp time 137 - * @ptp: PTP clock info 137 + * @ptp_info: PTP clock info 138 138 * @delta: how much to adjust by, in nanosecs 139 139 */ 140 140 static int cavium_ptp_adjtime(struct ptp_clock_info *ptp_info, s64 delta) ··· 155 155 156 156 /** 157 157 * cavium_ptp_gettime() - Get hardware clock time with adjustment 158 - * @ptp: PTP clock info 158 + * @ptp_info: PTP clock info 159 159 * @ts: timespec 160 160 */ 161 161 static int cavium_ptp_gettime(struct ptp_clock_info *ptp_info, ··· 177 177 178 178 /** 179 179 * cavium_ptp_settime() - Set hardware clock time. Reset adjustment 180 - * @ptp: PTP clock info 180 + * @ptp_info: PTP clock info 181 181 * @ts: timespec 182 182 */ 183 183 static int cavium_ptp_settime(struct ptp_clock_info *ptp_info, ··· 199 199 200 200 /** 201 201 * cavium_ptp_enable() - Request to enable or disable an ancillary feature. 202 - * @ptp: PTP clock info 202 + * @ptp_info: PTP clock info 203 203 * @rq: request 204 204 * @on: is it on 205 205 */