summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ichspi.c b/ichspi.c
index 1ce525f..78cdb3b 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1278,7 +1278,8 @@ int ich_hwseq_block_erase(struct flashchip *flash,
return 0;
}
-int ich_hwseq_read(struct flashchip *flash, uint8_t *buf, int addr, int len)
+int ich_hwseq_read(struct flashchip *flash, uint8_t *buf, unsigned int addr,
+ unsigned int len)
{
uint16_t hsfc;
uint16_t timeout = 100 * 60;
@@ -1315,7 +1316,8 @@ int ich_hwseq_read(struct flashchip *flash, uint8_t *buf, int addr, int len)
return 0;
}
-int ich_hwseq_write(struct flashchip *flash, uint8_t *buf, int addr, int len)
+int ich_hwseq_write(struct flashchip *flash, uint8_t *buf, unsigned int addr,
+ unsigned int len)
{
uint16_t hsfc;
uint16_t timeout = 100 * 60;
OpenPOWER on IntegriCloud