Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp141225lqf; Fri, 26 Apr 2024 02:07:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWejitaP78920Kp/t/iRbhd4HhCNt15NH7373CyJEjSvFvTK2a1ZfxAo7ZjufaP38Tqm/JYky4ISvvhgTyCmP3jt101loxXwff0m6MDAg== X-Google-Smtp-Source: AGHT+IF+uvaE4EmLxIgbUX+qQ8WFQsZdd7sTieT2fLyn1NoSOMZ8Oro5uiXz7XEAA2KgcYNG2HoE X-Received: by 2002:a50:ab0c:0:b0:570:1ea8:cd1c with SMTP id s12-20020a50ab0c000000b005701ea8cd1cmr1320988edc.35.1714122444372; Fri, 26 Apr 2024 02:07:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714122444; cv=pass; d=google.com; s=arc-20160816; b=rPCIMP5QLsrEwoycgwMazRuJRgwgOQbYckEZWxmR9fcKoLCpvFVbLf2qUZPoh73qqj FHdKlFBsAWIhT92ukX8DF57s7l8SBvr0qF9lymc8qjWCEfs6j18DTB0EYC9Pfzn1JAv9 xZxM4az0gFNNvB8B7oOTzmP/Czh6agoMwQVEa0aZSMnNmncEeZU4Wu+vDXdCngdrIvFw 9lyFoA9eeziHvPIB3zqFgL4Y4dTzW2SJwA4PImSg5hCzOK40CO3KYihA+/fbo5aDQSEJ W9f6QE6VsNfyDvtbkSZ3INzleX8l8/XLM3g/QX1raTl8SM/VPaDFZF4rkwM002WPkUBH /FYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=tLFqHcyah1gQ3iiVNX4FYQDBhT55qJx2TpzECwEgFbI=; fh=W9yRQyXYGCi9MwVjdCafpvQwWxwBN/xCwbTX3DBdTfE=; b=JKrQzqrXIOIlmvI1MwDAjFBXD5SYzQHmDzJ8mV9xqJgqU5wAG+sWKO9jkzosR+Ztxq UplMnLnasNuigCtg0NX8ezOxWk9dzjnTq7tTgn9ECMQ8Pr/lNTGaYBnh9qzhAgHgdWYH qglyOykeMfA2s9iu6JK6xj0hrNk/ZCGTyqjPB3gO44fwt+yB4Hm07j+yRpH0ZD+qKodq 1B4mN2fnSraN+bcu1hXWBffO3T21BVK2ldMVLwrj5ovESPwGGNUrrVvt6jV7C9RQVes2 3zm+VVaw6UdnjfhPVbfUflDDa702NU5FPdojhErCSAY1ZYMGFQGPz40SG+SsMtLVFYGH 8Yog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EHlRaIQH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m16-20020a509310000000b005705b381c71si11210100eda.395.2024.04.26.02.07.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 02:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EHlRaIQH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159750-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EEC191F21A67 for ; Fri, 26 Apr 2024 09:07:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA34313F426; Fri, 26 Apr 2024 09:06:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EHlRaIQH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE41F13D602; Fri, 26 Apr 2024 09:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714122370; cv=none; b=NGxmpBDax0FsgFAnJRb3215jO3iLIWJTASR8sWHSAq4vwWZUPMcGyFQEKV59KLjaR4I2+z8l8BzvWEZRSidqLuQA8vyhTKOWqfpE+HwsLCq7oIVzk3Eh3S/HiLgTLDnO+62naAcrbpQvKfaoz294VdttE2AT5Z9Enf7jclW6mNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714122370; c=relaxed/simple; bh=U7rM8eY2XCeqSnVqnkIcGkj39dk+3X6+eaiO397jKG0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XwHN2osiqDVQzlUYtHfh3VLUXQS5JP2NV4ACt8ZKJzUa2uFVWRsHU2gU/+k441+y0Dz9GtqFuZhk3+0KfUQAQVFGXjdVzTxTzMXk9YocSf/Q0B+0cOUQwxxxEeF6cy1meVxuqKISPRLeqVXypHu1MVYoIpoD7kg5Yg27Zd34vkY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EHlRaIQH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C34EC113CD; Fri, 26 Apr 2024 09:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714122369; bh=U7rM8eY2XCeqSnVqnkIcGkj39dk+3X6+eaiO397jKG0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EHlRaIQHRZhxTInYYhLyQWXpqNgH1uCG5af4QWoEe8HPIv6gFk1wMCWrp0NQS+4hS u5lBzB3dvgtEV/63/NPA7ElNZnGI7NO/vCDTBBRjQw8uZf2SB0USLGO+SGDPKXDGdu Oxi4nitpAhrR/87jm13+X+DyJu3PYMn28kTXE2oKuG0MPT5ob3fniPVPh1igevk7dY /bSTQhn93lZUtG7xtgyxjt92zkbL2pi2Q6l519/FCr+8eSuELxmN3VN9IIGc20tL9l zFAfLVxWUXAT2g8gay7wjz9FL1tjSQjTz0Pp7xxBTryUJFJIGdBbI7hQNWLSh+TI3j qIF8uv20kqhgA== From: Krzysztof Kozlowski Date: Fri, 26 Apr 2024 11:03:57 +0200 Subject: [PATCH v2 10/14] ASoC: SOF: imx8ulp: Constify snd_sof_dsp_ops Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240426-n-const-ops-var-v2-10-e553fe67ae82@kernel.org> References: <20240426-n-const-ops-var-v2-0-e553fe67ae82@kernel.org> In-Reply-To: <20240426-n-const-ops-var-v2-0-e553fe67ae82@kernel.org> To: Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matthias Brugger , AngeloGioacchino Del Regno Cc: sound-open-firmware@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=831; i=krzk@kernel.org; h=from:subject:message-id; bh=U7rM8eY2XCeqSnVqnkIcGkj39dk+3X6+eaiO397jKG0=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmK24oIJZMxIOpyh3SskZv42qnFSQ4zPHQj51OD hjxWQK/V9eJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZituKAAKCRDBN2bmhouD 16t9EACOG2WZz1DIlgW0FSMln1bXk1N6nXfR61Jw8YlE7K3nuvGz+gnmo3qchGZ+w2KMVajg8WG XYGeOSHhsWJVMpBJjGOF2jnVrAFg3rn+i0fm+QPcmAobrJ18tRFYDLezgV5B/UzGgjqN4KKMJ+D auPeqGXppSZDWM7iOCQCKU49i2+oZl8eSYQbS+cKUpEWEwhhv+Gj2wjtjoGuWXd6oo6gabg/zL5 IXOinT8WZYluCFuCwnDsA9rLcFwjBEZARaQWQZPt8Pkfog+6EQb4pBL4n1xxcRpLd74KicEfT81 82lhfDRR2KrgxvoidGkhzDXXgWEwoqm37MmlN1CH2GXBWIhabGynE7V+Jc5TjeFTy5DBfQs7kwM R/bUlqSpohKJ9jEL4PlCIu7yA9Z6b85F0GcxURrlPhgEeDB5d3XnJuSa1gOWrdB0VdHIlHVXXwu YWzlXtS/bkT+RGzNejIfIFg9Jla2qhtd5yo9PaQaVJdA9L+l+jVc0bKhqSFEcSI6+rURwGNkFYb sk9VZOhWL0S9YntBb8bXD20TbBRxE2m9ktTVH0ShSPpQyyxUI0iyksSvR/sI5ApeJCmTkwy1mch OXka7spjPIcNHgFRIOsgB6Tro19CTHSdKt9W1YKzeg3DM8ER5hSCPs4Lxulkq585eDoEZfuxAZT GzjHtQ3YKizo4Ig== X-Developer-Key: i=krzk@kernel.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B 'struct snd_sof_dsp_ops' is not modified by core code, so it can be made const for increased code safety. Tested-by: Pierre-Louis Bossart Signed-off-by: Krzysztof Kozlowski --- sound/soc/sof/imx/imx8ulp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/imx/imx8ulp.c b/sound/soc/sof/imx/imx8ulp.c index 296fbf11f6d0..8adfdd00413a 100644 --- a/sound/soc/sof/imx/imx8ulp.c +++ b/sound/soc/sof/imx/imx8ulp.c @@ -408,7 +408,7 @@ static int imx8ulp_dsp_set_power_state(struct snd_sof_dev *sdev, } /* i.MX8 ops */ -static struct snd_sof_dsp_ops sof_imx8ulp_ops = { +static const struct snd_sof_dsp_ops sof_imx8ulp_ops = { /* probe and remove */ .probe = imx8ulp_probe, .remove = imx8ulp_remove, -- 2.43.0