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

tpm/tpm_ftpm_tee: fix all kernel-doc warnings

Change @pdev to @dev in 2 places to match the function parameters.
Correct one function name in kernel-doc comment to match the function
implementation.

This prevents these warnings:

tpm_ftpm_tee.c:217: warning: Function parameter or struct member 'dev' not described in 'ftpm_tee_probe'
tpm_ftpm_tee.c:217: warning: Excess function parameter 'pdev' description in 'ftpm_tee_probe'
tpm_ftpm_tee.c:313: warning: Function parameter or struct member 'dev' not described in 'ftpm_tee_remove'
tpm_ftpm_tee.c:313: warning: Excess function parameter 'pdev' description in 'ftpm_tee_remove'
tpm_ftpm_tee.c:348: warning: expecting prototype for ftpm_tee_shutdown(). Prototype was for ftpm_plat_tee_shutdown() instead

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

authored by

Randy Dunlap and committed by
Jarkko Sakkinen
d5166a49 045395d8

+3 -3
+3 -3
drivers/char/tpm/tpm_ftpm_tee.c
··· 208 208 209 209 /** 210 210 * ftpm_tee_probe() - initialize the fTPM 211 - * @pdev: the platform_device description. 211 + * @dev: the device description. 212 212 * 213 213 * Return: 214 214 * On success, 0. On failure, -errno. ··· 304 304 305 305 /** 306 306 * ftpm_tee_remove() - remove the TPM device 307 - * @pdev: the platform_device description. 307 + * @dev: the device description. 308 308 * 309 309 * Return: 310 310 * 0 always. ··· 341 341 } 342 342 343 343 /** 344 - * ftpm_tee_shutdown() - shutdown the TPM device 344 + * ftpm_plat_tee_shutdown() - shutdown the TPM device 345 345 * @pdev: the platform_device description. 346 346 */ 347 347 static void ftpm_plat_tee_shutdown(struct platform_device *pdev)