diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2019-07-16 02:42:15 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2019-07-17 06:52:55 -0400 |
commit | fcb57664172edb25b2fdabb775b13662275abc5b (patch) | |
tree | 07af5fb9876ccacf6a53a8c2728899af0222d10c | |
parent | 2175749b3671ac4171177cba69c0c94b92fa8e81 (diff) |
drm/tilcdc: drop use of drmP.h
Dropped drmP.h and all other header files not used by tilcdc_drv.h.
Added the minimal includes and forwards to make the header file
self-contained.
Then dropped the remaining uses of drmP.h and fixed all fall-out.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Cc: Jyri Sarha <jsarha@ti.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190716064220.18157-15-sam@ravnborg.org
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 18 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 19 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.h | 31 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_external.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_panel.c | 11 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_plane.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 8 |
7 files changed, 57 insertions, 35 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index 1067e702c22c..8c2025780372 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c | |||
@@ -15,16 +15,20 @@ | |||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/delay.h> | ||
19 | #include <linux/dma-mapping.h> | ||
20 | #include <linux/of_graph.h> | ||
21 | #include <linux/pm_runtime.h> | ||
22 | |||
18 | #include <drm/drm_atomic.h> | 23 | #include <drm/drm_atomic.h> |
19 | #include <drm/drm_atomic_helper.h> | 24 | #include <drm/drm_atomic_helper.h> |
20 | #include <drm/drm_crtc.h> | 25 | #include <drm/drm_crtc.h> |
21 | #include <drm/drm_flip_work.h> | 26 | #include <drm/drm_fb_cma_helper.h> |
22 | #include <drm/drm_plane_helper.h> | 27 | #include <drm/drm_fourcc.h> |
23 | #include <linux/workqueue.h> | 28 | #include <drm/drm_gem_cma_helper.h> |
24 | #include <linux/completion.h> | 29 | #include <drm/drm_modeset_helper_vtables.h> |
25 | #include <linux/dma-mapping.h> | 30 | #include <drm/drm_print.h> |
26 | #include <linux/of_graph.h> | 31 | #include <drm/drm_vblank.h> |
27 | #include <linux/math64.h> | ||
28 | 32 | ||
29 | #include "tilcdc_drv.h" | 33 | #include "tilcdc_drv.h" |
30 | #include "tilcdc_regs.h" | 34 | #include "tilcdc_regs.h" |
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index b6b71e86e238..8e228c75b68e 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c | |||
@@ -18,19 +18,30 @@ | |||
18 | /* LCDC DRM driver, based on da8xx-fb */ | 18 | /* LCDC DRM driver, based on da8xx-fb */ |
19 | 19 | ||
20 | #include <linux/component.h> | 20 | #include <linux/component.h> |
21 | #include <linux/mod_devicetable.h> | ||
22 | #include <linux/module.h> | ||
21 | #include <linux/pinctrl/consumer.h> | 23 | #include <linux/pinctrl/consumer.h> |
22 | #include <linux/suspend.h> | 24 | #include <linux/platform_device.h> |
23 | #include <drm/drm_atomic.h> | 25 | #include <linux/pm_runtime.h> |
26 | |||
24 | #include <drm/drm_atomic_helper.h> | 27 | #include <drm/drm_atomic_helper.h> |
28 | #include <drm/drm_debugfs.h> | ||
29 | #include <drm/drm_drv.h> | ||
25 | #include <drm/drm_fb_helper.h> | 30 | #include <drm/drm_fb_helper.h> |
31 | #include <drm/drm_fourcc.h> | ||
32 | #include <drm/drm_gem_cma_helper.h> | ||
26 | #include <drm/drm_gem_framebuffer_helper.h> | 33 | #include <drm/drm_gem_framebuffer_helper.h> |
34 | #include <drm/drm_irq.h> | ||
35 | #include <drm/drm_mm.h> | ||
27 | #include <drm/drm_probe_helper.h> | 36 | #include <drm/drm_probe_helper.h> |
37 | #include <drm/drm_vblank.h> | ||
38 | |||
28 | 39 | ||
29 | #include "tilcdc_drv.h" | 40 | #include "tilcdc_drv.h" |
41 | #include "tilcdc_external.h" | ||
42 | #include "tilcdc_panel.h" | ||
30 | #include "tilcdc_regs.h" | 43 | #include "tilcdc_regs.h" |
31 | #include "tilcdc_tfp410.h" | 44 | #include "tilcdc_tfp410.h" |
32 | #include "tilcdc_panel.h" | ||
33 | #include "tilcdc_external.h" | ||
34 | 45 | ||
35 | static LIST_HEAD(module_list); | 46 | static LIST_HEAD(module_list); |
36 | 47 | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.h b/drivers/gpu/drm/tilcdc/tilcdc_drv.h index d86397da12a9..50c208c48be0 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.h +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.h | |||
@@ -18,21 +18,24 @@ | |||
18 | #ifndef __TILCDC_DRV_H__ | 18 | #ifndef __TILCDC_DRV_H__ |
19 | #define __TILCDC_DRV_H__ | 19 | #define __TILCDC_DRV_H__ |
20 | 20 | ||
21 | #include <linux/clk.h> | ||
22 | #include <linux/cpufreq.h> | 21 | #include <linux/cpufreq.h> |
23 | #include <linux/module.h> | 22 | #include <linux/irqreturn.h> |
24 | #include <linux/platform_device.h> | 23 | |
25 | #include <linux/pm.h> | 24 | #include <drm/drm_print.h> |
26 | #include <linux/pm_runtime.h> | 25 | |
27 | #include <linux/slab.h> | 26 | struct clk; |
28 | #include <linux/of.h> | 27 | struct workqueue_struct; |
29 | #include <linux/of_device.h> | 28 | |
30 | #include <linux/list.h> | 29 | struct drm_connector; |
31 | 30 | struct drm_connector_helper_funcs; | |
32 | #include <drm/drmP.h> | 31 | struct drm_crtc; |
33 | #include <drm/drm_bridge.h> | 32 | struct drm_device; |
34 | #include <drm/drm_fb_cma_helper.h> | 33 | struct drm_display_mode; |
35 | #include <drm/drm_gem_cma_helper.h> | 34 | struct drm_encoder; |
35 | struct drm_framebuffer; | ||
36 | struct drm_minor; | ||
37 | struct drm_pending_vblank_event; | ||
38 | struct drm_plane; | ||
36 | 39 | ||
37 | /* Defaulting to pixel clock defined on AM335x */ | 40 | /* Defaulting to pixel clock defined on AM335x */ |
38 | #define TILCDC_DEFAULT_MAX_PIXELCLOCK 126000 | 41 | #define TILCDC_DEFAULT_MAX_PIXELCLOCK 126000 |
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_external.c b/drivers/gpu/drm/tilcdc/tilcdc_external.c index e9969cd36610..0f3419a19d71 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_external.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_external.c | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include <linux/component.h> | 11 | #include <linux/component.h> |
12 | #include <linux/of_graph.h> | 12 | #include <linux/of_graph.h> |
13 | |||
13 | #include <drm/drm_atomic_helper.h> | 14 | #include <drm/drm_atomic_helper.h> |
14 | #include <drm/drm_of.h> | 15 | #include <drm/drm_of.h> |
15 | 16 | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c index 5d532a596e1e..e1c39712b67a 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c | |||
@@ -15,14 +15,17 @@ | |||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/pinctrl/pinmux.h> | ||
19 | #include <linux/pinctrl/consumer.h> | ||
20 | #include <linux/backlight.h> | ||
21 | #include <linux/gpio/consumer.h> | 18 | #include <linux/gpio/consumer.h> |
19 | #include <linux/pinctrl/consumer.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | |||
22 | #include <video/display_timing.h> | 22 | #include <video/display_timing.h> |
23 | #include <video/of_display_timing.h> | 23 | #include <video/of_display_timing.h> |
24 | #include <video/videomode.h> | 24 | #include <video/videomode.h> |
25 | #include <drm/drm_atomic_helper.h> | 25 | |
26 | #include <drm/drm_atomic_state_helper.h> | ||
27 | #include <drm/drm_connector.h> | ||
28 | #include <drm/drm_modeset_helper_vtables.h> | ||
26 | #include <drm/drm_probe_helper.h> | 29 | #include <drm/drm_probe_helper.h> |
27 | 30 | ||
28 | #include "tilcdc_drv.h" | 31 | #include "tilcdc_drv.h" |
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_plane.c b/drivers/gpu/drm/tilcdc/tilcdc_plane.c index 7667b038ae7f..347ca8656aef 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_plane.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_plane.c | |||
@@ -15,12 +15,10 @@ | |||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <drm/drmP.h> | ||
19 | |||
20 | #include <drm/drm_atomic.h> | 18 | #include <drm/drm_atomic.h> |
21 | #include <drm/drm_plane_helper.h> | 19 | #include <drm/drm_plane_helper.h> |
22 | #include <drm/drm_atomic_helper.h> | 20 | #include <drm/drm_atomic_helper.h> |
23 | #include <uapi/drm/drm_fourcc.h> | 21 | #include <drm/drm_fourcc.h> |
24 | 22 | ||
25 | #include "tilcdc_drv.h" | 23 | #include "tilcdc_drv.h" |
26 | 24 | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index fe59fbfdde69..da642c725cd6 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | |||
@@ -15,12 +15,14 @@ | |||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/i2c.h> | ||
19 | #include <linux/gpio.h> | 18 | #include <linux/gpio.h> |
19 | #include <linux/mod_devicetable.h> | ||
20 | #include <linux/of_gpio.h> | 20 | #include <linux/of_gpio.h> |
21 | #include <linux/pinctrl/pinmux.h> | 21 | #include <linux/platform_device.h> |
22 | #include <linux/pinctrl/consumer.h> | 22 | |
23 | #include <drm/drm_atomic_helper.h> | 23 | #include <drm/drm_atomic_helper.h> |
24 | #include <drm/drm_encoder.h> | ||
25 | #include <drm/drm_modeset_helper_vtables.h> | ||
24 | #include <drm/drm_probe_helper.h> | 26 | #include <drm/drm_probe_helper.h> |
25 | 27 | ||
26 | #include "tilcdc_drv.h" | 28 | #include "tilcdc_drv.h" |