]> git.sur5r.net Git - u-boot/blobdiff - include/fat.h
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / include / fat.h
index fa956441c659504d247d0a9ff9860946c7fac479..09e14236858571c2e6dc4cbe2b2e800e4a03ee03 100644 (file)
@@ -1,10 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * R/O (V)FAT 12/16/32 filesystem implementation by Marcus Sundberg
  *
  * 2002-07-28 - rjones@nexus-tech.net - ported to ppcboot v1.1.6
  * 2003-03-10 - kharris@nexus-tech.net - ported to u-boot
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef _FAT_H_
@@ -181,7 +180,7 @@ static inline u32 clust_to_sect(fsdata *fsdata, u32 clust)
        return fsdata->data_begin + clust * fsdata->clust_size;
 }
 
-static inline u32 sect_to_clust(fsdata *fsdata, u32 sect)
+static inline u32 sect_to_clust(fsdata *fsdata, int sect)
 {
        return (sect - fsdata->data_begin) / fsdata->clust_size;
 }