]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: Replace a bit shift by a use of BIT.
authorArushi Singhal <arushisinghal19971997@gmail.com>
Wed, 22 Mar 2017 16:42:34 +0000 (22:12 +0530)
committerJonathan Cameron <jic23@kernel.org>
Thu, 23 Mar 2017 19:43:29 +0000 (19:43 +0000)
commit78479a96d756353d1d85a68a02b459623dc49e11
treefe206166e6ba369a2fc4f1fe4a83ddcbfbd8e01b
parent714c94121bbc008499bfdb8d22e8f85fa2636bf7
staging: iio: Replace a bit shift by a use of BIT.

This patch replaces bit shifting on 1 with the BIT(x) macro.
This was done with coccinelle:
@@
constant c;
@@

-1 << c
+BIT(c)

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7150.c
drivers/staging/iio/cdc/ad7746.c