[U-Boot] [PATCH v3 05/25] tpm: add macros to enhance TPM commands readability
Simon Glass
sjg at chromium.org
Thu May 3 02:31:53 UTC 2018
Hi Miquel,
On 2 May 2018 at 02:59, Miquel Raynal <miquel.raynal at bootlin.com> wrote:
> 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 at bootlin.com>
> ---
> lib/tpm-utils.h | 6 ++++++
> 1 file changed, 6 insertions(+)
I'm not a huge fan of the macro magic, but OK.
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list