Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix prototype mismatch.
  • Loading branch information
Michael Brown committed Dec 6, 2007
1 parent be6ada2 commit 64787ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/nvs/spi.c
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 64787ba

Please sign in to comment.