From: Jarkko Sakkinen Date: Mon, 29 Apr 2024 20:27:53 +0000 (-0400) Subject: tpm: Update struct tpm_buf documentation comments X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=37e2ee16d67d17926085cbd0500dd78ca747e59c;p=linux.git tpm: Update struct tpm_buf documentation comments Remove deprecated portions and document enum values. Signed-off-by: James Bottomley Reviewed-by: Stefan Berger Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- diff --git a/include/linux/tpm.h b/include/linux/tpm.h index bb0e8718a432f..0a8c1351adc29 100644 --- a/include/linux/tpm.h +++ b/include/linux/tpm.h @@ -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;