[U-Boot] [PATCH v4 1/4] bitops: introduce BIT() definition
Heiko Schocher
hs at denx.de
Fri Aug 21 19:01:56 CEST 2015
introduce BIT() definition, used in at91_udc gadget
driver.
Signed-off-by: Heiko Schocher <hs at denx.de>
---
Changes in v4: None
Changes in v3:
- new in v3
Changes in v2: None
include/linux/bitops.h | 2 ++
1 file changed, 2 insertions(+)
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
--
2.1.0
More information about the U-Boot
mailing list