greybus: kernel_ver.h: define U32_MAX and U64_MAX
authorAlex Elder <elder@linaro.org>
Tue, 4 Aug 2015 18:44:10 +0000 (13:44 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 4 Aug 2015 19:46:37 +0000 (12:46 -0700)
These were not defined, and I just posted patches that use them.

Signed-off-by: Alex Elder <elder@linaro.org>
Tested-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/kernel_ver.h

index c2e92df9f4172daaebf7662f3c51e5ac7cbef6d5..d0e05e65647525459c18d8f5913f1f15ed2ebeb8 100644 (file)
 #define U16_MAX        ((u16)(~0U))
 #endif /* !U16_MAX */
 
+#ifndef U32_MAX
+#define U32_MAX        ((u32)(~0U))
+#endif /* !U32_MAX */
+
+#ifndef U64_MAX
+#define U64_MAX        ((u64)(~0U))
+#endif /* !U64_MAX */
+
 /*
  * The GPIO api sucks rocks in places, like removal, so work around their
  * explicit requirements of catching the return value for kernels older than