summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-06-07 19:06:26 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-06-07 19:06:26 +0000
commit36dec8b9380c03782de48c5cf25f6bdc02a70150 (patch)
treee7fc7878a77427a5b0d6486c5d121ac3bd36c2a0 /flash.h
parent1a5eaa1a0559cc73ee9ffd54c5e1190b2803931a (diff)
downloadflashrom-36dec8b9380c03782de48c5cf25f6bdc02a70150.tar.gz
flashrom-36dec8b9380c03782de48c5cf25f6bdc02a70150.tar.bz2
flashrom-36dec8b9380c03782de48c5cf25f6bdc02a70150.zip
board_enable.c: Remove useless 'name' parameter
Every board-enable function is passed a 'const char *name' (board name) which is totally useless as the board name was already printed by flashrom at that point. Also, 95% or so of the board-enables don't use the parameter anyway. So, drop it. Corresponding to flashrom svn r1037. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index 62c567cee..9d92db25f 100644
--- a/flash.h
+++ b/flash.h
@@ -294,7 +294,7 @@ struct board_pciid_enable {
int max_rom_decode_parallel;
int status;
- int (*enable) (const char *name);
+ int (*enable) (void);
};
extern struct board_pciid_enable board_pciid_enables[];
@@ -698,7 +698,7 @@ int sb600_spi_write_1(struct flashchip *flash, uint8_t *buf);
extern uint8_t *sb600_spibar;
/* wbsio_spi.c */
-int wbsio_check_for_spi(const char *name);
+int wbsio_check_for_spi(void);
int wbsio_spi_send_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr);
int wbsio_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);