sf: localize erase funcs

No need for these to be exported as they are only accessed indirectly
via function pointers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
master
Mike Frysinger 14 years ago
parent c5910874ba
commit f8f0757dcb
  1. 4
      drivers/mtd/spi/atmel.c
  2. 2
      drivers/mtd/spi/eon.c
  3. 2
      drivers/mtd/spi/macronix.c
  4. 2
      drivers/mtd/spi/ramtron.c
  5. 2
      drivers/mtd/spi/spansion.c
  6. 2
      drivers/mtd/spi/sst.c
  7. 2
      drivers/mtd/spi/stmicro.c
  8. 2
      drivers/mtd/spi/winbond.c

@ -328,7 +328,7 @@ out:
/* /*
* TODO: the two erase funcs (_p2/_at45) should get unified ... * TODO: the two erase funcs (_p2/_at45) should get unified ...
*/ */
int dataflash_erase_p2(struct spi_flash *flash, u32 offset, size_t len) static int dataflash_erase_p2(struct spi_flash *flash, u32 offset, size_t len)
{ {
struct atmel_spi_flash *asf = to_atmel_spi_flash(flash); struct atmel_spi_flash *asf = to_atmel_spi_flash(flash);
unsigned long page_size; unsigned long page_size;
@ -387,7 +387,7 @@ out:
return ret; return ret;
} }
int dataflash_erase_at45(struct spi_flash *flash, u32 offset, size_t len) static int dataflash_erase_at45(struct spi_flash *flash, u32 offset, size_t len)
{ {
struct atmel_spi_flash *asf = to_atmel_spi_flash(flash); struct atmel_spi_flash *asf = to_atmel_spi_flash(flash);
unsigned long page_addr; unsigned long page_addr;

@ -119,7 +119,7 @@ static int eon_write(struct spi_flash *flash,
return ret; return ret;
} }
int eon_erase(struct spi_flash *flash, u32 offset, size_t len) static int eon_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
return spi_flash_cmd_erase(flash, CMD_EN25Q128_BE, offset, len); return spi_flash_cmd_erase(flash, CMD_EN25Q128_BE, offset, len);
} }

@ -175,7 +175,7 @@ static int macronix_write(struct spi_flash *flash,
return ret; return ret;
} }
int macronix_erase(struct spi_flash *flash, u32 offset, size_t len) static int macronix_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
return spi_flash_cmd_erase(flash, CMD_MX25XX_BE, offset, len); return spi_flash_cmd_erase(flash, CMD_MX25XX_BE, offset, len);
} }

@ -233,7 +233,7 @@ static int ramtron_write(struct spi_flash *flash,
CMD_RAMTRON_WRITE); CMD_RAMTRON_WRITE);
} }
int ramtron_erase(struct spi_flash *flash, u32 offset, size_t len) static int ramtron_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
debug("SF: Erase of RAMTRON FRAMs is pointless\n"); debug("SF: Erase of RAMTRON FRAMs is pointless\n");
return -1; return -1;

@ -196,7 +196,7 @@ static int spansion_write(struct spi_flash *flash,
return ret; return ret;
} }
int spansion_erase(struct spi_flash *flash, u32 offset, size_t len) static int spansion_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
return spi_flash_cmd_erase(flash, CMD_S25FLXX_SE, offset, len); return spi_flash_cmd_erase(flash, CMD_S25FLXX_SE, offset, len);
} }

@ -199,7 +199,7 @@ sst_write(struct spi_flash *flash, u32 offset, size_t len, const void *buf)
return ret; return ret;
} }
int sst_erase(struct spi_flash *flash, u32 offset, size_t len) static int sst_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
return spi_flash_cmd_erase(flash, CMD_SST_SE, offset, len); return spi_flash_cmd_erase(flash, CMD_SST_SE, offset, len);
} }

@ -197,7 +197,7 @@ static int stmicro_write(struct spi_flash *flash,
return ret; return ret;
} }
int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len) static int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
return spi_flash_cmd_erase(flash, CMD_M25PXX_SE, offset, len); return spi_flash_cmd_erase(flash, CMD_M25PXX_SE, offset, len);
} }

@ -170,7 +170,7 @@ out:
return ret; return ret;
} }
int winbond_erase(struct spi_flash *flash, u32 offset, size_t len) static int winbond_erase(struct spi_flash *flash, u32 offset, size_t len)
{ {
return spi_flash_cmd_erase(flash, CMD_W25_SE, offset, len); return spi_flash_cmd_erase(flash, CMD_W25_SE, offset, len);
} }

Loading…
Cancel
Save