path: root/flash.h
diff options
authorCarl-Daniel Hailfinger <>2009-05-01 12:22:17 +0000
committerCarl-Daniel Hailfinger <>2009-05-01 12:22:17 +0000
commit4363439cdb2b4468899343776a3485d96cba56bc (patch)
tree3762d444137ae8d3c869de3a814f51404e020b40 /flash.h
parent451dc80e0e16205f88e7fde17e1d3f710d06b5c8 (diff)
Some functions take no arguments
Make that explicit in the associated prototypes. This avoids a warning on some compilers and is a correctness issue. Corresponding to flashrom svn r449. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'flash.h')
1 files changed, 5 insertions, 5 deletions
diff --git a/flash.h b/flash.h
index e3cd49e..c50ba30 100644
--- a/flash.h
+++ b/flash.h
@@ -476,7 +476,7 @@ extern struct flashchip flashchips[];
/* udelay.c */
void myusec_delay(int time);
-void myusec_calibrate_delay();
+void myusec_calibrate_delay(void);
/* PCI handling for board/chipset_enable */
struct pci_access *pacc;
@@ -538,8 +538,8 @@ int probe_spi_rems(struct flashchip *flash);
int probe_spi_res(struct flashchip *flash);
int spi_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr);
-int spi_write_enable();
-int spi_write_disable();
+int spi_write_enable(void);
+int spi_write_disable(void);
int spi_chip_erase_60(struct flashchip *flash);
int spi_chip_erase_c7(struct flashchip *flash);
int spi_chip_erase_60_c7(struct flashchip *flash);
@@ -548,7 +548,7 @@ int spi_block_erase_52(const struct flashchip *flash, unsigned long addr);
int spi_block_erase_d8(const struct flashchip *flash, unsigned long addr);
int spi_chip_write(struct flashchip *flash, uint8_t *buf);
int spi_chip_read(struct flashchip *flash, uint8_t *buf);
-uint8_t spi_read_status_register();
+uint8_t spi_read_status_register(void);
int spi_disable_blockprotect(void);
void spi_byte_program(int address, uint8_t byte);
int spi_nbyte_read(int address, uint8_t *bytes, int len);
@@ -570,7 +570,7 @@ int erase_en29f002a(struct flashchip *flash);
int write_en29f002a(struct flashchip *flash, uint8_t *buf);
/* ichspi.c */
-int ich_init_opcodes();
+int ich_init_opcodes(void);
int ich_spi_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr);
int ich_spi_read(struct flashchip *flash, uint8_t * buf);
OpenPOWER on IntegriCloud