diff options
Diffstat (limited to 'sb600spi.c')
-rw-r--r-- | sb600spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sb600spi.c b/sb600spi.c index 259ad27be..f4f3492ea 100644 --- a/sb600spi.c +++ b/sb600spi.c @@ -39,10 +39,10 @@ struct sb600_spi_controller { struct sb600_spi_controller *spi_bar = NULL; uint8_t *sb600_spibar; -int sb600_spi_read(struct flashchip *flash, uint8_t *buf) +int sb600_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len) { /* Maximum read length is 8 bytes. */ - return spi_read_chunked(flash, buf, 8); + return spi_read_chunked(flash, buf, start, len, 8); } uint8_t sb600_read_status_register(void) |