summaryrefslogtreecommitdiff
path: root/util/inteltool/spi.c
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-07-01 11:21:55 -0600
committerMartin Roth <martinroth@google.com>2019-07-07 20:23:42 +0000
commit6faccd1f00a3606b720fc3a233c2de5cd97bb176 (patch)
treed99ee83a5c9216425006833b559c7750d67a23fe /util/inteltool/spi.c
parente2e8ccefd7aa74add617f67b62977c946c20d759 (diff)
util/inteltool: Make internal functions static
None of these functions are used outside of the files they are defined in, so they can all be static. Change-Id: Ie00fef5a5ba2779e0ff45640cff5cc9f1d096dc1 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33945 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Diffstat (limited to 'util/inteltool/spi.c')
-rw-r--r--util/inteltool/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/inteltool/spi.c b/util/inteltool/spi.c
index da5533deaa..22ba3d42f2 100644
--- a/util/inteltool/spi.c
+++ b/util/inteltool/spi.c
@@ -79,7 +79,7 @@ static const io_register_t ich7_spi_bar_registers[] = {
{ 0x68, 4, "PBR2 Protected BIOS Range 2" },
};
-int print_bioscntl(struct pci_dev *sb)
+static int print_bioscntl(struct pci_dev *sb)
{
int i, size = 0;
unsigned char bios_cntl = 0xff;
@@ -207,7 +207,7 @@ int print_bioscntl(struct pci_dev *sb)
return 0;
}
-int print_spibar(struct pci_dev *sb) {
+static int print_spibar(struct pci_dev *sb) {
int i, size = 0, rcba_size = 0x4000;
volatile uint8_t *rcba;
uint32_t rcba_phys;