aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/nvs
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2006-12-04 16:09:59 +0000
committerMichael Brown <mcb30@etherboot.org>2006-12-04 16:09:59 +0000
commitdc06c895fc089bcb9c050b2fb64494213f61e896 (patch)
treed9f466956be3aaacf03eab76c3e097728172f506 /src/drivers/nvs
parent931f94dca30b04f8303acdcfd08436e61a491a92 (diff)
downloadipxe-dc06c895fc089bcb9c050b2fb64494213f61e896.tar.gz
Changed length parameter in SPI methods to be a byte length, rather than
a word length.
Diffstat (limited to 'src/drivers/nvs')
-rw-r--r--src/drivers/nvs/threewire.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/nvs/threewire.c b/src/drivers/nvs/threewire.c
index fd360037a..552c3b462 100644
--- a/src/drivers/nvs/threewire.c
+++ b/src/drivers/nvs/threewire.c
@@ -31,17 +31,16 @@
* @v device SPI device
* @v address Address from which to read
* @v data Data buffer
- * @v len Length of data to read, in @b words
+ * @v len Length of data buffer
* @ret rc Return status code
*/
int threewire_read ( struct spi_device *device, unsigned int address,
- void *data, unsigned int len ) {
+ void *data, size_t len ) {
struct spi_bus *bus = device->bus;
assert ( bus->mode == SPI_MODE_THREEWIRE );
- DBG ( "3wire %p reading words [%04x,%04x)\n", device,
- address, ( address + len ) );
+ DBG ( "3wire %p reading %d bytes at %04x\n", device, len, address );
return bus->rw ( bus, device, THREEWIRE_READ, address,
NULL, data, len );