mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c
@ 2022-06-26 17:15 Saurav Girepunje
  2022-06-26 19:11 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Saurav Girepunje @ 2022-06-26 17:15 UTC (permalink / raw)
  To: santoshkumar.yadav, peter.korsgaard, hdegoede, markgross,
	platform-driver-x86, linux-kernel
  Cc: saurav.girepunje

Remove the duplicate include of linux/io.h in barco-p50-gpio.c
file.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
 drivers/platform/x86/barco-p50-gpio.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/platform/x86/barco-p50-gpio.c b/drivers/platform/x86/barco-p50-gpio.c
index f5c72e33f9ae..bb8ed8e95225 100644
--- a/drivers/platform/x86/barco-p50-gpio.c
+++ b/drivers/platform/x86/barco-p50-gpio.c
@@ -14,7 +14,6 @@
 #include <linux/delay.h>
 #include <linux/dmi.h>
 #include <linux/err.h>
-#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/module.h>
--
2.33.0


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

* Re: [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c
  2022-06-26 17:15 [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c Saurav Girepunje
@ 2022-06-26 19:11 ` Peter Korsgaard
  2022-06-27  3:39   ` Saurav Girepunje
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2022-06-26 19:11 UTC (permalink / raw)
  To: Saurav Girepunje
  Cc: santoshkumar.yadav, peter.korsgaard, hdegoede, markgross,
	platform-driver-x86, linux-kernel, saurav.girepunje

>>>>> "Saurav" == Saurav Girepunje <saurav.girepunje@gmail.com> writes:

 > Remove the duplicate include of linux/io.h in barco-p50-gpio.c
 > file.

 > Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>

What tree is this against? The io.h include in the line just above
delay.h was already removed by:

commit 011881b80ebe773914b59905bce0f5e0ef93e7ba
Author: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Date:   Thu May 26 17:03:45 2022 +0800

    platform/x86: barco-p50-gpio: Add check for platform_driver_register

    As platform_driver_register() could fail, it should be better
    to deal with the return value in order to maintain the code
    consisitency.

    Fixes: 86af1d02d458 ("platform/x86: Support for EC-connected GPIOs for identify LED/button on Barco P50 board")
    Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
    Acked-by: Peter Korsgaard <peter.korsgaard@barco.com>
    Link: https://lore.kernel.org/r/20220526090345.1444172-1-jiasheng@iscas.ac.cn
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

> ---
 >  drivers/platform/x86/barco-p50-gpio.c | 1 -
 >  1 file changed, 1 deletion(-)

 > diff --git a/drivers/platform/x86/barco-p50-gpio.c b/drivers/platform/x86/barco-p50-gpio.c
 > index f5c72e33f9ae..bb8ed8e95225 100644
 > --- a/drivers/platform/x86/barco-p50-gpio.c
 > +++ b/drivers/platform/x86/barco-p50-gpio.c
 > @@ -14,7 +14,6 @@
 >  #include <linux/delay.h>
 >  #include <linux/dmi.h>
 >  #include <linux/err.h>
 > -#include <linux/io.h>
 >  #include <linux/kernel.h>
 >  #include <linux/leds.h>
 >  #include <linux/module.h>
 > --
 > 2.33.0


-- 
Bye, Peter Korsgaard

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

* Re: [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c
  2022-06-26 19:11 ` Peter Korsgaard
@ 2022-06-27  3:39   ` Saurav Girepunje
  2022-06-27  7:02     ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Saurav Girepunje @ 2022-06-27  3:39 UTC (permalink / raw)
  To: Peter Korsgaard
  Cc: santoshkumar.yadav, peter.korsgaard, hdegoede, markgross,
	platform-driver-x86, linux-kernel, saurav.girepunje



On 27/06/22 12:41 am, Peter Korsgaard wrote:
>>>>>> "Saurav" == Saurav Girepunje <saurav.girepunje@gmail.com> writes:
> 
>  > Remove the duplicate include of linux/io.h in barco-p50-gpio.c
>  > file.
> 
>  > Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
> 
> What tree is this against? The io.h include in the line just above
> delay.h was already removed by:
> 

I am using git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git .
if it fix on another tree . Please ignore this patch.

> commit 011881b80ebe773914b59905bce0f5e0ef93e7ba
> Author: Jiasheng Jiang <jiasheng@iscas.ac.cn>
> Date:   Thu May 26 17:03:45 2022 +0800
> 
>     platform/x86: barco-p50-gpio: Add check for platform_driver_register
> 
>     As platform_driver_register() could fail, it should be better
>     to deal with the return value in order to maintain the code
>     consisitency.
> 
>     Fixes: 86af1d02d458 ("platform/x86: Support for EC-connected GPIOs for identify LED/button on Barco P50 board")
>     Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
>     Acked-by: Peter Korsgaard <peter.korsgaard@barco.com>
>     Link: https://lore.kernel.org/r/20220526090345.1444172-1-jiasheng@iscas.ac.cn
>     Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> 
>> ---
>  >  drivers/platform/x86/barco-p50-gpio.c | 1 -
>  >  1 file changed, 1 deletion(-)
> 
>  > diff --git a/drivers/platform/x86/barco-p50-gpio.c b/drivers/platform/x86/barco-p50-gpio.c
>  > index f5c72e33f9ae..bb8ed8e95225 100644
>  > --- a/drivers/platform/x86/barco-p50-gpio.c
>  > +++ b/drivers/platform/x86/barco-p50-gpio.c
>  > @@ -14,7 +14,6 @@
>  >  #include <linux/delay.h>
>  >  #include <linux/dmi.h>
>  >  #include <linux/err.h>
>  > -#include <linux/io.h>
>  >  #include <linux/kernel.h>
>  >  #include <linux/leds.h>
>  >  #include <linux/module.h>
>  > --
>  > 2.33.0
> 
> 



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

* Re: [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c
  2022-06-27  3:39   ` Saurav Girepunje
@ 2022-06-27  7:02     ` Peter Korsgaard
  2022-06-27 17:35       ` Saurav Girepunje
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2022-06-27  7:02 UTC (permalink / raw)
  To: Saurav Girepunje
  Cc: santoshkumar.yadav, peter.korsgaard, hdegoede, markgross,
	platform-driver-x86, linux-kernel, saurav.girepunje

>>>>> "Saurav" == Saurav Girepunje <saurav.girepunje@gmail.com> writes:

 > On 27/06/22 12:41 am, Peter Korsgaard wrote:
 >>>>>>> "Saurav" == Saurav Girepunje <saurav.girepunje@gmail.com> writes:
 >> 
 >> > Remove the duplicate include of linux/io.h in barco-p50-gpio.c
 >> > file.
 >> 
 >> > Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
 >> 
 >> What tree is this against? The io.h include in the line just above
 >> delay.h was already removed by:
 >> 

 > I am using git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git .

staging? That seems an odd tree to make platform/x86 changes
from. Just using the mainline tree would be a better choice.

 > if it fix on another tree . Please ignore this patch.

git describe --contains 011881b80ebe773914b59905bce0f5e0ef93e7ba
v5.19-rc2~1^2~5

So it is in 5.19-rc2, released 2 weeks ago.

-- 
Bye, Peter Korsgaard

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

* Re: [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c
  2022-06-27  7:02     ` Peter Korsgaard
@ 2022-06-27 17:35       ` Saurav Girepunje
  0 siblings, 0 replies; 5+ messages in thread
From: Saurav Girepunje @ 2022-06-27 17:35 UTC (permalink / raw)
  To: Peter Korsgaard
  Cc: santoshkumar.yadav, peter.korsgaard, hdegoede, markgross,
	platform-driver-x86, linux-kernel, saurav.girepunje



On 27/06/22 12:32 pm, Peter Korsgaard wrote:
>>>>>> "Saurav" == Saurav Girepunje <saurav.girepunje@gmail.com> writes:
> 
>  > On 27/06/22 12:41 am, Peter Korsgaard wrote:
>  >>>>>>> "Saurav" == Saurav Girepunje <saurav.girepunje@gmail.com> writes:
>  >> 
>  >> > Remove the duplicate include of linux/io.h in barco-p50-gpio.c
>  >> > file.
>  >> 
>  >> > Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
>  >> 
>  >> What tree is this against? The io.h include in the line just above
>  >> delay.h was already removed by:
>  >> 
> 
>  > I am using git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git .
> 
> staging? That seems an odd tree to make platform/x86 changes
> from. Just using the mainline tree would be a better choice.
Ok, Sure
> 
>  > if it fix on another tree . Please ignore this patch.
> 
> git describe --contains 011881b80ebe773914b59905bce0f5e0ef93e7ba
> v5.19-rc2~1^2~5
> 
> So it is in 5.19-rc2, released 2 weeks ago.
> 
Yes

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

end of thread, other threads:[~2022-06-27 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 17:15 [PATCH] platform: x86: Remove duplicated include in barco-p50-gpio.c Saurav Girepunje
2022-06-26 19:11 ` Peter Korsgaard
2022-06-27  3:39   ` Saurav Girepunje
2022-06-27  7:02     ` Peter Korsgaard
2022-06-27 17:35       ` Saurav Girepunje

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®