Commit 7e0c5caf authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Don't cast away const

The connector state passed to .atomic_get_property() is const.
We should preserve that when downcasting to our version.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240307151810.24208-3-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 9eae5bac
...@@ -62,7 +62,7 @@ int intel_digital_connector_atomic_get_property(struct drm_connector *connector, ...@@ -62,7 +62,7 @@ int intel_digital_connector_atomic_get_property(struct drm_connector *connector,
{ {
struct drm_device *dev = connector->dev; struct drm_device *dev = connector->dev;
struct drm_i915_private *dev_priv = to_i915(dev); struct drm_i915_private *dev_priv = to_i915(dev);
struct intel_digital_connector_state *intel_conn_state = const struct intel_digital_connector_state *intel_conn_state =
to_intel_digital_connector_state(state); to_intel_digital_connector_state(state);
if (property == dev_priv->display.properties.force_audio) if (property == dev_priv->display.properties.force_audio)
......
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