[Concept,0/6] fat: Some code improvements

Message ID 20251113025657.3862482-1-sjg@u-boot.org
Headers
Series fat: Some code improvements |

Message

Simon Glass Nov. 13, 2025, 2:56 a.m. UTC
  From: Simon Glass <simon.glass@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    | 246 ++++++++++++++-------------
 include/fat.h         | 385 +++++++++++++++++++++++++++++++++---------
 5 files changed, 677 insertions(+), 443 deletions(-)
 create mode 100644 fs/fat/fat_internal.h