drm/gma500: make local header files more self-contained
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 May 2019 19:55:24 +0000 (21:55 +0200)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 22 May 2019 12:13:37 +0000 (14:13 +0200)
Add proper forward declarations to minimize dependencies on
other header files.

Just add enough that we can safely include all header files in
alphabetically order in relevant files.

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-4-sam@ravnborg.org
drivers/gpu/drm/gma500/blitter.h
drivers/gpu/drm/gma500/cdv_device.h
drivers/gpu/drm/gma500/gma_device.h
drivers/gpu/drm/gma500/gma_display.h
drivers/gpu/drm/gma500/mid_bios.h
drivers/gpu/drm/gma500/oaktrail.h

index b83648df590d9a9a07602a09bd3c0b464104045b..69551a2fc0f40aa78f12ab7dad0b31bd2d74a630 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef __BLITTER_H
 #define __BLITTER_H
 
+struct drm_psb_private;
+
 extern int gma_blt_wait_idle(struct drm_psb_private *dev_priv);
 
 #endif
index 705c11d47d456cfd37b2dec4a8ebe6660ad4fa6d..19e544ba21cb3f9c4018d59266b664704f67116a 100644 (file)
  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+struct drm_crtc;
+struct drm_device;
+struct psb_intel_mode_device;
+
 extern const struct drm_crtc_helper_funcs cdv_intel_helper_funcs;
 extern const struct drm_crtc_funcs cdv_intel_crtc_funcs;
 extern const struct gma_clock_funcs cdv_clock_funcs;
index e1dbb007b820b02708704fb7fa07efe883c0ec98..9f0bb916562f4210bff1da444f08869b42452a9e 100644 (file)
@@ -15,6 +15,7 @@
 
 #ifndef _GMA_DEVICE_H
 #define _GMA_DEVICE_H
+struct drm_device;
 
 extern void gma_get_core_freq(struct drm_device *dev);
 
index 239c374b61691e88458f7f67eb388b832ebd1f15..e970cb869ea7d7f8d2a011b1f8ec4eb411c6c6fb 100644 (file)
@@ -24,6 +24,9 @@
 
 #include <linux/pm_runtime.h>
 
+struct drm_encoder;
+struct drm_mode_set;
+
 struct gma_clock_t {
        /* given values */
        int n;
index 00e7d564b7eb9c2d3e3ca8289e998a40828346a6..59e43a68a21dc245322a607dba9ceeb0e39d6296 100644 (file)
@@ -16,6 +16,7 @@
  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  *
  **************************************************************************/
+struct drm_device;
 
 extern int mid_chip_setup(struct drm_device *dev);
 
index 30adbbe23024d0f16924bce660d8cd6b88521188..e41bcab5a585e8ef2373777c4e14300f36b6fbfb 100644 (file)
@@ -17,6 +17,8 @@
  *
  **************************************************************************/
 
+struct psb_intel_mode_device;
+
 /* MID device specific descriptors */
 
 struct oaktrail_timing_info {