Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1265886

Re: [PATCH] comedi: me_daq: Fix coding style - use BIT macro

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject Re: [PATCH] comedi: me_daq: Fix coding style - use BIT macro
Date 2015-11-09 18:30 +0100
Message-ID <qsYqv-YN-37@gated-at.bofh.it> (permalink)
References <qsYgO-UW-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 09, 2015 at 10:43:56PM +0530, Ranjith wrote:
> +#define ADC_GAIN_2			(BIT(5) & (~BIT(4)))

It looks really weird to write it this way...

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] comedi: me_daq: Fix coding style - use BIT macro Ranjith <ranjithece24@gmail.com> - 2015-11-09 18:20 +0100
  Re: [PATCH] comedi: me_daq: Fix coding style - use BIT macro Dan Carpenter <dan.carpenter@oracle.com> - 2015-11-09 18:30 +0100

csiph-web