]> git.baikalelectronics.ru Git - uboot.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)
commit42a7feda64a78b6bad3909b8847fc263451967ce
treed1275a8421fe74498d39d61059595c5648845eb2
parent1bb0ca5c118387a872242b915a3e19e9f7c65d05
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