From beeb8bc925bef6973e1c9fa6c4fd26a4113a1777 Mon Sep 17 00:00:00 2001 From: Jacob Garber Date: Fri, 21 Jun 2019 15:24:17 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/33667 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes Reviewed-by: Nico Huber --- spi25.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spi25.c') diff --git a/spi25.c b/spi25.c index 611cd727..ecb18937 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); -- cgit v1.2.3