mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user