Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: imu: adis16475: use bit numbers in assign_bit()

assign_bit() expects a bit number and not a mask like BIT(x). Hence,
just remove the BIT() macro from the #defines.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202311060647.i9XyO4ej-lkp@intel.com/
Fixes: fff7352bf7a3ce ("iio: imu: Add support for adis16475")
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231106150730.945-1-nuno.sa@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Nuno Sa and committed by
Jonathan Cameron
1cd2fe4f ee4d7905

+2 -2
+2 -2
drivers/iio/imu/adis16475.c
··· 70 70 #define ADIS16475_MAX_SCAN_DATA 20 71 71 /* spi max speed in brust mode */ 72 72 #define ADIS16475_BURST_MAX_SPEED 1000000 73 - #define ADIS16475_LSB_DEC_MASK BIT(0) 74 - #define ADIS16475_LSB_FIR_MASK BIT(1) 73 + #define ADIS16475_LSB_DEC_MASK 0 74 + #define ADIS16475_LSB_FIR_MASK 1 75 75 #define ADIS16500_BURST_DATA_SEL_0_CHN_MASK GENMASK(5, 0) 76 76 #define ADIS16500_BURST_DATA_SEL_1_CHN_MASK GENMASK(12, 7) 77 77