mtd: Replace MTDIOC_PARTINFO with BIOC_PARTINFO

to simplify flt and partion layer implementation

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-08-11 14:10:16 +08:00
parent 9b58b77b88
commit 0705ae633e
3 changed files with 7 additions and 13 deletions
-6
View File
@@ -540,12 +540,6 @@ static int ftl_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
cmd = MTDIOC_FLUSH;
}
else if (cmd == BIOC_PARTINFO)
{
/* Change the BIOC_PARTINFO command to the MTDIOC_PARTINFO command. */
cmd = MTDIOC_PARTINFO;
}
/* No other block driver ioctl commands are not recognized by this
* driver. Other possible MTD driver ioctl commands are passed through
+1 -1
View File
@@ -414,7 +414,7 @@ static int part_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
}
break;
case MTDIOC_PARTINFO:
case BIOC_PARTINFO:
{
FAR struct partition_info_s *info =
(FAR struct partition_info_s *)arg;