mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
MTD: Fixed cloned typos in several FLASH drivers.
This commit is contained in:
parent
7f6a403b96
commit
3f40541b21
4 changed files with 14 additions and 14 deletions
|
@ -241,15 +241,15 @@
|
|||
|
||||
#define IS_VALID(p) ((((p)->flags) & N25QXXX_CACHE_VALID) != 0)
|
||||
#define IS_DIRTY(p) ((((p)->flags) & N25QXXX_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & N25QXXX_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & N25QXXX_CACHE_ERASED) != 0)
|
||||
|
||||
#define SET_VALID(p) do { (p)->flags |= N25QXXX_CACHE_VALID; } while (0)
|
||||
#define SET_DIRTY(p) do { (p)->flags |= N25QXXX_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= N25QXXX_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= N25QXXX_CACHE_ERASED; } while (0)
|
||||
|
||||
#define CLR_VALID(p) do { (p)->flags &= ~N25QXXX_CACHE_VALID; } while (0)
|
||||
#define CLR_DIRTY(p) do { (p)->flags &= ~N25QXXX_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~N25QXXX_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~N25QXXX_CACHE_ERASED; } while (0)
|
||||
|
||||
/* 512 byte sector support **********************************************************/
|
||||
|
||||
|
|
|
@ -292,15 +292,15 @@
|
|||
|
||||
#define IS_VALID(p) ((((p)->flags) & S25FL1_CACHE_VALID) != 0)
|
||||
#define IS_DIRTY(p) ((((p)->flags) & S25FL1_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & S25FL1_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & S25FL1_CACHE_ERASED) != 0)
|
||||
|
||||
#define SET_VALID(p) do { (p)->flags |= S25FL1_CACHE_VALID; } while (0)
|
||||
#define SET_DIRTY(p) do { (p)->flags |= S25FL1_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= S25FL1_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= S25FL1_CACHE_ERASED; } while (0)
|
||||
|
||||
#define CLR_VALID(p) do { (p)->flags &= ~S25FL1_CACHE_VALID; } while (0)
|
||||
#define CLR_DIRTY(p) do { (p)->flags &= ~S25FL1_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~S25FL1_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~S25FL1_CACHE_ERASED; } while (0)
|
||||
|
||||
/* 512 byte sector support **********************************************************/
|
||||
|
||||
|
|
|
@ -171,15 +171,15 @@
|
|||
|
||||
#define IS_VALID(p) ((((p)->flags) & SST25_CACHE_VALID) != 0)
|
||||
#define IS_DIRTY(p) ((((p)->flags) & SST25_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & SST25_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & SST25_CACHE_ERASED) != 0)
|
||||
|
||||
#define SET_VALID(p) do { (p)->flags |= SST25_CACHE_VALID; } while (0)
|
||||
#define SET_DIRTY(p) do { (p)->flags |= SST25_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= SST25_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= SST25_CACHE_ERASED; } while (0)
|
||||
|
||||
#define CLR_VALID(p) do { (p)->flags &= ~SST25_CACHE_VALID; } while (0)
|
||||
#define CLR_DIRTY(p) do { (p)->flags &= ~SST25_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~SST25_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~SST25_CACHE_ERASED; } while (0)
|
||||
|
||||
/************************************************************************************
|
||||
* Private Types
|
||||
|
@ -1228,7 +1228,7 @@ FAR struct mtd_dev_s *sst25_initialize(FAR struct spi_dev_s *dev)
|
|||
|
||||
ferr("ERROR: Allocation failed\n");
|
||||
kmm_free(priv);
|
||||
priv = NULL;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -200,15 +200,15 @@
|
|||
|
||||
#define IS_VALID(p) ((((p)->flags) & W25_CACHE_VALID) != 0)
|
||||
#define IS_DIRTY(p) ((((p)->flags) & W25_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & W25_CACHE_DIRTY) != 0)
|
||||
#define IS_ERASED(p) ((((p)->flags) & W25_CACHE_ERASED) != 0)
|
||||
|
||||
#define SET_VALID(p) do { (p)->flags |= W25_CACHE_VALID; } while (0)
|
||||
#define SET_DIRTY(p) do { (p)->flags |= W25_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= W25_CACHE_DIRTY; } while (0)
|
||||
#define SET_ERASED(p) do { (p)->flags |= W25_CACHE_ERASED; } while (0)
|
||||
|
||||
#define CLR_VALID(p) do { (p)->flags &= ~W25_CACHE_VALID; } while (0)
|
||||
#define CLR_DIRTY(p) do { (p)->flags &= ~W25_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~W25_CACHE_DIRTY; } while (0)
|
||||
#define CLR_ERASED(p) do { (p)->flags &= ~W25_CACHE_ERASED; } while (0)
|
||||
|
||||
/************************************************************************************
|
||||
* Private Types
|
||||
|
@ -1278,7 +1278,7 @@ FAR struct mtd_dev_s *w25_initialize(FAR struct spi_dev_s *spi)
|
|||
|
||||
ferr("ERROR: Allocation failed\n");
|
||||
kmm_free(priv);
|
||||
priv = NULL;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue