mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-14 16:26:38 -04:00
drm/i915/pch: Remove unused i915->pch_id
With the PCH checks based on PCH types instead of IDs, the i915->pch_id member has become unused. Remove it. Reviewed-by: Nemesa Garg <nemesa.garg@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/fac1c59800128e8f398e83d718a3a5dc235d0526.1738923308.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -274,7 +274,6 @@ struct drm_i915_private {
|
||||
|
||||
/* PCH chipset type */
|
||||
enum intel_pch pch_type;
|
||||
unsigned short pch_id;
|
||||
|
||||
unsigned long gem_quirks;
|
||||
|
||||
|
||||
@@ -286,13 +286,11 @@ void intel_detect_pch(struct drm_i915_private *dev_priv)
|
||||
pch_type = intel_pch_type(dev_priv, id);
|
||||
if (pch_type != PCH_NONE) {
|
||||
dev_priv->pch_type = pch_type;
|
||||
dev_priv->pch_id = id;
|
||||
break;
|
||||
} else if (intel_is_virt_pch(id, pch->subsystem_vendor,
|
||||
pch->subsystem_device)) {
|
||||
intel_virt_detect_pch(dev_priv, &id, &pch_type);
|
||||
dev_priv->pch_type = pch_type;
|
||||
dev_priv->pch_id = id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -305,12 +303,10 @@ void intel_detect_pch(struct drm_i915_private *dev_priv)
|
||||
drm_dbg_kms(&dev_priv->drm,
|
||||
"Display disabled, reverting to NOP PCH\n");
|
||||
dev_priv->pch_type = PCH_NOP;
|
||||
dev_priv->pch_id = 0;
|
||||
} else if (!pch) {
|
||||
if (i915_run_as_guest() && HAS_DISPLAY(dev_priv)) {
|
||||
intel_virt_detect_pch(dev_priv, &id, &pch_type);
|
||||
dev_priv->pch_type = pch_type;
|
||||
dev_priv->pch_id = id;
|
||||
} else {
|
||||
drm_dbg_kms(&dev_priv->drm, "No PCH found.\n");
|
||||
}
|
||||
|
||||
@@ -544,7 +544,6 @@ struct xe_device {
|
||||
*/
|
||||
struct intel_display display;
|
||||
enum intel_pch pch_type;
|
||||
u16 pch_id;
|
||||
|
||||
struct dram_info {
|
||||
bool wm_lv_0_adjust_needed;
|
||||
|
||||
Reference in New Issue
Block a user