mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 10:26:37 +00:00
drivers/mtd/at45db.c: Correct some typos.
This commit is contained in:
parent
ca747ee289
commit
e34e9fd782
1 changed files with 12 additions and 12 deletions
|
|
@ -229,7 +229,7 @@ static inline int at45db_rdid(FAR struct at45db_dev_s *priv);
|
|||
static inline uint8_t at45db_rdsr(FAR struct at45db_dev_s *priv);
|
||||
static uint8_t at45db_waitbusy(FAR struct at45db_dev_s *priv);
|
||||
static inline void at45db_pgerase(FAR struct at45db_dev_s *priv, off_t offset);
|
||||
static inline int at32db_chiperase(FAR struct at45db_dev_s *priv);
|
||||
static inline int at45db_chiperase(FAR struct at45db_dev_s *priv);
|
||||
static inline void at45db_pgwrite(FAR struct at45db_dev_s *priv,
|
||||
FAR const uint8_t *buffer, off_t offset);
|
||||
|
||||
|
|
@ -518,10 +518,10 @@ static inline void at45db_pgerase(FAR struct at45db_dev_s *priv, off_t sector)
|
|||
}
|
||||
|
||||
/************************************************************************************
|
||||
* Name: at32db_chiperase
|
||||
* Name: at45db_chiperase
|
||||
************************************************************************************/
|
||||
|
||||
static inline int at32db_chiperase(FAR struct at45db_dev_s *priv)
|
||||
static inline int at45db_chiperase(FAR struct at45db_dev_s *priv)
|
||||
{
|
||||
finfo("priv: %p\n", priv);
|
||||
|
||||
|
|
@ -785,18 +785,18 @@ static int at45db_ioctl(FAR struct mtd_dev_s *mtd, int cmd, unsigned long arg)
|
|||
|
||||
case MTDIOC_BULKERASE:
|
||||
{
|
||||
/* Take the lock so that we have exclusive access to the bus, then
|
||||
* power up the FLASH device.
|
||||
*/
|
||||
/* Take the lock so that we have exclusive access to the bus, then
|
||||
* power up the FLASH device.
|
||||
*/
|
||||
|
||||
at45db_lock(priv);
|
||||
at45db_resume(priv);
|
||||
at45db_lock(priv);
|
||||
at45db_resume(priv);
|
||||
|
||||
/* Erase the entire device */
|
||||
/* Erase the entire device */
|
||||
|
||||
ret = at32db_chiperase(priv);
|
||||
at45db_pwrdown(priv);
|
||||
at45db_unlock(priv);
|
||||
ret = at45db_chiperase(priv);
|
||||
at45db_pwrdown(priv);
|
||||
at45db_unlock(priv);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue