summaryrefslogtreecommitdiffstats
path: root/fs/fat/file.c
diff options
context:
space:
mode:
authorSuriyan Ramasami <suriyan.r@gmail.com>2014-11-17 14:39:35 -0800
committerTom Rini <trini@ti.com>2014-11-23 06:49:04 -0500
commit1ad0b98a067a133c0e8a182649a76a4afd739594 (patch)
tree26f5ce4468fb8886efee020e31257f62c5feaca4 /fs/fat/file.c
parent64553717bb3552f736090298ea952cb5ef07ef75 (diff)
downloadblackbird-obmc-uboot-1ad0b98a067a133c0e8a182649a76a4afd739594.tar.gz
blackbird-obmc-uboot-1ad0b98a067a133c0e8a182649a76a4afd739594.zip
fat: Prepare API change for files greater than 2GB
Change the internal FAT functions to use loff_t for offsets. Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> [trini: Fix fs/fat/fat.c for min3 updates] Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'fs/fat/file.c')
-rw-r--r--fs/fat/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c
index d910c46ddb..89706117b9 100644
--- a/fs/fat/file.c
+++ b/fs/fat/file.c
@@ -162,8 +162,7 @@ file_ls(const char *dir)
return filesystems[current_filesystem].ls(arg);
}
-long
-file_read(const char *filename, void *buffer, unsigned long maxsize)
+int file_read(const char *filename, void *buffer, int maxsize)
{
char fullpath[1024];
const char *arg;
OpenPOWER on IntegriCloud