commit | c9e0c3252b89cbbc080747c166bf945fca3fb3bb | [log] [tgz] |
---|---|---|
author | Miquel Raynal <miquel.raynal@bootlin.com> | Tue May 15 11:57:09 2018 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri May 25 20:12:56 2018 -0400 |
tree | 2f2d6c26bae265d2690263fc4ebb5fe4aaf36d85 | |
parent | f3b43504705ca43537a7b0a9e601540136ef1210 [diff] |
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>