Skip to contentSkip to conversation

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

PATCH Applied Nuno Sá 2 participants 2 messages Nov 6, 2023 – Nov 26, 2023

Subsystems (3)
lore
Share & tools
lore

Nuno Sá

author maintainer
#0 lore raw

PATCH 1/1 iio: imu: adis16475: use bit numbers in assign_bit()

From: Nuno Sa <[email protected]>

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

Fixes fff7352bf7a3ce ("iio: imu: Add support for adis16475")
---
 drivers/iio/imu/adis16475.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/imu/adis16475.c +2 -2
index b7cbe1565aee0..eb7c74be030e2 100644
@@ -70,8 +70,8 @@
 #define ADIS16475_MAX_SCAN_DATA		20
 /* spi max speed in brust mode */
 #define ADIS16475_BURST_MAX_SPEED	1000000
-#define ADIS16475_LSB_DEC_MASK		BIT(0)
-#define ADIS16475_LSB_FIR_MASK		BIT(1)
+#define ADIS16475_LSB_DEC_MASK		0
+#define ADIS16475_LSB_FIR_MASK		1
 #define ADIS16500_BURST_DATA_SEL_0_CHN_MASK	GENMASK(5, 0)
 #define ADIS16500_BURST_DATA_SEL_1_CHN_MASK	GENMASK(12, 7)
 
Signature · 1 line
2.41.0
maintainer Applied
#1 lore raw
Quoted 10 lines · On Mon, 6 Nov 2023 16:07:30 +0100 Nuno Sá <[email protected]> wrote:

From: Nuno Sa <[email protected]>

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

Fixes fff7352bf7a3ce ("iio: imu: Add support for adis16475")

Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan

Quoted 19 lines
---
 drivers/iio/imu/adis16475.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/imu/adis16475.c +2 -2
index b7cbe1565aee0..eb7c74be030e2 100644
@@ -70,8 +70,8 @@
 #define ADIS16475_MAX_SCAN_DATA		20
 /* spi max speed in brust mode */
 #define ADIS16475_BURST_MAX_SPEED	1000000
-#define ADIS16475_LSB_DEC_MASK		BIT(0)
-#define ADIS16475_LSB_FIR_MASK		BIT(1)
+#define ADIS16475_LSB_DEC_MASK		0
+#define ADIS16475_LSB_FIR_MASK		1
 #define ADIS16500_BURST_DATA_SEL_0_CHN_MASK	GENMASK(5, 0)
 #define ADIS16500_BURST_DATA_SEL_1_CHN_MASK	GENMASK(12, 7)