Commit 755b9cab authored by Alessandro Rubini's avatar Alessandro Rubini

eeprom: don't pass redundant parameters to sfpdb_erase()

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent ab8e3c9c
...@@ -134,7 +134,7 @@ static int eeprom_write(uint8_t i2cif, uint8_t i2c_addr, uint32_t offset, ...@@ -134,7 +134,7 @@ static int eeprom_write(uint8_t i2cif, uint8_t i2c_addr, uint32_t offset,
return size; return size;
} }
int32_t eeprom_sfpdb_erase(uint8_t i2cif, uint8_t i2c_addr) int32_t eeprom_sfpdb_erase(void)
{ {
uint8_t sfpcount = 0; uint8_t sfpcount = 0;
......
...@@ -275,7 +275,7 @@ int set_persistent_mac(uint8_t portnum, uint8_t * mac) ...@@ -275,7 +275,7 @@ int set_persistent_mac(uint8_t portnum, uint8_t * mac)
/* Just a dummy function that writes '0' to sfp count field of the SFP DB */ /* Just a dummy function that writes '0' to sfp count field of the SFP DB */
int32_t eeprom_sfpdb_erase(uint8_t i2cif, uint8_t i2c_addr) int32_t eeprom_sfpdb_erase(void)
{ {
uint8_t sfpcount = 0; uint8_t sfpcount = 0;
int ret; int ret;
......
...@@ -29,7 +29,7 @@ struct s_sfpinfo { ...@@ -29,7 +29,7 @@ struct s_sfpinfo {
void eeprom_init(int i2cif, int i2c_addr); void eeprom_init(int i2cif, int i2c_addr);
int32_t eeprom_sfpdb_erase(uint8_t i2cif, uint8_t i2c_addr); int eeprom_sfpdb_erase(void);
int32_t eeprom_sfp_section(uint8_t i2cif, uint8_t i2c_addr, size_t size, int32_t eeprom_sfp_section(uint8_t i2cif, uint8_t i2c_addr, size_t size,
uint16_t * section_sz); uint16_t * section_sz);
int8_t eeprom_match_sfp(uint8_t i2cif, uint8_t i2c_addr, struct s_sfpinfo *sfp); int8_t eeprom_match_sfp(uint8_t i2cif, uint8_t i2c_addr, struct s_sfpinfo *sfp);
......
...@@ -51,7 +51,7 @@ static int cmd_sfp(const char *args[]) ...@@ -51,7 +51,7 @@ static int cmd_sfp(const char *args[])
// return 0; // return 0;
// } // }
else if (!strcasecmp(args[0], "erase")) { else if (!strcasecmp(args[0], "erase")) {
if (eeprom_sfpdb_erase(WRPC_FMC_I2C, FMC_EEPROM_ADR) == if (eeprom_sfpdb_erase() ==
EE_RET_I2CERR) EE_RET_I2CERR)
mprintf("Could not erase DB\n"); mprintf("Could not erase DB\n");
} else if (args[4] && !strcasecmp(args[0], "add")) { } else if (args[4] && !strcasecmp(args[0], "add")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment