summaryrefslogtreecommitdiffstats
path: root/it85spi.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-24 16:05:28 -0600
committerNico Huber <nico.h@gmx.de>2022-03-07 16:44:36 +0000
commit8c3de0154887c4355aaa4dd4141b458748438ed8 (patch)
tree3b5fc561a20eee66b52710a2a2e515634f6d926a /it85spi.c
parent9d7d8006e26e34163fd4c442be05901881602502 (diff)
downloadflashrom-8c3de0154887c4355aaa4dd4141b458748438ed8.tar.gz
flashrom-8c3de0154887c4355aaa4dd4141b458748438ed8.tar.bz2
flashrom-8c3de0154887c4355aaa4dd4141b458748438ed8.zip
tree: Make internal variables static
All these variables are only used in the files they are defined in, so they can be made static. (Backported as it untangles aliased global objects.) Change-Id: I1e55138adef540e9d3a2237aa5b289cb338c0608 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33747 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/62612 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'it85spi.c')
-rw-r--r--it85spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/it85spi.c b/it85spi.c
index e47cabbdb..b616a261d 100644
--- a/it85spi.c
+++ b/it85spi.c
@@ -74,9 +74,9 @@
#endif /* LPC_IO */
#ifdef LPC_IO
-unsigned int shm_io_base;
+static unsigned int shm_io_base;
#endif
-unsigned char *ce_high, *ce_low;
+static unsigned char *ce_high, *ce_low;
static int it85xx_scratch_rom_reenter = 0;
/* This function will poll the keyboard status register until either