summaryrefslogtreecommitdiff
path: root/extmod/vfs_lfs.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-11-11 15:43:55 +1100
committerDamien George <damien@micropython.org>2022-11-11 16:24:32 +1100
commita513558e3a72b47880faa847de64949e7fc746f6 (patch)
treeadbada6a58ec0a3d2f7c457a1f5b0f838b7cebd7 /extmod/vfs_lfs.c
parent2f0565367339595bf3130acf8e20d3d4e9bad499 (diff)
extmod: Add and reorganise compilation guards and includes.
To reduce dependencies on header files when extmod components are disabled. Signed-off-by: Damien George <damien.p.george@gmail.com>
Diffstat (limited to 'extmod/vfs_lfs.c')
-rw-r--r--extmod/vfs_lfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/extmod/vfs_lfs.c b/extmod/vfs_lfs.c
index f6a9a2462..4fb86b89b 100644
--- a/extmod/vfs_lfs.c
+++ b/extmod/vfs_lfs.c
@@ -26,12 +26,13 @@
#include "py/runtime.h"
#include "py/mphal.h"
+
+#if MICROPY_VFS && (MICROPY_VFS_LFS1 || MICROPY_VFS_LFS2)
+
#include "shared/timeutils/timeutils.h"
#include "extmod/vfs.h"
#include "extmod/vfs_lfs.h"
-#if MICROPY_VFS && (MICROPY_VFS_LFS1 || MICROPY_VFS_LFS2)
-
enum { LFS_MAKE_ARG_bdev, LFS_MAKE_ARG_readsize, LFS_MAKE_ARG_progsize, LFS_MAKE_ARG_lookahead, LFS_MAKE_ARG_mtime };
static const mp_arg_t lfs_make_allowed_args[] = {