summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/crb/chip.h4
-rw-r--r--src/drivers/pc80/tpm/chip.h4
-rw-r--r--src/drivers/pc80/tpm/tis.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/src/drivers/crb/chip.h b/src/drivers/crb/chip.h
index f0e471fd48..ac7ea96982 100644
--- a/src/drivers/crb/chip.h
+++ b/src/drivers/crb/chip.h
@@ -3,7 +3,7 @@
#ifndef DRIVERS_CRB_CHIP_H
#define DRIVERS_CRB_CHIP_H
-typedef struct drivers_crb_config {
-} tpm_config_t;
+struct drivers_crb_config {
+};
#endif /* DRIVERS_CRB_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 */
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index d811c52e90..3f863a36da 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -779,9 +779,11 @@ static void lpc_tpm_read_resources(struct device *dev)
static void lpc_tpm_set_resources(struct device *dev)
{
- tpm_config_t *config = (tpm_config_t *)dev->chip_info;
+ struct drivers_pc80_tpm_config *config;
DEVTREE_CONST struct resource *res;
+ config = (struct drivers_pc80_tpm_config *)dev->chip_info;
+
for (res = dev->resource_list; res; res = res->next) {
if (!(res->flags & IORESOURCE_ASSIGNED))
continue;