backlight: lms501kf03: Drop unused include

Message ID 20200625232512.282178-1-linus.walleij@linaro.org
State New
Headers show
Series
  • backlight: lms501kf03: Drop unused include
Related show

Commit Message

Linus Walleij June 25, 2020, 11:25 p.m.
This driver includes <linux/gpio.h> but does not use any
symbols from that file, drop the include.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/video/backlight/lms501kf03.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.25.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Comments

Daniel Thompson June 26, 2020, 9:44 a.m. | #1
On Fri, Jun 26, 2020 at 01:25:12AM +0200, Linus Walleij wrote:
> This driver includes <linux/gpio.h> but does not use any

> symbols from that file, drop the include.

> 

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>



> ---

>  drivers/video/backlight/lms501kf03.c | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/drivers/video/backlight/lms501kf03.c b/drivers/video/backlight/lms501kf03.c

> index 8ae32e3573c1..52d3ee6c3f7f 100644

> --- a/drivers/video/backlight/lms501kf03.c

> +++ b/drivers/video/backlight/lms501kf03.c

> @@ -9,7 +9,6 @@

>  #include <linux/backlight.h>

>  #include <linux/delay.h>

>  #include <linux/fb.h>

> -#include <linux/gpio.h>

>  #include <linux/lcd.h>

>  #include <linux/module.h>

>  #include <linux/spi/spi.h>

> -- 

> 2.25.4

> 

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Lee Jones July 1, 2020, 9:42 a.m. | #2
On Fri, 26 Jun 2020, Linus Walleij wrote:

> This driver includes <linux/gpio.h> but does not use any
> symbols from that file, drop the include.
> 
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/video/backlight/lms501kf03.c | 1 -
>  1 file changed, 1 deletion(-)

Applied, thanks.

Patch

diff --git a/drivers/video/backlight/lms501kf03.c b/drivers/video/backlight/lms501kf03.c
index 8ae32e3573c1..52d3ee6c3f7f 100644
--- a/drivers/video/backlight/lms501kf03.c
+++ b/drivers/video/backlight/lms501kf03.c
@@ -9,7 +9,6 @@ 
 #include <linux/backlight.h>
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/gpio.h>
 #include <linux/lcd.h>
 #include <linux/module.h>
 #include <linux/spi/spi.h>