Browse Source

Fix prototype mismatch.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
64787bad29
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/nvs/spi.c

+ 2
- 2
src/drivers/nvs/spi.c View File

80
  * @ret rc		Return status code
80
  * @ret rc		Return status code
81
  */
81
  */
82
 int spi_read ( struct nvs_device *nvs, unsigned int address,
82
 int spi_read ( struct nvs_device *nvs, unsigned int address,
83
-	       void *data, unsigned int len ) {
83
+	       void *data, size_t len ) {
84
 	struct spi_device *device = nvs_to_spi ( nvs );
84
 	struct spi_device *device = nvs_to_spi ( nvs );
85
 	struct spi_bus *bus = device->bus;
85
 	struct spi_bus *bus = device->bus;
86
 	unsigned int command = spi_command ( SPI_READ, address,
86
 	unsigned int command = spi_command ( SPI_READ, address,
107
  * @ret rc		Return status code
107
  * @ret rc		Return status code
108
  */
108
  */
109
 int spi_write ( struct nvs_device *nvs, unsigned int address,
109
 int spi_write ( struct nvs_device *nvs, unsigned int address,
110
-		const void *data, unsigned int len ) {
110
+		const void *data, size_t len ) {
111
 	struct spi_device *device = nvs_to_spi ( nvs );
111
 	struct spi_device *device = nvs_to_spi ( nvs );
112
 	struct spi_bus *bus = device->bus;
112
 	struct spi_bus *bus = device->bus;
113
 	unsigned int command = spi_command ( SPI_WRITE, address,
113
 	unsigned int command = spi_command ( SPI_WRITE, address,

Loading…
Cancel
Save