Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46d4503b authored by Shraddha Barke's avatar Shraddha Barke Committed by Jonathan Cameron
Browse files

Staging: iio: cdc: Prefer using the BIT macro



Replace bit shifting on 1 with the BIT(x) macro

Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent d0a76bbf
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -68,12 +68,12 @@
#define AD7746_VTSETUP_VTCHOP		(1 << 0)
#define AD7746_VTSETUP_VTCHOP		(1 << 0)


/* Excitation Setup Register Bit Designations (AD7746_REG_EXC_SETUP) */
/* Excitation Setup Register Bit Designations (AD7746_REG_EXC_SETUP) */
#define AD7746_EXCSETUP_CLKCTRL		(1 << 7)
#define AD7746_EXCSETUP_CLKCTRL		BIT(7)
#define AD7746_EXCSETUP_EXCON		(1 << 6)
#define AD7746_EXCSETUP_EXCON		BIT(6)
#define AD7746_EXCSETUP_EXCB		(1 << 5)
#define AD7746_EXCSETUP_EXCB		BIT(5)
#define AD7746_EXCSETUP_NEXCB		(1 << 4)
#define AD7746_EXCSETUP_NEXCB		BIT(4)
#define AD7746_EXCSETUP_EXCA		(1 << 3)
#define AD7746_EXCSETUP_EXCA		BIT(3)
#define AD7746_EXCSETUP_NEXCA		(1 << 2)
#define AD7746_EXCSETUP_NEXCA		BIT(2)
#define AD7746_EXCSETUP_EXCLVL(x)	(((x) & 0x3) << 0)
#define AD7746_EXCSETUP_EXCLVL(x)	(((x) & 0x3) << 0)


/* Config Register Bit Designations (AD7746_REG_CFG) */
/* Config Register Bit Designations (AD7746_REG_CFG) */