Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1055157lqp; Sun, 14 Apr 2024 11:52:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbZAQgTg7gpjWEfGYihWn6i6JEzfMwZke0hcB5Z9b93uD79nd3lDzNPOfn7FZteuln21MY7YskfYyuehhtVDm9HJLoog2h3fljNMGoTg== X-Google-Smtp-Source: AGHT+IH86JEIAde1dTD34CB37IygRmEblQU9isWs48ZIhPioKouz3PeRDuUFWBR1BoSxcHePGYQy X-Received: by 2002:a05:6358:838c:b0:186:102b:777 with SMTP id c12-20020a056358838c00b00186102b0777mr10529751rwk.10.1713120732508; Sun, 14 Apr 2024 11:52:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713120732; cv=pass; d=google.com; s=arc-20160816; b=xk8OKspJlZNG5JDgOCXIUSp5M5B9+myY65A4qQSujw+IJuUQeC5gQvPTaTJkhWnE1Z ZvonX/q2W7WeShjhDdmHhGEdJHzco5fvwYqt05+BnStX10fLvwijVtXM0VQHlgpcz4tl fR/WDpfHQhqkWIhKdLkTvx3N1VjQnmR6Cx2V8yMaqAxm3BMezhX0l9gwsxjtPU9pqOje jrMjEVWqugjRtBnRMJdu3YV3sWgutONXPNgHx+QFWuZlmjfomlaPWkDvOwXaOJB9euEd tWAJzLTs7TlGTs808tGiN5bFjP4XWYOo6U28UQVHch2C40Cuokwb0SpwQzJia7t2KluZ tOzw== 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=npq1jl/AVKseRY0C2bNNrXDsO9CF0NyEW/U8M7Dna8k=; fh=W9yRQyXYGCi9MwVjdCafpvQwWxwBN/xCwbTX3DBdTfE=; b=FNwfv5+oxDGDeqI64Dwj8MeGEOsuiDG7aMzRdavW851h9B7nrDVEbmW6NTxyB49SD3 4Ow+uOSwJRMX/0xGMJjfKeA9sWIQaNUI1DewmT8GaxfRESMyWLGOTQ86Y5M7vGvhQa+7 /pJSFNLdIBKiZPj6Fp0a+yWtRVmNBxy7BYbV4ZnxYw9Jf74kBtcgCkl2m/p5uZ/R7RHs t8sVuSYiLQV87ysFycsbpkmuo6XxkG1yDaEB/AV9EKMDIniitJBbKvgaaq2ihbhQlFsQ Y3OnvfjFC4pg/8g1ZCTmml3gtPvd++kF5xMjr5RnJ0rbT6jP0Bd/ObWzMui8AuXH7eS+ b6iA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D4UezHTK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-144344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u16-20020a17090adb5000b002a4838902dcsi8874036pjx.22.2024.04.14.11.52.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 11:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D4UezHTK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-144344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144344-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E356280FEE for ; Sun, 14 Apr 2024 18:52:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 118DE13777A; Sun, 14 Apr 2024 18:49:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D4UezHTK" 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 2ABF613774E; Sun, 14 Apr 2024 18:49:20 +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=1713120560; cv=none; b=hQlo2/Z2VfPgVFV7PCB+xxF+cXeVEfLjADGlNr+EhfVRf5FWd84WoV0tLAvImcLN/o2MdKkD0slWtFtn7l8FwIjx1sx2m/rN0vffHWLub33tvarDoXYKDMdgLpzmlM6kf0+A6owLA6whl7ihZZ3+T48o/ai9aysOjBxg60qeYEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713120560; c=relaxed/simple; bh=HDCjdUZ9nbqoLbalVPVe/UT1SONcMJH2I6HWQBc1Bwg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BSQie1WIrcJ57W+EwQdJqR9bntEHMhL2tdAe9eRsvXjAevXa2FA4WO0UYH/0375HGspNJSan24QLJXEdXC1DKCpcYLJAobk+u2czyo0/14JbPuVylsFGNiyXbnP/b/Ku+427ysud/uZTW6aoE/42xmL94jVmxkp8IPMCwP+/HRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D4UezHTK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ACB5C072AA; Sun, 14 Apr 2024 18:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713120560; bh=HDCjdUZ9nbqoLbalVPVe/UT1SONcMJH2I6HWQBc1Bwg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=D4UezHTK7gkYSB8U6BP8dGprcFYlx6MXcQcpiIzrnlGi6/cU5fo+9FSsCxX+8YQT1 ICz+VHyKvRbQedDXb+hZ/BiPZjYWtb61XAUQ1RcwwDkWcuViR2PFotNitqgUkVxg5E UZaguPyyN6f3pfg5gNXoabh7xY3uKe1OA/dtJtjEu5M2NQJjC0jEehJ8foJeBV1L6A aj3ZlJmhtbccpoKMwjDJ7/6P16FaJcuS0ECCJCyQk+TI3TzM2/oNsMdXu7w3QEGETd zsxayGMGN8DxkdU59fDgtoGl7dPLOTMCNymOIcl8O4bu91QV7TRsy62q3n8b8nHbuR y4PsfImOyuRow== From: Krzysztof Kozlowski Date: Sun, 14 Apr 2024 20:47:37 +0200 Subject: [PATCH 12/14] ASoC: SOF: intel: byt: 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: <20240414-n-const-ops-var-v1-12-8f53ee5d981c@kernel.org> References: <20240414-n-const-ops-var-v1-0-8f53ee5d981c@kernel.org> In-Reply-To: <20240414-n-const-ops-var-v1-0-8f53ee5d981c@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=1028; i=krzk@kernel.org; h=from:subject:message-id; bh=HDCjdUZ9nbqoLbalVPVe/UT1SONcMJH2I6HWQBc1Bwg=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmHCTOgSv/AebgOX4MZvM+Uh75zPZ0Rvctqm5Kz AmlxIeXz5yJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZhwkzgAKCRDBN2bmhouD 1y/6D/4z/POCI8W7rkjUkLA0M+QsTfEAS2ki1DPELX7wk/YqHgSOolz78b1M7laKFW2+QCZW4fV rKZ3oGlTY8sxvrDOkjRcE2/L9LGcQyaZvtafXCvBF7OobozCO2KLn1P9Tz82SoU7L51UGPfUzbv DBwEL+8qzHNL2vKBy2ELBepSeb44RvlsQ8bY33CnW8oZUqcnNoYI6SU0ks81RpX7YVO8e3NDIQT aOQRvs/RJ7GsxZhWBlR0BCsStYo0f3bo0i0JrzuBgnim3bsr4+/FikmTT5J8aAPctCo4a7ar5rk ftqk8nL+M1zF4gmFEFBpqmeeuHEvypXA59P60SGLzqV3ju904VAGx3769t43JH5Z/MEmZvfm73B U/AG+h+2d3l0bGCEev6eD6hdC6/cu1KBpoQqhnmb6owYg9sXOno1dfaPHr5fWL38gT74USUCZzu j6xyrbRvMVKIvIoLr6StR35+Ah2VFi081knqkJNWghEd2wEOjYPCmtAd50O0RYIBZTVKijDU0S7 7mJxwJKCBfhAOELf1Ll+r9VL85TXwThvz6r1tP60Ix0IVilM7I4r/+BoLtCJNe/bhbxwyG4ps3D wNSoXzLjeFdVFZ8fYdBpZDFtwkS3HDtDKgaqTFdGsr4N0wgpdm04zgh57ciWanELUhIIkDku441 NFAEvaNp4sgXogA== 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. Signed-off-by: Krzysztof Kozlowski --- sound/soc/sof/intel/byt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/intel/byt.c b/sound/soc/sof/intel/byt.c index 373527b206d7..14a065999a89 100644 --- a/sound/soc/sof/intel/byt.c +++ b/sound/soc/sof/intel/byt.c @@ -214,7 +214,7 @@ static int byt_acpi_probe(struct snd_sof_dev *sdev) } /* baytrail ops */ -static struct snd_sof_dsp_ops sof_byt_ops = { +static const struct snd_sof_dsp_ops sof_byt_ops = { /* device init */ .probe = byt_acpi_probe, .remove = byt_remove, @@ -289,7 +289,7 @@ static const struct sof_intel_dsp_desc byt_chip_info = { }; /* cherrytrail and braswell ops */ -static struct snd_sof_dsp_ops sof_cht_ops = { +static const struct snd_sof_dsp_ops sof_cht_ops = { /* device init */ .probe = byt_acpi_probe, .remove = byt_remove, -- 2.34.1