]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/fat: Clean up open-coded sector <-> cluster conversions
authorRob Clark <robdclark@gmail.com>
Sat, 9 Sep 2017 17:16:00 +0000 (13:16 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 15 Sep 2017 13:03:15 +0000 (09:03 -0400)
commit265edc03d5a19550d92cbd6e10631d5a15bdd1d5
treed1275a8421fe74498d39d61059595c5648845eb2
parent21a24c3bf35bac83d66ce4a48eb0c7dd8a7227cb
fs/fat: Clean up open-coded sector <-> cluster conversions

Use the clust_to_sect() helper that was introduced earlier, and add an
inverse sect_to_clust(), plus update the various spots that open-coded
this conversion previously.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
fs/fat/fat.c
fs/fat/fat_write.c
include/fat.h