backlight: ams369fg06: Drop GPIO include

Message ID 20191202103005.102696-1-linus.walleij@linaro.org
State New
Headers show
Series
  • backlight: ams369fg06: Drop GPIO include
Related show

Commit Message

Linus Walleij Dec. 2, 2019, 10:30 a.m.
The driver includes <linux/gpio.h> yet fails to use symbols
from any the header so drop the include.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/video/backlight/ams369fg06.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Daniel Thompson Dec. 2, 2019, 12:16 p.m. | #1
On Mon, Dec 02, 2019 at 11:30:05AM +0100, Linus Walleij wrote:
> The driver includes <linux/gpio.h> yet fails to use symbols
> from any the header so drop the include.
> 
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

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

> ---
>  drivers/video/backlight/ams369fg06.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/video/backlight/ams369fg06.c b/drivers/video/backlight/ams369fg06.c
> index 94ccb9042440..8a4361e95a11 100644
> --- a/drivers/video/backlight/ams369fg06.c
> +++ b/drivers/video/backlight/ams369fg06.c
> @@ -11,7 +11,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.23.0
>
Lee Jones Dec. 16, 2019, 10:31 a.m. | #2
On Mon, 02 Dec 2019, Linus Walleij wrote:

> The driver includes <linux/gpio.h> yet fails to use symbols
> from any the header so drop the include.
> 
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/video/backlight/ams369fg06.c | 1 -
>  1 file changed, 1 deletion(-)

Applied, thanks.

Patch

diff --git a/drivers/video/backlight/ams369fg06.c b/drivers/video/backlight/ams369fg06.c
index 94ccb9042440..8a4361e95a11 100644
--- a/drivers/video/backlight/ams369fg06.c
+++ b/drivers/video/backlight/ams369fg06.c
@@ -11,7 +11,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>