Skip to content

Commit d5166a4

Browse files
rddunlapjarkkojs
authored andcommitted
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>
1 parent 045395d commit d5166a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/char/tpm/tpm_ftpm_tee.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static int ftpm_tee_match(struct tee_ioctl_version_data *ver, const void *data)
208208

209209
/**
210210
* ftpm_tee_probe() - initialize the fTPM
211-
* @pdev: the platform_device description.
211+
* @dev: the device description.
212212
*
213213
* Return:
214214
* On success, 0. On failure, -errno.
@@ -304,7 +304,7 @@ static int ftpm_plat_tee_probe(struct platform_device *pdev)
304304

305305
/**
306306
* ftpm_tee_remove() - remove the TPM device
307-
* @pdev: the platform_device description.
307+
* @dev: the device description.
308308
*
309309
* Return:
310310
* 0 always.
@@ -341,7 +341,7 @@ static void ftpm_plat_tee_remove(struct platform_device *pdev)
341341
}
342342

343343
/**
344-
* ftpm_tee_shutdown() - shutdown the TPM device
344+
* ftpm_plat_tee_shutdown() - shutdown the TPM device
345345
* @pdev: the platform_device description.
346346
*/
347347
static void ftpm_plat_tee_shutdown(struct platform_device *pdev)

0 commit comments

Comments
 (0)