diff options
author | Jani Nikula <jani.nikula@intel.com> | 2018-12-31 16:56:43 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-01-02 12:47:52 +0200 |
commit | 1400cc7e0dcdf13454e64a402c097e3c8f5d5d29 (patch) | |
tree | d7476c8a707bf2329908244affbabd64b7b7cce0 /drivers/gpu/drm/i915/intel_device_info.c | |
parent | ed5eb1b78a883029d7c7c6a8b602088225b743a6 (diff) | |
download | linux-1400cc7e0dcdf13454e64a402c097e3c8f5d5d29.tar.gz linux-1400cc7e0dcdf13454e64a402c097e3c8f5d5d29.tar.bz2 linux-1400cc7e0dcdf13454e64a402c097e3c8f5d5d29.zip |
drm/i915: pass dev_priv to intel_device_info_runtime_init()
With the static/runtime device info split, this makes more sense.
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ad5b448e4e318df0d292d73e6c3378f3e6b9bae5.1546267488.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_device_info.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_device_info.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c index ffc5d75aa690..f35e8cff4b99 100644 --- a/drivers/gpu/drm/i915/intel_device_info.c +++ b/drivers/gpu/drm/i915/intel_device_info.c @@ -738,10 +738,9 @@ static u32 read_timestamp_frequency(struct drm_i915_private *dev_priv) * - after the PCH has been detected, * - before the first usage of the fields it can tweak. */ -void intel_device_info_runtime_init(struct intel_device_info *info) +void intel_device_info_runtime_init(struct drm_i915_private *dev_priv) { - struct drm_i915_private *dev_priv = - container_of(info, struct drm_i915_private, info); + struct intel_device_info *info = mkwrite_device_info(dev_priv); struct intel_runtime_info *runtime = RUNTIME_INFO(dev_priv); enum pipe pipe; |