diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-06-24 16:05:28 -0600 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-26 07:25:01 +0000 |
commit | afc3ad64300bbcc14266e645beec897ef06df13d (patch) | |
tree | d356edb82af5f5d530c36626b575467c80136211 /dummyflasher.c | |
parent | cd8aeba7f1cee4c2bd1f8598009fc3e6e7afd8bb (diff) | |
download | flashrom-afc3ad64300bbcc14266e645beec897ef06df13d.tar.gz flashrom-afc3ad64300bbcc14266e645beec897ef06df13d.tar.bz2 flashrom-afc3ad64300bbcc14266e645beec897ef06df13d.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.
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>
Diffstat (limited to 'dummyflasher.c')
-rw-r--r-- | dummyflasher.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dummyflasher.c b/dummyflasher.c index 22b28c455..2ff989877 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -56,10 +56,10 @@ static unsigned int emu_jedec_be_52_size = 0; static unsigned int emu_jedec_be_d8_size = 0; static unsigned int emu_jedec_ce_60_size = 0; static unsigned int emu_jedec_ce_c7_size = 0; -unsigned char spi_blacklist[256]; -unsigned char spi_ignorelist[256]; -int spi_blacklist_size = 0; -int spi_ignorelist_size = 0; +static unsigned char spi_blacklist[256]; +static unsigned char spi_ignorelist[256]; +static int spi_blacklist_size = 0; +static int spi_ignorelist_size = 0; static uint8_t emu_status = 0; /* A legit complete SFDP table based on the MX25L6436E (rev. 1.8) datasheet. */ @@ -129,7 +129,7 @@ static const struct par_master par_master_dummy = { .chip_writen = dummy_chip_writen, }; -enum chipbustype dummy_buses_supported = BUS_NONE; +static enum chipbustype dummy_buses_supported = BUS_NONE; static int dummy_shutdown(void *data) { |