summaryrefslogtreecommitdiff
path: root/include/fat.h
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-12-13 00:47:36 +0000
committerTom Rini <trini@ti.com>2013-02-04 09:05:46 -0500
commitfb7e16cc1c1f5d5bb212118b89218b2e706226b2 (patch)
tree701e85f23b11cc71764b3332a7290f4eaaea7647 /include/fat.h
parentc7db645a6b0e6ed8ffa9c53a5c41430b95c20bcc (diff)
downloadu-boot-imx-fb7e16cc1c1f5d5bb212118b89218b2e706226b2.zip
u-boot-imx-fb7e16cc1c1f5d5bb212118b89218b2e706226b2.tar.gz
u-boot-imx-fb7e16cc1c1f5d5bb212118b89218b2e706226b2.tar.bz2
FAT: use toupper/tolower instead of recoding them
toupper/tolower function are already declared, so use them. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/fat.h')
-rw-r--r--include/fat.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/fat.h b/include/fat.h
index 706cd7a..b28c3fd 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -98,9 +98,6 @@
#endif
#endif
-#define TOLOWER(c) if((c) >= 'A' && (c) <= 'Z'){(c)+=('a' - 'A');}
-#define TOUPPER(c) if ((c) >= 'a' && (c) <= 'z') \
- (c) -= ('a' - 'A');
#define START(dent) (FAT2CPU16((dent)->start) \
+ (mydata->fatsize != 32 ? 0 : \
(FAT2CPU16((dent)->starthi) << 16)))