Commit d1dad6f4 authored by Jani Nikula's avatar Jani Nikula

drm/i915/bios: pass devdata to parse_ddi_port

Allow accessing the parent structure later on. Drop const for allowing
future modification as well.

Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarVandita Kulkarni <vandita.kulkarni@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/3318b09aaccbbe141e233ca510d581b421259a2a.1575974743.git.jani.nikula@intel.com
parent 3fa01d64
...@@ -1554,9 +1554,10 @@ static enum port dvo_port_to_port(u8 dvo_port) ...@@ -1554,9 +1554,10 @@ static enum port dvo_port_to_port(u8 dvo_port)
} }
static void parse_ddi_port(struct drm_i915_private *dev_priv, static void parse_ddi_port(struct drm_i915_private *dev_priv,
const struct child_device_config *child, struct display_device_data *devdata,
u8 bdb_version) u8 bdb_version)
{ {
const struct child_device_config *child = &devdata->child;
struct ddi_vbt_port_info *info; struct ddi_vbt_port_info *info;
bool is_dvi, is_hdmi, is_dp, is_edp, is_crt; bool is_dvi, is_hdmi, is_dp, is_edp, is_crt;
enum port port; enum port port;
...@@ -1708,7 +1709,7 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, ...@@ -1708,7 +1709,7 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv,
static void parse_ddi_ports(struct drm_i915_private *dev_priv, u8 bdb_version) static void parse_ddi_ports(struct drm_i915_private *dev_priv, u8 bdb_version)
{ {
const struct display_device_data *devdata; struct display_device_data *devdata;
if (!HAS_DDI(dev_priv) && !IS_CHERRYVIEW(dev_priv)) if (!HAS_DDI(dev_priv) && !IS_CHERRYVIEW(dev_priv))
return; return;
...@@ -1717,7 +1718,7 @@ static void parse_ddi_ports(struct drm_i915_private *dev_priv, u8 bdb_version) ...@@ -1717,7 +1718,7 @@ static void parse_ddi_ports(struct drm_i915_private *dev_priv, u8 bdb_version)
return; return;
list_for_each_entry(devdata, &dev_priv->vbt.display_devices, node) list_for_each_entry(devdata, &dev_priv->vbt.display_devices, node)
parse_ddi_port(dev_priv, &devdata->child, bdb_version); parse_ddi_port(dev_priv, devdata, bdb_version);
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment