tpm: Update struct tpm_buf documentation comments
authorJarkko Sakkinen <jarkko@kernel.org>
Mon, 29 Apr 2024 20:27:53 +0000 (16:27 -0400)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 9 May 2024 19:30:51 +0000 (22:30 +0300)
Remove deprecated portions and document enum values.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
include/linux/tpm.h

index bb0e8718a432f564cbf5e57c89222243c4d64dc4..0a8c1351adc29b10f39b43182eabf483c361d8ae 100644 (file)
@@ -297,15 +297,14 @@ struct tpm_header {
        };
 } __packed;
 
-/* A string buffer type for constructing TPM commands. This is based on the
- * ideas of string buffer code in security/keys/trusted.h but is heap based
- * in order to keep the stack usage minimal.
- */
-
 enum tpm_buf_flags {
+       /* the capacity exceeded: */
        TPM_BUF_OVERFLOW        = BIT(0),
 };
 
+/*
+ * A string buffer type for constructing TPM commands.
+ */
 struct tpm_buf {
        unsigned int flags;
        u8 *data;