summaryrefslogtreecommitdiff
path: root/include/linux/bitops.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2015-09-07 11:43:52 (GMT)
committerTom Rini <trini@konsulko.com>2015-09-11 21:15:32 (GMT)
commit92a3188d7d836779915e3a6f9251fa07b9c753e4 (patch)
tree38057fbc4a6d77ffabdbc48bc863293f2e89e22d /include/linux/bitops.h
parent9d2f6a9ae70d06e4cead539e57f264c980643f53 (diff)
downloadu-boot-92a3188d7d836779915e3a6f9251fa07b9c753e4.tar.xz
bitops: introduce BIT() definition
introduce BIT() definition, used in at91_udc gadget driver. Signed-off-by: Heiko Schocher <hs@denx.de> [remove all other occurrences of BIT(x) definition] Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Acked-by: Stefan Roese <sr@denx.de> Acked-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/linux/bitops.h')
-rw-r--r--include/linux/bitops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index e724310..7d30ace 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -3,6 +3,8 @@
#include <asm/types.h>
+#define BIT(nr) (1UL << (nr))
+
/*
* ffs: find first bit set. This is defined the same way as
* the libc and compiler builtin ffs routines, therefore