drm/i915: Make wopcm_to_i915() private
No need to define it globally as we're only using it in wopcm.c Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190807170034.8440-6-michal.wajdeczko@intel.comalistair/sunxi64-5.4-dsi
parent
7dbd03e289
commit
d4b2cfb8c2
|
@ -1902,11 +1902,6 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)
|
|||
return pci_get_drvdata(pdev);
|
||||
}
|
||||
|
||||
static inline struct drm_i915_private *wopcm_to_i915(struct intel_wopcm *wopcm)
|
||||
{
|
||||
return container_of(wopcm, struct drm_i915_private, wopcm);
|
||||
}
|
||||
|
||||
/* Simple iterator over all initialised engines */
|
||||
#define for_each_engine(engine__, dev_priv__, id__) \
|
||||
for ((id__) = 0; \
|
||||
|
|
|
@ -64,6 +64,11 @@
|
|||
#define GEN9_GUC_FW_RESERVED SZ_128K
|
||||
#define GEN9_GUC_WOPCM_OFFSET (GUC_WOPCM_RESERVED + GEN9_GUC_FW_RESERVED)
|
||||
|
||||
static inline struct drm_i915_private *wopcm_to_i915(struct intel_wopcm *wopcm)
|
||||
{
|
||||
return container_of(wopcm, struct drm_i915_private, wopcm);
|
||||
}
|
||||
|
||||
/**
|
||||
* intel_wopcm_init_early() - Early initialization of the WOPCM.
|
||||
* @wopcm: pointer to intel_wopcm.
|
||||
|
|
Loading…
Reference in New Issue