Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1298599lqa; Mon, 29 Apr 2024 04:49:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTm9zSl4g3zGwSy3MfXwNExaKW3bjok1+rvOwBCUMCY1tmGuhyg+d60IzXpDaf+x73XrNk2gsN9hMcSwDDEuAcuZF6Fw1WfzxXth4tsQ== X-Google-Smtp-Source: AGHT+IGeOf5rranJjpdaEslseOihK3AMitixMqaEI7OKtqbGQ6fJVRxZDhnMbnYXr62Xw/tL2xjf X-Received: by 2002:a05:6512:3a6:b0:51d:8b86:6588 with SMTP id v6-20020a05651203a600b0051d8b866588mr1956051lfp.0.1714391373279; Mon, 29 Apr 2024 04:49:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714391373; cv=pass; d=google.com; s=arc-20160816; b=pUJVjzTBSzDznObXATppzbfLLyb+NHF2JJO1AUdzZyhIvfKxf5qvobBqoKm9TPSvws CdyfBCsdaAYOtuyuHBYjbiebZ4T6wE8qFLeg0IGHZWs9biEwA4OI0bekjbDA7J6/CmKD AlDlsw/k2v0PxdUGiw2OBxdQpyUpfGDxVOdvQO9XCKfb26s8XaiJSH5rMb9tvdCv5rG0 FhwrTxvtV79GRJdbuyoGCLKbtn8J3FhmgY7y0VyBbTk5TOWYlRy5KziC1wKhc6yHRXMS /htAzBTGivBPmm3nlpUMLJ13mo8PIofYm+vDdmbP5CJImgw6EQmACD32rnfefwSE8Bzu UqHg== 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=IbYwH1iwfsZOTjLTYa1sxRyjdfJ65pOFz+5ojKjybfY=; fh=AlWO1O/b1mYP0BhMGPr9pEMli7UqLVoWgT9QUznXh2A=; b=l0VVEY0JxKc9RO9+NJ8FeennRJyzalaW4AJfxKGjtYRrDR1X7+K3Z74/Jt8j4pv9bY a9uSgNeG2Vttc3j6rGD5f/YjNcb25MrXl5r1gBwmjPnzddXMAaNQ5i1r0LJZ2aj5JBZM uKEn+TT+beAFYXsPrsxdNaaFHpsc6rc0/t/BbCzQ77gQz/p8iMO7aQMqpHx0Bs9gfBsJ 0nTJO4XwYGPpi1MZ30eOW8BNAji1DkQvJLercT5pbpKEDD4cXC2M0ZQfryHbw4m4rnBo Yg5+qYcnnGo1dSAtwOaKegFEWcCxU2OaB8me/INf9uvoGOfsMLa7BVRIMVjSPX4akJ9F CJqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W1mx36dB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-162175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u11-20020a1709060b0b00b00a58dd4a8932si3052429ejg.623.2024.04.29.04.49.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 04:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W1mx36dB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-162175-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 CDEEB1F20F91 for ; Mon, 29 Apr 2024 11:49:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7088C52F6B; Mon, 29 Apr 2024 11:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W1mx36dB" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02AD94D583 for ; Mon, 29 Apr 2024 11:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714391349; cv=none; b=UUQ75Tarn+ur53mLPu8BOBxEnC5py6qFCVb8OWuT3PnRR36dVvzFEDhe4xkl1Z4sZChN2wTYgqXt5TBIZmJcEONOSmIdYv+RMlwU4R1Wyazl6BuK9r5eOW29zwXBucV9bAx7bD+OEVJ8rp8siHIz4IwVhBIoFpNEpBaIXCU7v2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714391349; c=relaxed/simple; bh=07XNlzH+Om30NPL+5RgZatpoAnoy8SZw09iGVLs1Juw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FtCI10yMFaFa4mH0NkOpNJtdpPjBs8NZCn63tPbCR7oS6hLhks2j59brRa3AQQuTmqHedJWngn94/xlE2yMqhX0yPttuDbv1ZAvzNGlDTMNNj37qzb/Fy7U89Lh2g0PKA5eW5SO3cFoujt52KAet9Rn/83qaAPmyKaKQTGbx02U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=W1mx36dB; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-56e47843cc7so4280066a12.0 for ; Mon, 29 Apr 2024 04:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714391346; x=1714996146; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=IbYwH1iwfsZOTjLTYa1sxRyjdfJ65pOFz+5ojKjybfY=; b=W1mx36dBCk7AftFF3CqaZSWTMkKbhD5HxiG3O7zbmz1kQ+41I1cVBr4Eiyz5ebmwOn VRNQhEKC1Bx/J1R2M2MhAWFCQ7RPKqD5lmVzKl/WhFQIaMbJJYof8X56X/ZXnpZMBb3R lBRvN66azGjGoB+hIS6d9HFcyYTCNmHbR+pZAsz7T+zalJjaG44GuQ0jAVYeutdY6TEP bptXeI5WUGIiWMV5wyPqUNXOS3WDjveZTeEG3eSjIYm4iNwIxkWOUn83zPtfkFwjWwK6 fWLQNOtC5LVSpTa79mUNKO/7NKFH6tKHFqQZM3+9qzI4rDTyvakYOtzOx70NrobRFKtc M7Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714391346; x=1714996146; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IbYwH1iwfsZOTjLTYa1sxRyjdfJ65pOFz+5ojKjybfY=; b=WEHxfrfoIvUpmRlygzBFAk34Tgjv7kxnSH4PuhmSVbtg25cBuOJB7XCv9IuQgmGtVi FgP6ETz1WBntyKeEkN20AGM5ADkNVc1Cy4otpLxmr9zn/o5scTVm3dSHn+A8F5jRUrcI Do67wyWVOFjZGS68WL0eG0D161d7kzYB72EyEhGS5E12K74JSRIMBlSgXwGcfsMxmPO1 lxkIySMMRSXv/ss28BXru4ifcMi07rjALzRIasyGFjog/s9s5pIuOMf7MAL0NxiuAhHN EsgyLvjezbQBXr3AUEexuI9qLgp3eChgGE4T3Oj0cg5o7vwiXdu23eY6hAu6Yz5vA5kz 4lCQ== X-Forwarded-Encrypted: i=1; AJvYcCVuHY0/t6mYxoVbRjj4k/PJtv+tMD4s3bzdkxP762CgB/g7kR26JjqVeEK2DMBpQdXAMESr16cXcixIH4IkWCkfxkii9iEd3L+dckJr X-Gm-Message-State: AOJu0Ywu5Grwhj8QRou2FlHzElNiAHANbNR8YgPiYxyhVRdlGsceEYfQ DfvdEFSvHrTTIghiya6TvIEvEJ7baQ3rZXlZJEufhWulr4oUL0Xb2WelZisUVV4= X-Received: by 2002:a05:6402:3487:b0:572:689f:638a with SMTP id v7-20020a056402348700b00572689f638amr4800369edc.17.1714391346466; Mon, 29 Apr 2024 04:49:06 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id y43-20020a50bb2e000000b0057000a2cb5bsm13549651ede.18.2024.04.29.04.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 04:49:05 -0700 (PDT) From: Krzysztof Kozlowski Date: Mon, 29 Apr 2024 13:48:47 +0200 Subject: [PATCH 2/4] ASoC: fsl: Constify static snd_pcm_hardware 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: <20240429-n-asoc-const-snd-pcm-hardware-v1-2-c6ce60989834@linaro.org> References: <20240429-n-asoc-const-snd-pcm-hardware-v1-0-c6ce60989834@linaro.org> In-Reply-To: <20240429-n-asoc-const-snd-pcm-hardware-v1-0-c6ce60989834@linaro.org> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Jerome Brunet , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Kunihiko Hayashi , Masami Hiramatsu Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=829; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=07XNlzH+Om30NPL+5RgZatpoAnoy8SZw09iGVLs1Juw=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmL4kklslopCBSQVS24U7RLVNAErQ+RmdZW+cnY 2vP6DhzCt2JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZi+JJAAKCRDBN2bmhouD 1/OhD/9OuP5DVUEzlKoiXyRfzWiPWETGaurZlgqXePCKIhR7Aw4zgQNkrl7olw7V0PXD3AG+lxB kQuxk8MGNdzM5gRQ5QvitxieqGs7Q6wB65JF4E6nljMW38QLNdX8xK+9AWe99iF6Y3Ljii/Sa9d QmF2lRiKOifVy5b84Ro2jZFhzL2IRk6zPR+kAAkHQmlxNfAqjGJWJwRF/XQG2azeaVobrL7Z69t Wjv6ACChJ4RMAH1iMe6Rm9khR3AByTKQSi6OEgO9pC8lsiGxjucEMfRmQ+naf/VSjjcVdBfgaaG Q8eTW2nPWJFZoF4tuDX++42H/5gf4cMxpgTQ4b4rRU4czeBYwRLBULJOjAWCXps0jxBBniD35Rw aYXsnzH27A4T1myauv8wnF55tdbunLfRlYFeXh2/vGe09r8v1gY0ZsmXKw0A+GE7Q7UHYzTHU3c 0iOiLeTEzwX5sjIlF7NAhYxIhvDLWQdOBOeRioCCqUk2retxoDCP7ytx55nRYTFY7Y7/PQlmLy/ D0KFHsf7XdM7Q+FzJePSXI+QPgtGwuWIP5LkO7YQ2YwmQwUyNc00Iwo9H+JnB1acl7IU0c/nC/a y2Q3MIQjM8Gocdd/6jN78rhB/DEqkZppZX1UMVkC88/l0ZD2sNPIV0++IJ5qJ4rRR3c4oGObRaJ TcPObSVlxia1CEQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Static 'struct snd_pcm_hardware' is not modified by the driver and its copy is passed to the core, so it can be made const for increased code safety. Signed-off-by: Krzysztof Kozlowski --- sound/soc/fsl/imx-pcm-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index b84d1dfddba2..128728b65a3a 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -16,7 +16,7 @@ #include "fsl_rpmsg.h" #include "imx-pcm-rpmsg.h" -static struct snd_pcm_hardware imx_rpmsg_pcm_hardware = { +static const struct snd_pcm_hardware imx_rpmsg_pcm_hardware = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BATCH | -- 2.43.0