[PATCH 0/6] fat: Some code improvements

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Thu Nov 13 07:46:50 CET 2025


From: Simon Glass <simon.glass at canonical.com>

This is an attempt to improve the structure of the FAT code, since it
doesn't fully follow the U-Boot conventions:

- fat_write.c includes fat.c which is odd
- use of __u32 and its ilk
- use of typedef
- old-style struct comments

This series resolves these problems, making it easier to take on other
improvements in future.

Simon Glass (6):
  fat: Create an internal header file
  fat: Separate fat.c from fat_write.c
  fat: Update struct fat_itr to kernel-doc style
  fat: Remove typedefs in fat.h
  fat: Convert fat.h to kernel-doc style
  fat: Use standard types for fixed-size values

 fs/fat/Makefile       |   2 +-
 fs/fat/fat.c          | 316 +++++++++-------------------------
 fs/fat/fat_internal.h | 171 +++++++++++++++++++
 fs/fat/fat_write.c    | 247 ++++++++++++++-------------
 include/fat.h         | 385 +++++++++++++++++++++++++++++++++---------
 5 files changed, 678 insertions(+), 443 deletions(-)
 create mode 100644 fs/fat/fat_internal.h

-- 
2.51.0



More information about the U-Boot mailing list