diff options
author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-09-25 22:53:01 +0530 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-09-30 18:20:53 +0100 |
commit | 46d4503bc8c95010e83b03a48fa59344bf78daa3 (patch) | |
tree | 7913c763b2c8220f7d6150865b69412acae7b62c /drivers/staging/iio/cdc | |
parent | d0a76bbfe920e056e761bfcb77f3b95bd3bce98f (diff) | |
download | linux-46d4503bc8c95010e83b03a48fa59344bf78daa3.tar.gz linux-46d4503bc8c95010e83b03a48fa59344bf78daa3.tar.bz2 linux-46d4503bc8c95010e83b03a48fa59344bf78daa3.zip |
Staging: iio: cdc: Prefer using the BIT macro
Replace bit shifting on 1 with the BIT(x) macro
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/cdc')
-rw-r--r-- | drivers/staging/iio/cdc/ad7746.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 10fa372a4182..55cc8bb0b772 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -68,12 +68,12 @@ #define AD7746_VTSETUP_VTCHOP (1 << 0) /* Excitation Setup Register Bit Designations (AD7746_REG_EXC_SETUP) */ -#define AD7746_EXCSETUP_CLKCTRL (1 << 7) -#define AD7746_EXCSETUP_EXCON (1 << 6) -#define AD7746_EXCSETUP_EXCB (1 << 5) -#define AD7746_EXCSETUP_NEXCB (1 << 4) -#define AD7746_EXCSETUP_EXCA (1 << 3) -#define AD7746_EXCSETUP_NEXCA (1 << 2) +#define AD7746_EXCSETUP_CLKCTRL BIT(7) +#define AD7746_EXCSETUP_EXCON BIT(6) +#define AD7746_EXCSETUP_EXCB BIT(5) +#define AD7746_EXCSETUP_NEXCB BIT(4) +#define AD7746_EXCSETUP_EXCA BIT(3) +#define AD7746_EXCSETUP_NEXCA BIT(2) #define AD7746_EXCSETUP_EXCLVL(x) (((x) & 0x3) << 0) /* Config Register Bit Designations (AD7746_REG_CFG) */ |