drm/i915/dram: allocate struct dram_info dynamically
authorJani Nikula <jani.nikula@intel.com>
Tue, 27 May 2025 09:25:26 +0000 (12:25 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 4 Jun 2025 15:57:23 +0000 (18:57 +0300)
commite117100acb6d2dd90da01a88616a3b9261b0e99a
treecc09a7a079d45e81e691c38a9c37a9af20afad30
parent836864ac60c53be427caad83ae78ef56aab8b815
drm/i915/dram: allocate struct dram_info dynamically

Allocate struct drm_info dynamically, and convert the struct
drm_i915_private and struct xe_device dram_info member into a const
pointer. Move the struct definition to intel_dram.h, and keep it opaque
to everyone not needing it. This also removes the duplication of the
struct definition.

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Link: https://lore.kernel.org/r/73625095157346ea0e8614108c9b369208e5df66.1748337870.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/soc/intel_dram.c
drivers/gpu/drm/i915/soc/intel_dram.h
drivers/gpu/drm/xe/xe_device_types.h