tpm: Tidy up use of size_t
authorSimon Glass <sjg@chromium.org>
Mon, 26 Sep 2016 03:33:20 +0000 (21:33 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 11 Oct 2016 03:55:33 +0000 (11:55 +0800)
commit22230e916e1d57364c524058275befa380faabc3
tree487e4bc61ed6ca3ff255ca7688c8a2d6a67d3295
parent3f14f814e79f5160e91a107fcac56d577867feac
tpm: Tidy up use of size_t

We should consistently use %z with size_t, and avoid passing a uint32_t as
a size_t value. Fix these issues to avoid warnings on 64-bit machines.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/tpm/tpm_tis_lpc.c