summaryrefslogtreecommitdiff
path: root/extmod/vfs_fat_diskio.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-10-29 12:25:30 +1100
committerDamien George <damien.p.george@gmail.com>2019-10-29 14:17:29 +1100
commitcfe1c5abf884027eb0a5792d5a980fee8757051a (patch)
treeb590395b2879d3196e4024fa2c400ca0d42e9079 /extmod/vfs_fat_diskio.c
parent7c8fb27f38b06b5067d913e9d57f87005445601b (diff)
extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx.
Also rename SEC_COUNT to BLOCK_COUNT and SEC_SIZE to BLOCK_SIZE.
Diffstat (limited to 'extmod/vfs_fat_diskio.c')
-rw-r--r--extmod/vfs_fat_diskio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extmod/vfs_fat_diskio.c b/extmod/vfs_fat_diskio.c
index 61a4d6da5..76a918fa3 100644
--- a/extmod/vfs_fat_diskio.c
+++ b/extmod/vfs_fat_diskio.c
@@ -113,10 +113,10 @@ DRESULT disk_ioctl (
// First part: call the relevant method of the underlying block device
static const uint8_t op_map[8] = {
- [CTRL_SYNC] = BP_IOCTL_SYNC,
- [GET_SECTOR_COUNT] = BP_IOCTL_SEC_COUNT,
- [GET_SECTOR_SIZE] = BP_IOCTL_SEC_SIZE,
- [IOCTL_INIT] = BP_IOCTL_INIT,
+ [CTRL_SYNC] = MP_BLOCKDEV_IOCTL_SYNC,
+ [GET_SECTOR_COUNT] = MP_BLOCKDEV_IOCTL_BLOCK_COUNT,
+ [GET_SECTOR_SIZE] = MP_BLOCKDEV_IOCTL_BLOCK_SIZE,
+ [IOCTL_INIT] = MP_BLOCKDEV_IOCTL_INIT,
};
uint8_t bp_op = op_map[cmd & 7];
mp_obj_t ret = mp_const_none;