[Intel-gfx] [RFC PATCH 2/2] drm/i915/dsi: rename relevant legacy DSI functions
Jani Nikula
jani.nikula at intel.com
Fri Jun 29 09:28:06 UTC 2018
Avoid confusion with the functions to be added for ICL+ DSI
implementation.
The idea is that static functions and functions only called within the
legacy DSI implementation files (intel_legacy_dsi.c and
intel_legacy_dsi_pll.c) could remain as they are.
References: https://patchwork.freedesktop.org/series/44823/
Cc: Madhav Chauhan <madhav.chauhan at intel.com>
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
More could be renamed, but the first question is, should these be
intel_legacy_dsi_foo() or byt_dsi_foo(). See previous patch.
---
drivers/gpu/drm/i915/intel_display.c | 4 ++--
drivers/gpu/drm/i915/intel_drv.h | 2 +-
drivers/gpu/drm/i915/intel_legacy_dsi.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 56818a45181c..157372737847 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -14133,7 +14133,7 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)
intel_ddi_init(dev_priv, PORT_B);
intel_ddi_init(dev_priv, PORT_C);
- intel_dsi_init(dev_priv);
+ intel_legacy_dsi_init(dev_priv);
} else if (HAS_DDI(dev_priv)) {
int found;
@@ -14239,7 +14239,7 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)
intel_hdmi_init(dev_priv, CHV_HDMID, PORT_D);
}
- intel_dsi_init(dev_priv);
+ intel_legacy_dsi_init(dev_priv);
} else if (!IS_GEN2(dev_priv) && !IS_PINEVIEW(dev_priv)) {
bool found = false;
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 65e1b4ddc0d0..14189b34d601 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -1731,7 +1731,7 @@ int intel_dp_aux_init_backlight_funcs(struct intel_connector *intel_connector);
int intel_dp_mst_encoder_init(struct intel_digital_port *intel_dig_port, int conn_id);
void intel_dp_mst_encoder_cleanup(struct intel_digital_port *intel_dig_port);
/* intel_legacy_dsi.c */
-void intel_dsi_init(struct drm_i915_private *dev_priv);
+void intel_legacy_dsi_init(struct drm_i915_private *dev_priv);
/* intel_dsi_dcs_backlight.c */
int intel_dsi_dcs_init_backlight_funcs(struct intel_connector *intel_connector);
diff --git a/drivers/gpu/drm/i915/intel_legacy_dsi.c b/drivers/gpu/drm/i915/intel_legacy_dsi.c
index 3b7acb5a70b3..446cdda38c35 100644
--- a/drivers/gpu/drm/i915/intel_legacy_dsi.c
+++ b/drivers/gpu/drm/i915/intel_legacy_dsi.c
@@ -1713,7 +1713,7 @@ static void intel_dsi_add_properties(struct intel_connector *connector)
}
}
-void intel_dsi_init(struct drm_i915_private *dev_priv)
+void intel_legacy_dsi_init(struct drm_i915_private *dev_priv)
{
struct drm_device *dev = &dev_priv->drm;
struct intel_dsi *intel_dsi;
--
2.11.0
More information about the Intel-gfx
mailing list