summaryrefslogtreecommitdiffstats
path: root/spi25.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-21 15:24:17 -0600
committerNico Huber <nico.h@gmx.de>2019-06-23 21:39:31 +0000
commitbeeb8bc925bef6973e1c9fa6c4fd26a4113a1777 (patch)
tree30c63cf4ae4bb14a19849b1680622ad6eed86d63 /spi25.c
parentcb44eb7dad17522f47792dca4fc499310ff7d6f3 (diff)
downloadflashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.tar.gz
flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.tar.bz2
flashrom-beeb8bc925bef6973e1c9fa6c4fd26a4113a1777.zip
tree: Make internal functions static
None of these functions are used outside of the files they are defined in, so make them all static. Change-Id: Ie9cbe12d289bcedacf2f1bf483ae64ef8039ccc1 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33667 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'spi25.c')
-rw-r--r--spi25.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/spi25.c b/spi25.c
index 611cd7279..ecb189371 100644
--- a/spi25.c
+++ b/spi25.c
@@ -455,19 +455,19 @@ static int spi_write_cmd(struct flashctx *const flash, const uint8_t op,
return result ? result : status;
}
-int spi_chip_erase_60(struct flashctx *flash)
+static int spi_chip_erase_60(struct flashctx *flash)
{
/* This usually takes 1-85s, so wait in 1s steps. */
return spi_simple_write_cmd(flash, 0x60, 1000 * 1000);
}
-int spi_chip_erase_62(struct flashctx *flash)
+static int spi_chip_erase_62(struct flashctx *flash)
{
/* This usually takes 2-5s, so wait in 100ms steps. */
return spi_simple_write_cmd(flash, 0x62, 100 * 1000);
}
-int spi_chip_erase_c7(struct flashctx *flash)
+static int spi_chip_erase_c7(struct flashctx *flash)
{
/* This usually takes 1-85s, so wait in 1s steps. */
return spi_simple_write_cmd(flash, 0xc7, 1000 * 1000);