From 4e783237a67f7de2b76be97eb9418fc2acd52c20 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 13 Nov 2025 20:15:20 -0700 Subject: [PATCH] fat: Move struct fat_dir to top of file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move struct definitions to the top of the file for better organization and visibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- fs/fat/fat.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index aa2daeda118..9b10997ec62 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -27,6 +27,13 @@ #include #include "fat_internal.h" +struct fat_dir { + struct fs_dir_stream parent; + struct fs_dirent dirent; + struct fsdata fsdata; + struct fat_itr itr; +}; + /* * Convert a string to lowercase. Converts at most 'len' characters, * 'len' may be larger than the length of 'str' if 'str' is NULL @@ -1190,13 +1197,6 @@ int file_fat_read(const char *filename, void *buffer, int maxsize) return actread; } -struct fat_dir { - struct fs_dir_stream parent; - struct fs_dirent dirent; - struct fsdata fsdata; - struct fat_itr itr; -}; - int fat_opendir(const char *filename, struct fs_dir_stream **dirsp) { struct fat_dir *dir;