From patchwork Thu Mar 7 15:18:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13585876 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B2E9C54798 for ; Thu, 7 Mar 2024 15:18:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F91F10F4A0; Thu, 7 Mar 2024 15:18:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="JsRXdSFT"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA34010F4A0 for ; Thu, 7 Mar 2024 15:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709824699; x=1741360699; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=lIRMB9PVFpmHss512WluD8SlrvnvVQXegmkuV1OplW8=; b=JsRXdSFTOJ3SnDp0SOt/tJHDWwNY+8XuiXJRN8UN7A9r5lc1UsgEcdCu xTYVnpBfH63N0vZLTbEAw4X/IW8lhNFYN8R4JiN1JnG4baHZml+QOeo6u TGI+PpykOUy7ck63Q0ue3r9wS2XFYEfAS/FM2IqD4HzqIXZdr/6qcYW6b 6kVMKO29HsvupHpBxoYZbZ1c6el9JMA1VD6K6zTXL0b1IoH4EflcNokbE /ZNxIZjUirGyvCF7Wnz+5eNsTVsgxmlKk6Bu9VMYDdGEdfNZzNeVC6/MO Ynl+Tq0Sg2px+mquAabO8aWF2ppuc7AID6zC5+k31owRQbpC+fpI9WrVk A==; X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="26969176" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="26969176" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 07:18:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="827774791" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="827774791" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga001.jf.intel.com with SMTP; 07 Mar 2024 07:18:16 -0800 Received: by stinkbox (sSMTP sendmail emulation); Thu, 07 Mar 2024 17:18:16 +0200 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Subject: [PATCH 2/4] drm/i915: Don't cast away const Date: Thu, 7 Mar 2024 17:18:08 +0200 Message-ID: <20240307151810.24208-3-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240307151810.24208-1-ville.syrjala@linux.intel.com> References: <20240307151810.24208-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Ville Syrjälä The connector state passed to .atomic_get_property() is const. We should preserve that when downcasting to our version. Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_atomic.c b/drivers/gpu/drm/i915/display/intel_atomic.c index 2bb270f82932..7a77ae3dc394 100644 --- a/drivers/gpu/drm/i915/display/intel_atomic.c +++ b/drivers/gpu/drm/i915/display/intel_atomic.c @@ -62,7 +62,7 @@ int intel_digital_connector_atomic_get_property(struct drm_connector *connector, { struct drm_device *dev = connector->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); if (property == dev_priv->display.properties.force_audio)