From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 21 Aug 2015 21:29:41 +0200 Subject: [U-Boot] [PATCH v4 1/4] bitops: introduce BIT() definition In-Reply-To: <1853336.vJFOaAABld@kerker> References: <1440176519-30102-1-git-send-email-hs@denx.de> <1440176519-30102-2-git-send-email-hs@denx.de> <1853336.vJFOaAABld@kerker> Message-ID: <201508212129.41805.marex@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 On Friday, August 21, 2015 at 09:26:41 PM, Michael Heimpold wrote: > Hi, > > Am Freitag, 21. August 2015, 19:01:56 schrieb Heiko Schocher: > > introduce BIT() definition, used in at91_udc gadget > > driver. > > > > Signed-off-by: Heiko Schocher > > > > --- > > > > 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 > > > > +#define BIT(nr) (1UL << (nr)) > > + > > JFYI, a few months ago, Wolfgang Denk NAKed a similar patch: > http://lists.denx.de/pipermail/u-boot/2014-February/173669.html > > But I don't know whether this still stands. Linux also uses this BIT() macro, I think we should just run with it. Best regards, Marek Vasut