summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2017-03-27 17:19:18 -0500
committerAaron Durbin <adurbin@chromium.org>2017-04-03 05:32:03 +0200
commit445c13fb5daf483005ec87670f9937499032c98d (patch)
tree08649e667fd5277def59af55eb362cd9ded6324b /src/drivers
parent5cf1fadeca706f8d3016ea44c3e482c2428d6b3f (diff)
downloadcoreboot-445c13fb5daf483005ec87670f9937499032c98d.tar.xz
drivers/spi/tpm: make tpm_info object local to compilation unit
The tpm_info object is a global, but its symbol does not need to be exposed to the world as its only used within tpm.c. BUG=b:36598499 Change-Id: Idded3dad8d0d1c3535bddfb359009210d3439703 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/19057 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/tpm/tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index e3faff09d1..fd924f4246 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -52,7 +52,7 @@ static struct tpm_spi_if tpm_if = {
};
/* Cached TPM device identification. */
-struct tpm2_info tpm_info;
+static struct tpm2_info tpm_info;
/*
* TODO(vbendeb): make CONFIG_DEBUG_TPM an int to allow different level of