diff options
author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2011-05-11 17:07:02 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2011-05-11 17:07:02 +0000 |
commit | 4ea3dcdcf0e39101cec50fee7ea4ee5199af79f5 (patch) | |
tree | 9a01302678ba2ba642040e928b89c8877c080412 /buspirate_spi.c | |
parent | b430b19090b7d9aaaf5b36daacc8f08a9da91fc6 (diff) | |
download | flashrom-4ea3dcdcf0e39101cec50fee7ea4ee5199af79f5.zip flashrom-4ea3dcdcf0e39101cec50fee7ea4ee5199af79f5.tar.gz |
Factor out SPI write/read chunking wrappers
Corresponding to flashrom svn r1298.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'buspirate_spi.c')
-rw-r--r-- | buspirate_spi.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/buspirate_spi.c b/buspirate_spi.c index d24f890..e7a7a10 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -326,13 +326,3 @@ int buspirate_spi_send_command(unsigned int writecnt, unsigned int readcnt, return ret; } - -int buspirate_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len) -{ - return spi_read_chunked(flash, buf, start, len, 12); -} - -int buspirate_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len) -{ - return spi_write_chunked(flash, buf, start, len, 12); -} |