S25FL1 FLASH driver: Fix return value from the bwrite() method

This commit is contained in:
Gregory Nutt
2015-11-07 11:26:53 -06:00
parent 41337324ba
commit b2bdba0824
4 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -10881,7 +10881,7 @@
device (2015-08-24).
* networking: Correct return value from psock_tcp_accept(). From
SaeHie Park (2015-08-25).
* drivers/mtd/st25fl1.c: Add a driver for ST25L1*K QuadSPI parts
* drivers/mtd/s25fl1.c: Add a driver for ST25L1*K QuadSPI parts
(2015-08-25).
* include/nuttx/spi/qspi.h: Develop a new interface for QSPI, at
least the way that QSPI is implemented on the SAMV71. Originally
@@ -11071,4 +11071,6 @@
* arch/arm/src/samv7: Add a call to can_txready() to the MCAN driver
(2015-11-03).
* arch/arm/src/samv7: Add MPU and protected build support (2015-11-06).
* arch/arm/src/samv7: The QSPI FLASH driver is now functional. This
driver operates in the memory-mapped, Serial Memory Mode (SMM)
(2015-11-07).
+1 -1
Submodule arch updated: dd5268721c...2137b6c754
+1 -1
Submodule configs updated: 449de6ca27...8e4edaaa02
+1 -1
View File
@@ -1289,7 +1289,7 @@ static ssize_t st25fl1_bwrite(FAR struct mtd_dev_s *dev, off_t startblock,
st25fl1_unlock(priv->qspi);
return ret;
return ret < 0 ? ret : nblocks;
}
/************************************************************************************