ソースを参照

Fix prototype mismatch.

tags/v0.9.3
Michael Brown 17年前
コミット
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,

読み込み中…
キャンセル
保存