mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE

since the old design reuse BIOC_FLUSH for
MTD device which make some confusion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-06-09 21:29:03 +08:00
committed by Gustavo Henrique Nihei
parent 2a7b97c0cd
commit 2e49e1bc5c
4 changed files with 13 additions and 6 deletions
+3
View File
@@ -68,6 +68,9 @@
* OUT: None */
#define MTDIOC_ECCSTATUS _MTDIOC(0x0008) /* IN: Pointer to uint8_t
* OUT: ECC status */
#define MTDIOC_FLUSH _MTDIOC(0x0009) /* IN: None
* OUT: None (ioctl return value provides
* success/failure indication). */
/* Macros to hide implementation */