]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: add #ifndef to fix redeclaration build errors
authorJohannes Holland <johannes.holland@infineon.com>
Mon, 11 May 2020 13:22:25 +0000 (15:22 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jul 2020 21:21:46 +0000 (17:21 -0400)
commit95a84386bead149c6a30d80fde9df2a92e30930d
treee1ab7234fb60d613986556ac259f4f974b333c64
parent900ffbe8c8684728516968b008146c8ac8a5ae73
tpm: add #ifndef to fix redeclaration build errors

tpm_tis_spi.c directly includes tpm_tis.h and tpm-v2.h which both
define the same enums (see e.g. TPM_ACCESS_VALID). Add an #ifndef to
prevent redeclaration errors.

Signed-off-by: Johannes Holland <johannes.holland@infineon.com>
drivers/tpm/tpm_tis.h