Skip to contentSkip to conversation

iio: adc: max11410: Use asm intead of asm-generic

PATCH Applied Andy Shevchenko 2 participants 2 messages Jan 3, 2023 – Jan 8, 2023 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: max11410: Use asm intead of asm-generic

There is no point to specify asm-generic for the unaligned.h. Drop the 'generic' suffix and move the inclusion to be after the non-IIO linux/* ones.

---
 drivers/iio/adc/max11410.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iio/adc/max11410.c +2 -1
index fdc9f03135b5..b74b689ee7de 100644
@@ -4,7 +4,6 @@
  *
  * Copyright 2022 Analog Devices Inc.
  */
-#include <asm-generic/unaligned.h>
 #include <linux/bitfield.h>
 #include <linux/delay.h>
 #include <linux/device.h>
@@ -16,6 +15,8 @@
 #include <linux/regulator/consumer.h>
 #include <linux/spi/spi.h>
 
+#include <asm/unaligned.h>
+
 #include <linux/iio/buffer.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/trigger.h>
Signature · 1 line
2.35.1
maintainer Applied
#1 lore raw
Quoted 5 lines · On Tue, 3 Jan 2023 16:49:03 +0200 Andy Shevchenko…

There is no point to specify asm-generic for the unaligned.h. Drop the 'generic' suffix and move the inclusion to be after the non-IIO linux/* ones.

Applied.

Thanks,

Jonathan

Quoted 25 lines
---
 drivers/iio/adc/max11410.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iio/adc/max11410.c +2 -1
index fdc9f03135b5..b74b689ee7de 100644
@@ -4,7 +4,6 @@
  *
  * Copyright 2022 Analog Devices Inc.
  */
-#include <asm-generic/unaligned.h>
 #include <linux/bitfield.h>
 #include <linux/delay.h>
 #include <linux/device.h>
@@ -16,6 +15,8 @@
 #include <linux/regulator/consumer.h>
 #include <linux/spi/spi.h>
 
+#include <asm/unaligned.h>
+
 #include <linux/iio/buffer.h>
 #include <linux/iio/sysfs.h>
 #include <linux/iio/trigger.h>