diff mbox series

drm/bridge: analogix-anx78xx: Drop of_gpio.h include

Message ID 20190609223254.8523-1-linus.walleij@linaro.org
State Accepted
Commit eb19e8479b96adb01ddb69fdc2010101f3f0ddf5
Headers show
Series drm/bridge: analogix-anx78xx: Drop of_gpio.h include | expand

Commit Message

Linus Walleij June 9, 2019, 10:32 p.m. UTC
This include is only used for some gpio drivers and consumers
that look up GPIO numbers directly from the device tree.
This driver does not use it and only needs <linux/gpio/consumer.h>.
Delete the unused include.

Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Cc: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Enric Balletbo i Serra June 10, 2019, 9:27 a.m. UTC | #1
Hi,

On 10/6/19 0:32, Linus Walleij wrote:
> This include is only used for some gpio drivers and consumers
> that look up GPIO numbers directly from the device tree.
> This driver does not use it and only needs <linux/gpio/consumer.h>.
> Delete the unused include.
> 
> Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> Cc: Jose Abreu <Jose.Abreu@synopsys.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>

> ---
>  drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c
> index c09aaf93ae1b..61b5122e5a52 100644
> --- a/drivers/gpu/drm/bridge/analogix-anx78xx.c
> +++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c
> @@ -20,7 +20,6 @@
>  #include <linux/i2c.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
> -#include <linux/of_gpio.h>
>  #include <linux/of_irq.h>
>  #include <linux/of_platform.h>
>  #include <linux/regmap.h>
>
Andrzej Hajda June 13, 2019, 1:12 p.m. UTC | #2
On 10.06.2019 00:32, Linus Walleij wrote:
> This include is only used for some gpio drivers and consumers
> that look up GPIO numbers directly from the device tree.
> This driver does not use it and only needs <linux/gpio/consumer.h>.
> Delete the unused include.
>
> Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> Cc: Jose Abreu <Jose.Abreu@synopsys.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

I will queue it soon to drm-misc-next.

 --
Regards
Andrzej

> ---
>  drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c
> index c09aaf93ae1b..61b5122e5a52 100644
> --- a/drivers/gpu/drm/bridge/analogix-anx78xx.c
> +++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c
> @@ -20,7 +20,6 @@
>  #include <linux/i2c.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
> -#include <linux/of_gpio.h>
>  #include <linux/of_irq.h>
>  #include <linux/of_platform.h>
>  #include <linux/regmap.h>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c
index c09aaf93ae1b..61b5122e5a52 100644
--- a/drivers/gpu/drm/bridge/analogix-anx78xx.c
+++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c
@@ -20,7 +20,6 @@ 
 #include <linux/i2c.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of_gpio.h>
 #include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/regmap.h>