mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/1] media: i2c: st-vgxy61: Use asm intead of asm-generic
@ 2023-01-03 14:52 Andy Shevchenko
  2023-01-04  9:27 ` Benjamin Mugnier
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2023-01-03 14:52 UTC (permalink / raw)
  To: Sakari Ailus, Benjamin Mugnier, linux-media, linux-kernel
  Cc: Sylvain Petinot, Mauro Carvalho Chehab, 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-media linux/* ones.

Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/media/i2c/st-vgxy61.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/st-vgxy61.c b/drivers/media/i2c/st-vgxy61.c
index 826baf4e064d..5dcabee6677d 100644
--- a/drivers/media/i2c/st-vgxy61.c
+++ b/drivers/media/i2c/st-vgxy61.c
@@ -5,7 +5,6 @@
  * Copyright (C) 2022 STMicroelectronics SA
  */
 
-#include <asm-generic/unaligned.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
@@ -15,6 +14,9 @@
 #include <linux/pm_runtime.h>
 #include <linux/regulator/consumer.h>
 #include <linux/units.h>
+
+#include <asm/unaligned.h>
+
 #include <media/mipi-csi2.h>
 #include <media/v4l2-async.h>
 #include <media/v4l2-ctrls.h>
-- 
2.35.1


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

* Re: [PATCH v1 1/1] media: i2c: st-vgxy61: Use asm intead of asm-generic
  2023-01-03 14:52 [PATCH v1 1/1] media: i2c: st-vgxy61: Use asm intead of asm-generic Andy Shevchenko
@ 2023-01-04  9:27 ` Benjamin Mugnier
  2023-01-04 10:20   ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Mugnier @ 2023-01-04  9:27 UTC (permalink / raw)
  To: Andy Shevchenko, Sakari Ailus, linux-media, linux-kernel
  Cc: Sylvain Petinot, Mauro Carvalho Chehab

Hi Andy,

Thank you for your patch.

On 1/3/23 15:52, Andy Shevchenko 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-media linux/* ones.
> 
> Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/media/i2c/st-vgxy61.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/st-vgxy61.c b/drivers/media/i2c/st-vgxy61.c
> index 826baf4e064d..5dcabee6677d 100644
> --- a/drivers/media/i2c/st-vgxy61.c
> +++ b/drivers/media/i2c/st-vgxy61.c
> @@ -5,7 +5,6 @@
>   * Copyright (C) 2022 STMicroelectronics SA
>   */
>  
> -#include <asm-generic/unaligned.h>
>  #include <linux/clk.h>
>  #include <linux/delay.h>
>  #include <linux/gpio/consumer.h>
> @@ -15,6 +14,9 @@
>  #include <linux/pm_runtime.h>
>  #include <linux/regulator/consumer.h>
>  #include <linux/units.h>
> +
> +#include <asm/unaligned.h>
> +

Any particular reason not to keep the alphabetical sort ?

>  #include <media/mipi-csi2.h>
>  #include <media/v4l2-async.h>
>  #include <media/v4l2-ctrls.h>

-- 
Regards,

Benjamin

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

* Re: [PATCH v1 1/1] media: i2c: st-vgxy61: Use asm intead of asm-generic
  2023-01-04  9:27 ` Benjamin Mugnier
@ 2023-01-04 10:20   ` Andy Shevchenko
  2023-01-04 13:22     ` Benjamin Mugnier
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2023-01-04 10:20 UTC (permalink / raw)
  To: Benjamin Mugnier
  Cc: Sakari Ailus, linux-media, linux-kernel, Sylvain Petinot,
	Mauro Carvalho Chehab

On Wed, Jan 04, 2023 at 10:27:14AM +0100, Benjamin Mugnier wrote:
> On 1/3/23 15:52, Andy Shevchenko wrote:

...

> > -#include <asm-generic/unaligned.h>
> >  #include <linux/clk.h>
> >  #include <linux/delay.h>
> >  #include <linux/gpio/consumer.h>
> > @@ -15,6 +14,9 @@
> >  #include <linux/pm_runtime.h>
> >  #include <linux/regulator/consumer.h>
> >  #include <linux/units.h>
> > +
> > +#include <asm/unaligned.h>

> Any particular reason not to keep the alphabetical sort ?

It's kept in an order in each of the groups of headers.

The main rule here is to go from most generic headers to the particular ones.
asm/* are definitely more particular than linux/* ones.

> >  #include <media/mipi-csi2.h>
> >  #include <media/v4l2-async.h>
> >  #include <media/v4l2-ctrls.h>

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1 1/1] media: i2c: st-vgxy61: Use asm intead of asm-generic
  2023-01-04 10:20   ` Andy Shevchenko
@ 2023-01-04 13:22     ` Benjamin Mugnier
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Mugnier @ 2023-01-04 13:22 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Sakari Ailus, linux-media, linux-kernel, Sylvain Petinot,
	Mauro Carvalho Chehab



On 1/4/23 11:20, Andy Shevchenko wrote:
> On Wed, Jan 04, 2023 at 10:27:14AM +0100, Benjamin Mugnier wrote:
>> On 1/3/23 15:52, Andy Shevchenko wrote:
> 
> ...
> 
>>> -#include <asm-generic/unaligned.h>
>>>  #include <linux/clk.h>
>>>  #include <linux/delay.h>
>>>  #include <linux/gpio/consumer.h>
>>> @@ -15,6 +14,9 @@
>>>  #include <linux/pm_runtime.h>
>>>  #include <linux/regulator/consumer.h>
>>>  #include <linux/units.h>
>>> +
>>> +#include <asm/unaligned.h>
> 
>> Any particular reason not to keep the alphabetical sort ?
> 
> It's kept in an order in each of the groups of headers.
> 
> The main rule here is to go from most generic headers to the particular ones.
> asm/* are definitely more particular than linux/* ones.
> 

Thank you for your explanation.

Reviewed-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>

>>>  #include <media/mipi-csi2.h>
>>>  #include <media/v4l2-async.h>
>>>  #include <media/v4l2-ctrls.h>
> 

-- 
Regards,

Benjamin

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

end of thread, other threads:[~2023-01-04 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03 14:52 [PATCH v1 1/1] media: i2c: st-vgxy61: Use asm intead of asm-generic Andy Shevchenko
2023-01-04  9:27 ` Benjamin Mugnier
2023-01-04 10:20   ` Andy Shevchenko
2023-01-04 13:22     ` Benjamin Mugnier

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

all inboxes | Powered by JetHome®