Преглед изворни кода

Fix prototype mismatch.

tags/v0.9.3
Michael Brown пре 16 година
родитељ
комит
64787bad29
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      src/drivers/nvs/spi.c

+ 2
- 2
src/drivers/nvs/spi.c Прегледај датотеку

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

Loading…
Откажи
Сачувај