drm/i915: make intel_dpll_mgr.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Mon, 29 Apr 2019 12:29:22 +0000 (15:29 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 30 Apr 2019 11:29:44 +0000 (14:29 +0300)
And ensure it stays that way.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8e759b36dee10c20aa06e4d34d36cda6a2a02323.1556540889.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile.header-test
drivers/gpu/drm/i915/intel_dpll_mgr.c
drivers/gpu/drm/i915/intel_dpll_mgr.h

index 69f88abca18faa2a8a49d7e68f6a5f5d84703084..0979afe10be5210c7ffadb2021978a71acac94d9 100644 (file)
@@ -22,6 +22,7 @@ header_test := \
        intel_csr.h \
        intel_ddi.h \
        intel_dp.h \
+       intel_dpll_mgr.h \
        intel_drv.h \
        intel_dvo.h \
        intel_dvo_dev.h \
index e01c057ce50bee7a30d83f1858ee5858c6932954..dda5ddb49b34d16b404575372dccbaeb39cfcf56 100644 (file)
@@ -21,6 +21,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
+#include "intel_dpll_mgr.h"
 #include "intel_drv.h"
 
 /**
index bd8124cc81edff33e15244b936c6e77ba92a12cb..8835dd20f1d27e05497a67ddbc24aec6560d9167 100644 (file)
 #ifndef _INTEL_DPLL_MGR_H_
 #define _INTEL_DPLL_MGR_H_
 
+#include <linux/types.h>
+
+#include "intel_display.h"
+
 /*FIXME: Move this to a more appropriate place. */
 #define abs_diff(a, b) ({                      \
        typeof(a) __a = (a);                    \
        (void) (&__a == &__b);                  \
        __a > __b ? (__a - __b) : (__b - __a); })
 
+struct drm_atomic_state;
+struct drm_device;
 struct drm_i915_private;
 struct intel_crtc;
 struct intel_crtc_state;
 struct intel_encoder;
-
 struct intel_shared_dpll;
-struct intel_dpll_mgr;
 
 /**
  * enum intel_dpll_id - possible DPLL ids