You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "michallenc (via GitHub)" <gi...@apache.org> on 2023/04/29 09:33:37 UTC
[GitHub] [nuttx] michallenc commented on a diff in pull request #9140: mtd: add support for MTDIOC_ERASESECTORS ioctl
michallenc commented on code in PR #9140:
URL: https://github.com/apache/nuttx/pull/9140#discussion_r1181027163
##########
drivers/mtd/mtd_partition.c:
##########
@@ -469,6 +469,18 @@ static int part_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
}
break;
+ case MTDIOC_ERASESECTORS:
+ {
+ /* Erase sectors as defined in mtd_erase_s structure */
+
+ FAR struct mtd_erase_s *erase = (FAR struct mtd_erase_s *)arg;
+
+ ret = priv->parent->erase(priv->parent,
+ erase->startblock,
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org