From 0c6d48f3ee6f58c83f63053a8c0e60003f52ef2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= Date: Wed, 24 Apr 2024 13:59:43 +0200 Subject: drivers/{crb,pc80/tpm}: Drop conflicting tpm_config_t typedef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When both CRB and pc80 TPM drivers are compiled in, building fails because the tpm_config_t typedef has two incompatible definitions. Given that typedefs are discouraged by the project's coding style, simply get rid of the tpm_config_t typedef. TEST=Compile MSI PRO Z690-A target with CRB and PC80 TPM chips enabled in devicetree. Change-Id: Id41717e265362303a17745303a907c9c8f4f4e12 Signed-off-by: Michał Żygowski Reviewed-on: https://review.coreboot.org/c/coreboot/+/82057 Reviewed-by: Sergii Dmytruk Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/drivers/pc80/tpm/chip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/pc80/tpm/chip.h') diff --git a/src/drivers/pc80/tpm/chip.h b/src/drivers/pc80/tpm/chip.h index af731530f1..af37ceeb67 100644 --- a/src/drivers/pc80/tpm/chip.h +++ b/src/drivers/pc80/tpm/chip.h @@ -3,7 +3,7 @@ #ifndef DRIVERS_PC80_TPM_CHIP_H #define DRIVERS_PC80_TPM_CHIP_H -typedef struct drivers_pc80_tpm_config { +struct drivers_pc80_tpm_config { /* * TPM Interrupt polarity: * @@ -13,6 +13,6 @@ typedef struct drivers_pc80_tpm_config { * Falling Edge 3 */ u8 irq_polarity; -} tpm_config_t; +}; #endif /* DRIVERS_PC80_TPM_CHIP_H */ -- cgit v1.2.3