diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-01-21 14:09:18 +0900 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-21 14:58:07 +0100 |
commit | d27077bd761277cf8075f8e489b511af1c2acef3 (patch) | |
tree | 1d90e10ed8828fc2aba8732614f93f715261d74c /include | |
parent | 2ce9068d853ed59b5d731e1d6b3945b9fb0f078e (diff) | |
download | barebox-d27077bd761277cf8075f8e489b511af1c2acef3.tar.gz barebox-d27077bd761277cf8075f8e489b511af1c2acef3.tar.xz |
linux/kernel.h: rename USHORT_MAX, SHORT_MAX, SHORT_MIN
Linux uses SHRT_* instead of SHORT_*. The <limits.h> of C does
the same. Let's follow this standard.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kernel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 33cf62e52d..4d7e41edb5 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -4,9 +4,9 @@ #include <linux/compiler.h> #include <linux/barebox-wrapper.h> -#define USHORT_MAX ((u16)(~0U)) -#define SHORT_MAX ((s16)(USHORT_MAX>>1)) -#define SHORT_MIN (-SHORT_MAX - 1) +#define USHRT_MAX ((u16)(~0U)) +#define SHRT_MAX ((s16)(USHRT_MAX>>1)) +#define SHRT_MIN ((s16)(-SHRT_MAX - 1)) #define INT_MAX ((int)(~0U>>1)) #define INT_MIN (-INT_MAX - 1) #define UINT_MAX (~0U) |