summaryrefslogtreecommitdiffstats
path: root/src/drivers/nvs
diff options
context:
space:
mode:
authorMichael Brown2007-12-07 00:35:37 +0100
committerMichael Brown2007-12-07 00:35:37 +0100
commit64787bad295e7f4eefbe60fddc3439d34412090e (patch)
tree5ea304131b5e1e1b2e191a8d568ce2bc5457d225 /src/drivers/nvs
parentAdd missing format qualifier (diff)
downloadipxe-64787bad295e7f4eefbe60fddc3439d34412090e.tar.gz
ipxe-64787bad295e7f4eefbe60fddc3439d34412090e.tar.xz
ipxe-64787bad295e7f4eefbe60fddc3439d34412090e.zip
Fix prototype mismatch.
Diffstat (limited to 'src/drivers/nvs')
-rw-r--r--src/drivers/nvs/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/nvs/spi.c b/src/drivers/nvs/spi.c
index a5bd46a1..fba6b6d6 100644
--- a/src/drivers/nvs/spi.c
+++ b/src/drivers/nvs/spi.c
@@ -80,7 +80,7 @@ static int spi_wait ( struct spi_device *device ) {
* @ret rc Return status code
*/
int spi_read ( struct nvs_device *nvs, unsigned int address,
- void *data, unsigned int len ) {
+ void *data, size_t len ) {
struct spi_device *device = nvs_to_spi ( nvs );
struct spi_bus *bus = device->bus;
unsigned int command = spi_command ( SPI_READ, address,
@@ -107,7 +107,7 @@ int spi_read ( struct nvs_device *nvs, unsigned int address,
* @ret rc Return status code
*/
int spi_write ( struct nvs_device *nvs, unsigned int address,
- const void *data, unsigned int len ) {
+ const void *data, size_t len ) {
struct spi_device *device = nvs_to_spi ( nvs );
struct spi_bus *bus = device->bus;
unsigned int command = spi_command ( SPI_WRITE, address,