summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_dmc.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2023-03-01 14:29:42 +0200
committerJani Nikula <jani.nikula@intel.com>2023-03-06 19:09:43 +0200
commit1b28c1c789d0c11be213bb5d892f9a094ab8e201 (patch)
treea365972e3b7f6f210284121b56f3bf23d1107134 /drivers/gpu/drm/i915/display/intel_dmc.h
parentfe00866c65602e94c1b6b3d3efcea3633330b02f (diff)
drm/i915/dmc: add i915_to_dmc() and dmc->i915 and use them
Start preparing for dynamically allocated struct intel_dmc by adding i915_to_dmc() and dmc->i915, and using them. Take the future NULL dmc pointer into account already now, and add separate logging for initialization in the DMC debugfs. v3: - Obtain runtime pm reference first (Imre) v2: - Don't reduce debugfs output (Imre) Cc: Imre Deak <imre.deak@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230301122944.1298929-3-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dmc.h')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dmc.h b/drivers/gpu/drm/i915/display/intel_dmc.h
index 90910cecc2f6..b74635497aa7 100644
--- a/drivers/gpu/drm/i915/display/intel_dmc.h
+++ b/drivers/gpu/drm/i915/display/intel_dmc.h
@@ -25,6 +25,7 @@ enum intel_dmc_id {
};
struct intel_dmc {
+ struct drm_i915_private *i915;
struct work_struct work;
const char *fw_path;
u32 max_fw_size; /* bytes */