mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Fix some spacing problems
This commit is contained in:
@@ -640,7 +640,7 @@ static ssize_t at45db_bread(FAR struct mtd_dev_s *mtd, off_t startblock,
|
||||
FAR struct at45db_dev_s *priv = (FAR struct at45db_dev_s *)mtd;
|
||||
ssize_t nbytes;
|
||||
|
||||
/* On this device, we can handle the block read just like the byte-oriented read */
|
||||
/* On this device, we can handle the block read just like the byte-oriented read */
|
||||
|
||||
nbytes = at45db_read(mtd, startblock << priv->pageshift,
|
||||
nblocks << priv->pageshift, buffer);
|
||||
|
||||
@@ -540,7 +540,7 @@ static int nand_writepage(FAR struct nand_dev_s *nand, off_t block,
|
||||
* ECC calculations.
|
||||
*/
|
||||
|
||||
else
|
||||
else
|
||||
#endif
|
||||
{
|
||||
return NAND_WRITEPAGE(nand->raw, block, page, data, NULL);
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
#define EBICSA_EBI_DBPDC (1 << 9)
|
||||
#define EBICSA_NAND_D0_ON_D16 (1 << 24)
|
||||
|
||||
/* Misc. definitions */
|
||||
/* Misc. definitions */
|
||||
|
||||
#define MAX_READ_STATUS_COUNT 100000 /* Read status timeout */
|
||||
#define ONFI_PARAM_TABLE_SIZE 116 /* Not all 256 bytes are useful */
|
||||
|
||||
@@ -644,9 +644,9 @@ static inline int st25fl1_readid(struct st25fl1_dev_s *priv)
|
||||
default:
|
||||
fdbg("ERROR: Unsupported memory capacity: %02x\n", priv->cmdbuf[2]);
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
|
||||
return OK;
|
||||
return OK;
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user