]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/tegra: Clean up GPIO includes
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Apr 2020 12:24:27 +0000 (14:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Apr 2020 15:16:22 +0000 (17:16 +0200)
The Tegra DRM drivers includes the legacy GPIO headers
<linux/gpio.h> and <linux/of_gpio.h> but what it really
uses is <linux/gpio/consumer.h> since only gpio_desc
structs are ever referenced.

Include the right header on the top level tegra/drm.h
file and drop all the surplus includes.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415122427.111769-1-linus.walleij@linaro.org
drivers/gpu/drm/tegra/dpaux.c
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/sor.c

index 7dfb50f65067f291544f06f011f5cfa647193f1b..105fb9cdbb3bdc6cd05acc0bbf1083f23234a26a 100644 (file)
@@ -5,12 +5,10 @@
 
 #include <linux/clk.h>
 #include <linux/delay.h>
-#include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
-#include <linux/of_gpio.h>
 #include <linux/pinctrl/pinconf-generic.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
index 804869799305321fabdbc8eb57066fb579c8f54f..b25443255be6beb1995c675fc377d0b1152f1968 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <linux/host1x.h>
 #include <linux/iova.h>
-#include <linux/of_gpio.h>
+#include <linux/gpio/consumer.h>
 
 #include <drm/drm_atomic.h>
 #include <drm/drm_edid.h>
index c4c8348df09030a95e70a85a8e740440390af233..d09a24931c87cbb8499490fdfba287401d0fbf04 100644 (file)
@@ -7,7 +7,6 @@
 #include <linux/clk.h>
 #include <linux/debugfs.h>
 #include <linux/delay.h>
-#include <linux/gpio.h>
 #include <linux/hdmi.h>
 #include <linux/math64.h>
 #include <linux/module.h>
index 8495ea921b3cd8c2d03489264552a0aa2b0103f9..7cbcf9617f5e6b2dcc31fb1e59cab96c49e2c342 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/debugfs.h>
-#include <linux/gpio.h>
 #include <linux/io.h>
 #include <linux/module.h>
 #include <linux/of_device.h>