Skip to content

Commit

Permalink
eeprom: Zap eeprom_probe()
Browse files Browse the repository at this point in the history
Remove this function as it's no longer used.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Heiko Schocher <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
  • Loading branch information
Marek Vasut authored and trini committed Nov 22, 2015
1 parent ec7012e commit b7b2e3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
19 changes: 0 additions & 19 deletions common/cmd_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,25 +221,6 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
return rcode;
}

#if !defined(CONFIG_SPI) || defined(CONFIG_ENV_EEPROM_IS_ON_I2C)
int eeprom_probe(unsigned dev_addr, unsigned offset)
{
unsigned char chip;

/* Probe the chip address
*/
#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
chip = offset >> 8; /* block number */
#else
chip = offset >> 16; /* block number */
#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */

chip |= dev_addr; /* insert device address */

return (i2c_probe (chip));
}
#endif

static int do_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
const char *const fmt =
Expand Down
3 changes: 0 additions & 3 deletions include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,6 @@ void fdc_hw_init (void);

/* $(BOARD)/eeprom.c */
void eeprom_init (void);
#ifndef CONFIG_SPI
int eeprom_probe (unsigned dev_addr, unsigned offset);
#endif
int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt);
int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt);

Expand Down

0 comments on commit b7b2e3f

Please sign in to comment.