Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v1 1/1] iio: adc: max11410: Use asm intead of asm-generic
@ 2023-01-03 14:49 Andy Shevchenko
  2023-01-08 12:13 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2023-01-03 14:49 UTC (permalink / raw)
  To: Ibrahim Tilki, linux-iio, linux-kernel
  Cc: Jonathan Cameron, Lars-Peter Clausen, 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.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/iio/adc/max11410.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/adc/max11410.c b/drivers/iio/adc/max11410.c
index fdc9f03135b5..b74b689ee7de 100644
--- a/drivers/iio/adc/max11410.c
+++ b/drivers/iio/adc/max11410.c
@@ -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>
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v1 1/1] iio: adc: max11410: Use asm intead of asm-generic
  2023-01-03 14:49 [PATCH v1 1/1] iio: adc: max11410: Use asm intead of asm-generic Andy Shevchenko
@ 2023-01-08 12:13 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2023-01-08 12:13 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Ibrahim Tilki, linux-iio, linux-kernel, Lars-Peter Clausen

On Tue,  3 Jan 2023 16:49:03 +0200
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> 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.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Applied.

Thanks,

Jonathan

> ---
>  drivers/iio/adc/max11410.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/max11410.c b/drivers/iio/adc/max11410.c
> index fdc9f03135b5..b74b689ee7de 100644
> --- a/drivers/iio/adc/max11410.c
> +++ b/drivers/iio/adc/max11410.c
> @@ -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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-08 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 14:49 [PATCH v1 1/1] iio: adc: max11410: Use asm intead of asm-generic Andy Shevchenko
2023-01-08 12:13 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox