]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: add macros to enhance TPM commands readability
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 15 May 2018 09:57:09 +0000 (11:57 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 26 May 2018 00:12:56 +0000 (20:12 -0400)
commit42dc18f38f02d1603c179b5dcd2e6acaf4132756
tree2f2d6c26bae265d2690263fc4ebb5fe4aaf36d85
parent9ad123926a805c947fa3875be3d2d309b5641775
tpm: add macros to enhance TPM commands readability

TPM commands are much easier to read/write with these macros that will
transform words or integers into byte strings. This way, there is no
need to call pack_byte_string() while all variable length in a command
are known (and at must 4 bytes, which is a lot of them).

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
lib/tpm-utils.h