drm/gma500: drop drmP.h from header files
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 May 2019 19:55:23 +0000 (21:55 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 22 May 2019 12:13:33 +0000 (14:13 +0200)
Drop use of drmp.h from all header files in drm/gma500.
Fix fallout in all files.
In some cases moved include lines and sorted them too.
With drmP.h removed from all header files it can now be removed from
each .c file without any further dependencies

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190519195526.3422-3-sam@ravnborg.org
15 files changed:
drivers/gpu/drm/gma500/framebuffer.h
drivers/gpu/drm/gma500/gtt.h
drivers/gpu/drm/gma500/intel_bios.c
drivers/gpu/drm/gma500/intel_bios.h
drivers/gpu/drm/gma500/intel_i2c.c
drivers/gpu/drm/gma500/mdfld_device.c
drivers/gpu/drm/gma500/mdfld_dsi_dpi.c
drivers/gpu/drm/gma500/mdfld_dsi_output.c
drivers/gpu/drm/gma500/mdfld_dsi_output.h
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c
drivers/gpu/drm/gma500/mdfld_tmd_vid.c
drivers/gpu/drm/gma500/power.h
drivers/gpu/drm/gma500/psb_drv.h
drivers/gpu/drm/gma500/psb_irq.h
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c

index e8e6357f033bc7744ba17b29b93cfb04a4386992..b54477aec95f8be531200ad29baaba8a42b49cd6 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef _FRAMEBUFFER_H_
 #define _FRAMEBUFFER_H_
 
-#include <drm/drmP.h>
 #include <drm/drm_fb_helper.h>
 
 #include "psb_drv.h"
index cb0c3a2a1fd4b6882505c490af2a656953f9cdfe..c9449aabc58fa623fcfbad63c4e59a20e507fadd 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef _PSB_GTT_H_
 #define _PSB_GTT_H_
 
-#include <drm/drmP.h>
 #include <drm/drm_gem.h>
 
 /* This wants cleaning up with respect to the psb_dev and un-needed stuff */
index 45c17c6f58f86ffcf49811ddd0f4a295778b4349..9c67d08a55eae918f60442e0520cdbde1890cc27 100644 (file)
@@ -20,6 +20,7 @@
  */
 #include <drm/drmP.h>
 #include <drm/drm.h>
+#include <drm/drm_dp_helper.h>
 
 #include "psb_drv.h"
 #include "psb_intel_drv.h"
index e0ccf1d19a4dc46aee14aa3a6cf4581e90767f1e..bb3b813d1e683b1031e91ffc28168566e3a360e0 100644 (file)
@@ -22,8 +22,7 @@
 #ifndef _INTEL_BIOS_H_
 #define _INTEL_BIOS_H_
 
-#include <drm/drmP.h>
-#include <drm/drm_dp_helper.h>
+struct drm_device;
 
 struct vbt_header {
        u8 signature[20];               /**< Always starts with 'VBT$' */
index 98a28c209555e02f0d9725612aea112fbd810c98..147b556deeb033f6ab8eb6ff11c5f6e2cd44f99e 100644 (file)
  * Authors:
  *     Eric Anholt <eric@anholt.net>
  */
+#include <linux/delay.h>
 #include <linux/export.h>
-#include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
+#include <linux/i2c.h>
 
 #include "psb_drv.h"
 #include "psb_intel_reg.h"
index e2ab858122f9745dfb2e0408894eda8651c8980f..585ec2e4616677b48ed0cfe163c1f1b789567b6f 100644 (file)
@@ -17,6 +17,8 @@
  *
  **************************************************************************/
 
+#include <linux/delay.h>
+
 #include "psb_drv.h"
 #include "mid_bios.h"
 #include "mdfld_output.h"
index d0bf5a1e94e8751b187538822c463447a432565f..832bae24fd72573cca2ef74ff9a44d6a9322d623 100644 (file)
@@ -25,6 +25,8 @@
  * Jackie Li<yaodong.li@intel.com>
  */
 
+#include <linux/delay.h>
+
 #include "mdfld_dsi_dpi.h"
 #include "mdfld_output.h"
 #include "mdfld_dsi_pkg_sender.h"
index fe020926ea4ffa3613cca24efedf16c7f62b9676..9ca982e77fa5965fffed8bf2fa3b602c8806b6b8 100644 (file)
  * Jackie Li<yaodong.li@intel.com>
  */
 
-#include <linux/module.h>
+#include <linux/delay.h>
+#include <linux/moduleparam.h>
+#include <linux/pm_runtime.h>
 
 #include "mdfld_dsi_output.h"
 #include "mdfld_dsi_dpi.h"
 #include "mdfld_output.h"
 #include "mdfld_dsi_pkg_sender.h"
 #include "tc35876x-dsi-lvds.h"
-#include <linux/pm_runtime.h>
 #include <asm/intel_scu_ipc.h>
 
 /* get the LABC from command line. */
index 5b646c1f0c3eba47558bb52ab5cbf89314c350b2..68d14451e3033f525be229dd5eace0fc9a459cfa 100644 (file)
@@ -29,7 +29,7 @@
 #define __MDFLD_DSI_OUTPUT_H__
 
 #include <linux/backlight.h>
-#include <drm/drmP.h>
+
 #include <drm/drm.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_edid.h>
index c50534c923df66014e26e7a634a45aa43d06be5e..003e96a201394dd823dc71509c0d89d32763f798 100644 (file)
@@ -24,7 +24,9 @@
  * Jackie Li<yaodong.li@intel.com>
  */
 
+#include <linux/delay.h>
 #include <linux/freezer.h>
+
 #include <video/mipi_display.h>
 
 #include "mdfld_dsi_output.h"
index dc0c6c3d3d29075e7ea5462ef73a5c27198e248a..49c92debb7b25137bf4dab95818de89c8c932bad 100644 (file)
@@ -27,6 +27,8 @@
  * Scott Rowe <scott.m.rowe@intel.com>
  */
 
+#include <linux/delay.h>
+
 #include "mdfld_dsi_dpi.h"
 #include "mdfld_dsi_pkg_sender.h"
 
index 56d8708bd41cbcedcbc0e8d60bd137d6cb665cff..0c89c4d6ec2042da2b87534539d1d6b3773ac917 100644 (file)
@@ -31,7 +31,9 @@
 #define _PSB_POWERMGMT_H_
 
 #include <linux/pci.h>
-#include <drm/drmP.h>
+
+struct device;
+struct drm_device;
 
 void gma_power_init(struct drm_device *dev);
 void gma_power_uninit(struct drm_device *dev);
index fbccf2abdad7ff8529e809773e4cadcefda4423d..d7ccc1880ce44be97545cecce4a11512ab7eac26 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/kref.h>
 #include <linux/mm_types.h>
 
-#include <drm/drmP.h>
+#include <drm/drm_device.h>
 
 #include "psb_reg.h"
 #include "psb_intel_drv.h"
index e6a81a8c9f3548214d0dfc7f7350e4b431765ab3..f28fc4dbeb67ce3452530f7b577798114b8321e3 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef _PSB_IRQ_H_
 #define _PSB_IRQ_H_
 
-#include <drm/drmP.h>
+struct drm_device;
 
 bool sysirq_init(struct drm_device *dev);
 void sysirq_uninit(struct drm_device *dev);
index 37c997e24b9ebbd253f540397285a59325a9654c..9b78c2aca5da810a8ca877f96cd6edc014d9eb3b 100644 (file)
  *
  */
 
+#include <linux/delay.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/platform_data/tc35876x.h>
+
 #include "mdfld_dsi_dpi.h"
 #include "mdfld_output.h"
 #include "mdfld_dsi_pkg_sender.h"
 #include "tc35876x-dsi-lvds.h"
-#include <linux/platform_data/tc35876x.h>
-#include <linux/kernel.h>
-#include <linux/module.h>
 #include <asm/intel_scu_ipc.h>
 
 static struct i2c_client *tc35876x_client;