]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/etnaviv: replace header include with forward declaration
authorLucas Stach <l.stach@pengutronix.de>
Mon, 15 Oct 2018 10:49:07 +0000 (12:49 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 18 Dec 2018 10:55:11 +0000 (11:55 +0100)
The etnaviv_gpu header only needs to know about the pointer types, so
replace by a forward declaration and only include the headers where needed.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.h

index 293e248e1b295ca9fbae8b087493decdcf18fdc2..aefb17e39ad04eb1b855a9f9d90ea3056aa94915 100644 (file)
@@ -3,10 +3,12 @@
  * Copyright (C) 2015-2018 Etnaviv Project
  */
 
+#include <linux/clk.h>
 #include <linux/component.h>
 #include <linux/dma-fence.h>
 #include <linux/moduleparam.h>
 #include <linux/of_device.h>
+#include <linux/regulator/consumer.h>
 #include <linux/thermal.h>
 
 #include "etnaviv_cmdbuf.h"
index 74758f21e5d39587adfabb0f49e762d48c5d4fab..56b6a8ee7ec0f521e9fde6b4eaaa1bf7c1cc0b21 100644 (file)
@@ -6,9 +6,6 @@
 #ifndef __ETNAVIV_GPU_H__
 #define __ETNAVIV_GPU_H__
 
-#include <linux/clk.h>
-#include <linux/regulator/consumer.h>
-
 #include "etnaviv_cmdbuf.h"
 #include "etnaviv_drv.h"
 
@@ -88,6 +85,8 @@ struct etnaviv_event {
 
 struct etnaviv_cmdbuf_suballoc;
 struct etnaviv_cmdbuf;
+struct regulator;
+struct clk;
 
 #define ETNA_NR_EVENTS 30