|
@@ -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,
|