diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2019-01-08 14:29:38 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-01-09 16:48:56 -0500 |
commit | 84056e9b45f7a1a1284f33343551ae21bc3c2cc1 (patch) | |
tree | f89b9aa32b29ebf7ee72a9df0c6a98442c707665 | |
parent | fe1f664a36091f4a3c771178f47545b190c78162 (diff) |
drm/tinydrm: do not reply on drmP.h from drm_gem_cma_helper.h
drmP.h was the only header file in the past and a lot
of files rely on that drmP.h defines everything.
The goal is to one day to delete drmP.h and
as a step towards this it will no longer be included in the
headers files in include/drm/
To prepare tinydrm/ for this add dependencies that
othwewise was pulled in by drmP.h from drm_gem_cma_helper.h
To avoid that tinydrm.h became "include everything",
push include files to the individual drivers.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: David Lechner <david@lechnology.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Eric Anholt <eric@anholt.net>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190108192939.15255-12-sam@ravnborg.org
-rw-r--r-- | drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/hx8357d.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/ili9225.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/ili9341.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/mi0283qt.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/mipi-dbi.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/repaper.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/st7586.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tinydrm/st7735r.c | 1 |
10 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tinydrm/core/tinydrm-core.c b/drivers/gpu/drm/tinydrm/core/tinydrm-core.c index 01a6f2d42440..aeb93eadb047 100644 --- a/drivers/gpu/drm/tinydrm/core/tinydrm-core.c +++ b/drivers/gpu/drm/tinydrm/core/tinydrm-core.c | |||
@@ -10,11 +10,14 @@ | |||
10 | #include <drm/drm_atomic.h> | 10 | #include <drm/drm_atomic.h> |
11 | #include <drm/drm_atomic_helper.h> | 11 | #include <drm/drm_atomic_helper.h> |
12 | #include <drm/drm_crtc_helper.h> | 12 | #include <drm/drm_crtc_helper.h> |
13 | #include <drm/drm_drv.h> | ||
13 | #include <drm/drm_fb_helper.h> | 14 | #include <drm/drm_fb_helper.h> |
14 | #include <drm/drm_gem_framebuffer_helper.h> | 15 | #include <drm/drm_gem_framebuffer_helper.h> |
16 | #include <drm/drm_print.h> | ||
15 | #include <drm/tinydrm/tinydrm.h> | 17 | #include <drm/tinydrm/tinydrm.h> |
16 | #include <linux/device.h> | 18 | #include <linux/device.h> |
17 | #include <linux/dma-buf.h> | 19 | #include <linux/dma-buf.h> |
20 | #include <linux/module.h> | ||
18 | 21 | ||
19 | /** | 22 | /** |
20 | * DOC: overview | 23 | * DOC: overview |
diff --git a/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c b/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c index eacfc0ec8ff1..d4576d6e8ce4 100644 --- a/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c +++ b/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | |||
@@ -9,8 +9,11 @@ | |||
9 | 9 | ||
10 | #include <drm/drm_atomic_helper.h> | 10 | #include <drm/drm_atomic_helper.h> |
11 | #include <drm/drm_crtc_helper.h> | 11 | #include <drm/drm_crtc_helper.h> |
12 | #include <drm/drm_drv.h> | ||
12 | #include <drm/drm_gem_framebuffer_helper.h> | 13 | #include <drm/drm_gem_framebuffer_helper.h> |
13 | #include <drm/drm_modes.h> | 14 | #include <drm/drm_modes.h> |
15 | #include <drm/drm_print.h> | ||
16 | #include <drm/drm_vblank.h> | ||
14 | #include <drm/tinydrm/tinydrm.h> | 17 | #include <drm/tinydrm/tinydrm.h> |
15 | 18 | ||
16 | struct tinydrm_connector { | 19 | struct tinydrm_connector { |
diff --git a/drivers/gpu/drm/tinydrm/hx8357d.c b/drivers/gpu/drm/tinydrm/hx8357d.c index 81a2bbeb25d4..3ae11aa4b73b 100644 --- a/drivers/gpu/drm/tinydrm/hx8357d.c +++ b/drivers/gpu/drm/tinydrm/hx8357d.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/property.h> | 16 | #include <linux/property.h> |
17 | #include <linux/spi/spi.h> | 17 | #include <linux/spi/spi.h> |
18 | 18 | ||
19 | #include <drm/drm_drv.h> | ||
19 | #include <drm/drm_gem_cma_helper.h> | 20 | #include <drm/drm_gem_cma_helper.h> |
20 | #include <drm/drm_gem_framebuffer_helper.h> | 21 | #include <drm/drm_gem_framebuffer_helper.h> |
21 | #include <drm/drm_modeset_helper.h> | 22 | #include <drm/drm_modeset_helper.h> |
diff --git a/drivers/gpu/drm/tinydrm/ili9225.c b/drivers/gpu/drm/tinydrm/ili9225.c index 78f7c2d1b449..b0ad58b97227 100644 --- a/drivers/gpu/drm/tinydrm/ili9225.c +++ b/drivers/gpu/drm/tinydrm/ili9225.c | |||
@@ -20,7 +20,9 @@ | |||
20 | #include <linux/spi/spi.h> | 20 | #include <linux/spi/spi.h> |
21 | #include <video/mipi_display.h> | 21 | #include <video/mipi_display.h> |
22 | 22 | ||
23 | #include <drm/drm_drv.h> | ||
23 | #include <drm/drm_fb_cma_helper.h> | 24 | #include <drm/drm_fb_cma_helper.h> |
25 | #include <drm/drm_fourcc.h> | ||
24 | #include <drm/drm_gem_cma_helper.h> | 26 | #include <drm/drm_gem_cma_helper.h> |
25 | #include <drm/drm_gem_framebuffer_helper.h> | 27 | #include <drm/drm_gem_framebuffer_helper.h> |
26 | #include <drm/tinydrm/mipi-dbi.h> | 28 | #include <drm/tinydrm/mipi-dbi.h> |
diff --git a/drivers/gpu/drm/tinydrm/ili9341.c b/drivers/gpu/drm/tinydrm/ili9341.c index 51395bdc6ca2..bcdf10906ade 100644 --- a/drivers/gpu/drm/tinydrm/ili9341.c +++ b/drivers/gpu/drm/tinydrm/ili9341.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/property.h> | 15 | #include <linux/property.h> |
16 | #include <linux/spi/spi.h> | 16 | #include <linux/spi/spi.h> |
17 | 17 | ||
18 | #include <drm/drm_drv.h> | ||
18 | #include <drm/drm_gem_cma_helper.h> | 19 | #include <drm/drm_gem_cma_helper.h> |
19 | #include <drm/drm_gem_framebuffer_helper.h> | 20 | #include <drm/drm_gem_framebuffer_helper.h> |
20 | #include <drm/drm_modeset_helper.h> | 21 | #include <drm/drm_modeset_helper.h> |
diff --git a/drivers/gpu/drm/tinydrm/mi0283qt.c b/drivers/gpu/drm/tinydrm/mi0283qt.c index 3fa62e77c30b..97805ca37a04 100644 --- a/drivers/gpu/drm/tinydrm/mi0283qt.c +++ b/drivers/gpu/drm/tinydrm/mi0283qt.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/regulator/consumer.h> | 17 | #include <linux/regulator/consumer.h> |
18 | #include <linux/spi/spi.h> | 18 | #include <linux/spi/spi.h> |
19 | 19 | ||
20 | #include <drm/drm_drv.h> | ||
20 | #include <drm/drm_gem_cma_helper.h> | 21 | #include <drm/drm_gem_cma_helper.h> |
21 | #include <drm/drm_gem_framebuffer_helper.h> | 22 | #include <drm/drm_gem_framebuffer_helper.h> |
22 | #include <drm/drm_modeset_helper.h> | 23 | #include <drm/drm_modeset_helper.h> |
diff --git a/drivers/gpu/drm/tinydrm/mipi-dbi.c b/drivers/gpu/drm/tinydrm/mipi-dbi.c index 3a05e56f9b0d..10294e1283dd 100644 --- a/drivers/gpu/drm/tinydrm/mipi-dbi.c +++ b/drivers/gpu/drm/tinydrm/mipi-dbi.c | |||
@@ -10,14 +10,17 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/debugfs.h> | 12 | #include <linux/debugfs.h> |
13 | #include <linux/delay.h> | ||
13 | #include <linux/dma-buf.h> | 14 | #include <linux/dma-buf.h> |
14 | #include <linux/gpio/consumer.h> | 15 | #include <linux/gpio/consumer.h> |
15 | #include <linux/module.h> | 16 | #include <linux/module.h> |
16 | #include <linux/regulator/consumer.h> | 17 | #include <linux/regulator/consumer.h> |
17 | #include <linux/spi/spi.h> | 18 | #include <linux/spi/spi.h> |
18 | 19 | ||
20 | #include <drm/drm_drv.h> | ||
19 | #include <drm/drm_fb_cma_helper.h> | 21 | #include <drm/drm_fb_cma_helper.h> |
20 | #include <drm/drm_gem_cma_helper.h> | 22 | #include <drm/drm_gem_cma_helper.h> |
23 | #include <drm/drm_fourcc.h> | ||
21 | #include <drm/drm_gem_framebuffer_helper.h> | 24 | #include <drm/drm_gem_framebuffer_helper.h> |
22 | #include <drm/tinydrm/mipi-dbi.h> | 25 | #include <drm/tinydrm/mipi-dbi.h> |
23 | #include <drm/tinydrm/tinydrm-helpers.h> | 26 | #include <drm/tinydrm/tinydrm-helpers.h> |
diff --git a/drivers/gpu/drm/tinydrm/repaper.c b/drivers/gpu/drm/tinydrm/repaper.c index 54d6fe0f37ce..b2a8f894946a 100644 --- a/drivers/gpu/drm/tinydrm/repaper.c +++ b/drivers/gpu/drm/tinydrm/repaper.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/spi/spi.h> | 26 | #include <linux/spi/spi.h> |
27 | #include <linux/thermal.h> | 27 | #include <linux/thermal.h> |
28 | 28 | ||
29 | #include <drm/drm_drv.h> | ||
29 | #include <drm/drm_fb_cma_helper.h> | 30 | #include <drm/drm_fb_cma_helper.h> |
30 | #include <drm/drm_gem_cma_helper.h> | 31 | #include <drm/drm_gem_cma_helper.h> |
31 | #include <drm/drm_gem_framebuffer_helper.h> | 32 | #include <drm/drm_gem_framebuffer_helper.h> |
diff --git a/drivers/gpu/drm/tinydrm/st7586.c b/drivers/gpu/drm/tinydrm/st7586.c index a6a8a1081b73..bf518167760a 100644 --- a/drivers/gpu/drm/tinydrm/st7586.c +++ b/drivers/gpu/drm/tinydrm/st7586.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/spi/spi.h> | 17 | #include <linux/spi/spi.h> |
18 | #include <video/mipi_display.h> | 18 | #include <video/mipi_display.h> |
19 | 19 | ||
20 | #include <drm/drm_drv.h> | ||
20 | #include <drm/drm_fb_cma_helper.h> | 21 | #include <drm/drm_fb_cma_helper.h> |
21 | #include <drm/drm_gem_cma_helper.h> | 22 | #include <drm/drm_gem_cma_helper.h> |
22 | #include <drm/drm_gem_framebuffer_helper.h> | 23 | #include <drm/drm_gem_framebuffer_helper.h> |
diff --git a/drivers/gpu/drm/tinydrm/st7735r.c b/drivers/gpu/drm/tinydrm/st7735r.c index b39779e0dcd8..9bc93d5a0401 100644 --- a/drivers/gpu/drm/tinydrm/st7735r.c +++ b/drivers/gpu/drm/tinydrm/st7735r.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/spi/spi.h> | 14 | #include <linux/spi/spi.h> |
15 | #include <video/mipi_display.h> | 15 | #include <video/mipi_display.h> |
16 | 16 | ||
17 | #include <drm/drm_drv.h> | ||
17 | #include <drm/drm_gem_cma_helper.h> | 18 | #include <drm/drm_gem_cma_helper.h> |
18 | #include <drm/drm_gem_framebuffer_helper.h> | 19 | #include <drm/drm_gem_framebuffer_helper.h> |
19 | #include <drm/tinydrm/mipi-dbi.h> | 20 | #include <drm/tinydrm/mipi-dbi.h> |