[Intel-gfx] [PATCH v4 6/6] drm/i915/display: cleanup unused DDI port enums
Balasubramani Vivekanandan
balasubramani.vivekanandan at intel.com
Mon Oct 3 11:07:59 UTC 2022
DDI port enums PORT_G/H/I were added in the commit -
"6c8337dafaa9 drm/i915/tgl: Add additional ports for Tiger Lake" to
identify new ports added in the platform.
In the subsequent commits those ports were identified by new enums
PORT_TC1/TC2/TC3.. to differentiate TypeC ports from non-TypeC.
However, the enum definitions PORT_G/H/I and few usages of these enums
were left as it is.
These enums are unused as of today and can be removed.
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan at intel.com>
---
drivers/gpu/drm/i915/display/intel_bios.c | 3 ---
drivers/gpu/drm/i915/display/intel_display.h | 9 ---------
include/drm/i915_component.h | 2 +-
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_bios.c b/drivers/gpu/drm/i915/display/intel_bios.c
index ab472fa757d8..b0dfb37e402a 100644
--- a/drivers/gpu/drm/i915/display/intel_bios.c
+++ b/drivers/gpu/drm/i915/display/intel_bios.c
@@ -2404,9 +2404,6 @@ static enum port dvo_port_to_port(struct drm_i915_private *i915,
[PORT_D] = { DVO_PORT_HDMID, DVO_PORT_DPD, -1 },
[PORT_E] = { DVO_PORT_HDMIE, DVO_PORT_DPE, DVO_PORT_CRT },
[PORT_F] = { DVO_PORT_HDMIF, DVO_PORT_DPF, -1 },
- [PORT_G] = { DVO_PORT_HDMIG, DVO_PORT_DPG, -1 },
- [PORT_H] = { DVO_PORT_HDMIH, DVO_PORT_DPH, -1 },
- [PORT_I] = { DVO_PORT_HDMII, DVO_PORT_DPI, -1 },
};
/*
* RKL VBT uses PHY based mapping. Combo PHYs A,B,C,D
diff --git a/drivers/gpu/drm/i915/display/intel_display.h b/drivers/gpu/drm/i915/display/intel_display.h
index 4a5f7df7492b..5a55b9f43ce3 100644
--- a/drivers/gpu/drm/i915/display/intel_display.h
+++ b/drivers/gpu/drm/i915/display/intel_display.h
@@ -208,9 +208,6 @@ enum port {
PORT_D,
PORT_E,
PORT_F,
- PORT_G,
- PORT_H,
- PORT_I,
/* Non-TypeC ports must be defined above */
PORT_TC1,
@@ -244,12 +241,6 @@ static inline const char *port_identifier(enum port port)
return "Port E";
case PORT_F:
return "Port F";
- case PORT_G:
- return "Port G";
- case PORT_H:
- return "Port H";
- case PORT_I:
- return "Port I";
case PORT_TC1:
return "Port TC1";
case PORT_TC2:
diff --git a/include/drm/i915_component.h b/include/drm/i915_component.h
index 4b31bab5533a..335822d6960a 100644
--- a/include/drm/i915_component.h
+++ b/include/drm/i915_component.h
@@ -35,7 +35,7 @@ enum i915_component_type {
/* MAX_PORT is the number of port
* It must be sync with I915_MAX_PORTS defined i915_drv.h
*/
-#define MAX_PORTS 15
+#define MAX_PORTS 12
/**
* struct i915_audio_component - Used for direct communication between i915 and hda drivers
--
2.34.1
More information about the Intel-gfx
mailing list