Commit 55367a27 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915: extract intel_psr.h from intel_drv.h



It used to be handy that we only had a couple of headers, but over time
intel_drv.h has become unwieldy. Extract declarations to a separate
header file corresponding to the implementation module, clarifying the
modularity of the driver.

Ensure the new header is self-contained, and do so with minimal further
includes, using forward declarations as needed. Include the new header
only where needed, and sort the modified include directives while at it
and as needed.

No functional changes.

v2: Fix checkpatch whitespace complaint

Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7e776690bf139ccdd0306b30df08dc68e74603de.1554461791.git.jani.nikula@intel.com
parent 98afa316
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ header_test := \
	intel_engine_types.h \
	intel_fbc.h \
	intel_frontbuffer.h \
	intel_psr.h \
	intel_workarounds_types.h

quiet_cmd_header_test = HDRTEST $@
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
#include "intel_drv.h"
#include "intel_fbc.h"
#include "intel_guc_submission.h"
#include "intel_psr.h"

static inline struct drm_i915_private *node_to_i915(struct drm_info_node *node)
{
+7 −4
Original line number Diff line number Diff line
@@ -28,16 +28,19 @@

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/sysrq.h>
#include <linux/slab.h>
#include <linux/cpuidle.h>
#include <linux/circ_buf.h>
#include <drm/drm_irq.h>
#include <linux/cpuidle.h>
#include <linux/slab.h>
#include <linux/sysrq.h>

#include <drm/drm_drv.h>
#include <drm/drm_irq.h>
#include <drm/i915_drm.h>

#include "i915_drv.h"
#include "i915_trace.h"
#include "intel_drv.h"
#include "intel_psr.h"

/**
 * DOC: interrupt handling
+1 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include "intel_ddi.h"
#include "intel_drv.h"
#include "intel_dsi.h"
#include "intel_psr.h"

struct ddi_buf_trans {
	u32 trans1;	/* balance leg enable, de-emph level */
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@
#include "intel_dsi.h"
#include "intel_fbc.h"
#include "intel_frontbuffer.h"
#include "intel_psr.h"

/* Primary plane formats for gen <= 3 */
static const u32 i8xx_primary_formats[] = {
Loading