[U-Boot] [PATCH 12/15] sandbox: tpm: Tidy up enums and return values

sjg at google.com
2018-10-09T23:51:34Z

Use an enum for command values instead of open-coding them. This removes
the need for comments. Also make sure the driver returns proper error
numbers instead of -1.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

drivers/tpm/tpm_tis_sandbox.c | 20 ++++++++++----------
include/tpm-v1.h | 14 ++++++++++++++
include/tpm-v2.h | 1 +
3 files changed, 25 insertions(+), 10 deletions(-)

Applied to u-boot-dm