drivers/tpm/spi: Convert static functions to enum cb_err return types
commit591c7ebf18359e9686aa592bc5636e9811a5a468
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Wed, 16 Feb 2022 00:59:58 +0000 (15 17:59 -0700)
committerFelix Held <felix-coreboot@felixheld.de>
Tue, 1 Mar 2022 16:52:21 +0000 (1 16:52 +0000)
treecc86610f8609fdec925fd06533891e10414bb9e8
parentd736fd4ea7a9060450d10dac7c4ea9b312b8c1e9
drivers/tpm/spi: Convert static functions to enum cb_err return types

Instead of using raw integers to indicate success/failure, enum cb_err
can be used to makes things clearer, so this patch converts most
functions to return that instead of int.

TEST=boot to OS on google/dratini, no TPM errors seen

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Ifb749c931fe008b16d42fcf157af820ec8fbf5ac
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61976
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
src/drivers/spi/tpm/tpm.c