Skip to content

Commit 37e2ee1

Browse files
committed
tpm: Update struct tpm_buf documentation comments
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>
1 parent 17d89b2 commit 37e2ee1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/linux/tpm.h

+4-5
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,14 @@ struct tpm_header {
297297
};
298298
} __packed;
299299

300-
/* A string buffer type for constructing TPM commands. This is based on the
301-
* ideas of string buffer code in security/keys/trusted.h but is heap based
302-
* in order to keep the stack usage minimal.
303-
*/
304-
305300
enum tpm_buf_flags {
301+
/* the capacity exceeded: */
306302
TPM_BUF_OVERFLOW = BIT(0),
307303
};
308304

305+
/*
306+
* A string buffer type for constructing TPM commands.
307+
*/
309308
struct tpm_buf {
310309
unsigned int flags;
311310
u8 *data;

0 commit comments

Comments
 (0)