From: Heiko Schocher Date: Wed, 12 Aug 2015 09:31:34 +0200 Subject: [U-Boot] [PATCH v3 1/4] bitops: introduce BIT() definition In-Reply-To: <1439364698-25705-1-git-send-email-hs@denx.de> References: <1439364698-25705-1-git-send-email-hs@denx.de> Message-ID: <1439364698-25705-2-git-send-email-hs@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de introduce BIT() definition, used in at91_udc gadget driver. Signed-off-by: Heiko Schocher --- 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 +#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