summaryrefslogtreecommitdiffstats
path: root/s25f.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-04-17 17:42:53 +0200
committerAngel Pons <th3fanbus@gmail.com>2021-04-24 11:23:23 +0000
commitbc99e0659fe091b9bc751a2eb581559c70bfbf49 (patch)
tree037a3d9c420809f5c0b3ff4d8290547dc6192772 /s25f.c
parentb08fd6bad840580bc9622fd15071c5d0e40907c1 (diff)
downloadflashrom-bc99e0659fe091b9bc751a2eb581559c70bfbf49.tar.gz
flashrom-bc99e0659fe091b9bc751a2eb581559c70bfbf49.tar.bz2
flashrom-bc99e0659fe091b9bc751a2eb581559c70bfbf49.zip
s25f.c: Fix mismatched function definitions
This was missed because `uint32_t` is `unsigned int` in most cases. However, it is not the case for DJGPP 6.1.0 for some reason. Tested with manibuilder, solves some build errors on the DJGPP target. Change-Id: I656a72b85d4c70b57f6ff9268186a4a60933f8a9 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52473 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 's25f.c')
-rw-r--r--s25f.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/s25f.c b/s25f.c
index 32af53ef5..2fba6bce0 100644
--- a/s25f.c
+++ b/s25f.c
@@ -237,8 +237,7 @@ static int s25fs_restore_cr3nv(struct flashctx *flash, uint8_t cfg)
return ret;
}
-int s25fs_block_erase_d8(struct flashctx *flash,
- uint32_t addr, uint32_t blocklen)
+int s25fs_block_erase_d8(struct flashctx *flash, unsigned int addr, unsigned int blocklen)
{
static int cr3nv_checked = 0;
@@ -301,8 +300,7 @@ int s25fs_block_erase_d8(struct flashctx *flash,
return s25f_poll_status(flash);
}
-int s25fl_block_erase(struct flashctx *flash,
- uint32_t addr, uint32_t blocklen)
+int s25fl_block_erase(struct flashctx *flash, unsigned int addr, unsigned int blocklen)
{
struct spi_command erase_cmds[] = {
{