[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20151101181135.GB14252@kroah.com>
Date: Sun, 1 Nov 2015 10:11:35 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Ranjith <ranjithece24@...il.com>, devel@...verdev.osuosl.org,
Ian Abbott <abbotti@....co.uk>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] comedi: drivers: Fix - BIT macro used coding style issue
On Sun, Nov 01, 2015 at 10:10:59AM -0800, Greg Kroah-Hartman wrote:
> On Sun, Nov 01, 2015 at 12:20:59PM +0200, Andy Shevchenko wrote:
> > On Sun, Nov 1, 2015 at 11:59 AM, Ranjith <ranjithece24@...il.com> wrote:
> > > BIT macro is used for defining bit location instead of shifting
> > > operator - coding style issue
> >
> > > #define APCI1032_CTRL_INT_OR (0 << 1)
> >
> > > +#define APCI1032_CTRL_INT_AND BIT(1)
> >
> > And now you have two styles at the same time. I wouldn't change the
> > current definitions.
>
> Yes you should, just use BIT(0) for this one.
Oh wait, nevermind, just use the "real" value instead, but using the
BIT() macro is the correct thing, don't tell people not to use it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists