diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-06-21 15:40:33 -0600 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-06-23 21:40:09 +0000 |
commit | cf3976e658e06464e84d04c5230c466e0ec44df7 (patch) | |
tree | a5d76371a4e67765060f63693568c9a3f26da8c1 /spi25_statusreg.c | |
parent | 6c68363d0c1db0fd5e2ac95fb4adeaf254f669a7 (diff) | |
download | flashrom-cf3976e658e06464e84d04c5230c466e0ec44df7.tar.gz flashrom-cf3976e658e06464e84d04c5230c466e0ec44df7.tar.bz2 flashrom-cf3976e658e06464e84d04c5230c466e0ec44df7.zip |
tree: Remove unused functions with no prototypes
These functions are no longer used, or were never used in the first place.
generate_testpattern() - Introduced in commit eaac68bf8b, never used
list_programmers() - Introduced in commit 552420b0d6, never used
pci_dev_find_filter() - Prototype removed in commit 5c316f9549
erase_chip_jedec() - Usage and prototype removed in commit f52f784bb3
printlock_regspace2_blocks() - Introduced in commit ef3ac8ac17, never used
spi_write_status_enable() - Usage dropped in commit fcbdbbc0d4
Change-Id: I742164670521fea65ffa3808446594848ce63cec
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/33669
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'spi25_statusreg.c')
-rw-r--r-- | spi25_statusreg.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spi25_statusreg.c b/spi25_statusreg.c index 4cf70232..8cd5a286 100644 --- a/spi25_statusreg.c +++ b/spi25_statusreg.c @@ -22,20 +22,6 @@ #include "spi.h" /* === Generic functions === */ -int spi_write_status_enable(struct flashctx *flash) -{ - static const unsigned char cmd[JEDEC_EWSR_OUTSIZE] = { JEDEC_EWSR }; - int result; - - /* Send EWSR (Enable Write Status Register). */ - result = spi_send_command(flash, sizeof(cmd), JEDEC_EWSR_INSIZE, cmd, NULL); - - if (result) - msg_cerr("%s failed\n", __func__); - - return result; -} - static int spi_write_status_register_flag(struct flashctx *flash, int status, const unsigned char enable_opcode) { int result; |