Staging: iio: Prefer using the BIT macro
authorCristina Opriceana <cristina.opriceana@gmail.com>
Sat, 14 Mar 2015 18:51:12 +0000 (20:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:14:05 +0000 (16:14 +0100)
commitf1d05b5f68cbe370b13a4432be5aa11ffc226dec
tree039af53584de22f7a0552b8a8e625a8afdb3c972
parent6970791fd5683a893bc11bb4722b82d899013465
Staging: iio: Prefer using the BIT macro

This patch replaces bit shifting on 1 with the BIT(x) macro
as it's extensively used by other function in this driver.

This was done with coccinelle:
@@ int g; @@

-(1 << g)
+BIT(g)

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/frequency/ad9832.c
drivers/staging/iio/frequency/ad9832.h
drivers/staging/iio/frequency/ad9834.c
drivers/staging/iio/frequency/ad9834.h