Skip to content

Commit 1cd2fe4

Browse files
nunojsajic23
authored andcommitted
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 <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Fixes: fff7352 ("iio: imu: Add support for adis16475") Signed-off-by: Nuno Sa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent ee4d790 commit 1cd2fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/imu/adis16475.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
#define ADIS16475_MAX_SCAN_DATA 20
7171
/* spi max speed in brust mode */
7272
#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
7575
#define ADIS16500_BURST_DATA_SEL_0_CHN_MASK GENMASK(5, 0)
7676
#define ADIS16500_BURST_DATA_SEL_1_CHN_MASK GENMASK(12, 7)
7777

0 commit comments

Comments
 (0)