summaryrefslogtreecommitdiffstats
path: root/opaque.c
diff options
context:
space:
mode:
Diffstat (limited to 'opaque.c')
-rw-r--r--opaque.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opaque.c b/opaque.c
index 13c6a09..1c31612 100644
--- a/opaque.c
+++ b/opaque.c
@@ -53,7 +53,7 @@ int probe_opaque(struct flashchip *flash)
return opaque_programmer->probe(flash);
}
-int read_opaque(struct flashchip *flash, uint8_t *buf, int start, int len)
+int read_opaque(struct flashchip *flash, uint8_t *buf, unsigned int start, unsigned int len)
{
if (!opaque_programmer->read) {
msg_perr("%s called before register_opaque_programmer. "
@@ -64,7 +64,7 @@ int read_opaque(struct flashchip *flash, uint8_t *buf, int start, int len)
return opaque_programmer->read(flash, buf, start, len);
}
-int write_opaque(struct flashchip *flash, uint8_t *buf, int start, int len)
+int write_opaque(struct flashchip *flash, uint8_t *buf, unsigned int start, unsigned int len)
{
if (!opaque_programmer->write) {
msg_perr("%s called before register_opaque_programmer. "
OpenPOWER on IntegriCloud