Skip to contentSkip to conversation

iio: addac: stx104: Replace bitops.h header inclusion with bits.h

PATCH In review William Breathitt Gray 2 participants 2 messages Mar 18, 2023 – Mar 19, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: addac: stx104: Replace bitops.h header inclusion with bits.h

The <linux/bitops.h> header is included in the stx104 driver so that we can use the BIT() macro. This macro is actually defined in the <linux/bits.h> header, so replace the <linux/bitops.h> header inclusion with <linux/bits.h>.

---
 drivers/iio/addac/stx104.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/addac/stx104.c +1 -1
index 48a91a95e597..e45b70aa5bb7 100644
@@ -3,7 +3,7 @@
  * IIO driver for the Apex Embedded Systems STX104
  * Copyright (C) 2016 William Breathitt Gray
  */
-#include <linux/bitops.h>
+#include <linux/bits.h>
 #include <linux/device.h>
 #include <linux/errno.h>
 #include <linux/gpio/driver.h>

base-commit: 87a1ff66a0e57d9022665d24793f31fc54de182d

Signature · 1 line
2.39.2
maintainer
#1 lore raw
Quoted 6 lines · On Sat, 18 Mar 2023 14:55:03 -0400 William Breathitt Gray…

The <linux/bitops.h> header is included in the stx104 driver so that we can use the BIT() macro. This macro is actually defined in the <linux/bits.h> header, so replace the <linux/bitops.h> header inclusion with <linux/bits.h>.

Applied to the togreg branch of iio.git and pushed out as testing for all the normal reasons.

Thanks,

Jonathan

Quoted 19 lines
---
 drivers/iio/addac/stx104.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/addac/stx104.c +1 -1
index 48a91a95e597..e45b70aa5bb7 100644
@@ -3,7 +3,7 @@
  * IIO driver for the Apex Embedded Systems STX104
  * Copyright (C) 2016 William Breathitt Gray
  */
-#include <linux/bitops.h>
+#include <linux/bits.h>
 #include <linux/device.h>
 #include <linux/errno.h>
 #include <linux/gpio/driver.h>

base-commit: 87a1ff66a0e57d9022665d24793f31fc54de182d