From patchwork Mon Apr 29 11:48:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13646704 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 60094C04FFE for ; Mon, 29 Apr 2024 11:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eYiGNKQSxoYVqPgPj6TOF5AfAm2tqLQeIyYeMJdFB/0=; b=4+p3cCjTtKav85 +LYJGHicqqjde4ZR3P9C/vDcnsb2UbTc9D71lxcQj029BumQFGNpEdA/G6cSO7ZLBCE+uiSt5f2vp frPmQB61cTiQy1ugl41/8O8k+6hJcSZDWehe1GMk+L5aGxjNeZbmUBxQpudtr1er1HRZI5UBSA20Z F9Oql1CnIc1sQXAqdyBJpP7U8LhN1o8RUbPNS4w8hjPbqR0ypGiA9XxrHau3HTgtrJ8SbOMEODs+A vNq9MiP4rjZVl+0Glntytmwb3hvc36gVTXFZGqFi5iLGz7FhXygHXs1iZetR/D2xGT2UrKj1TEr8G 7xhChYuYLoShVcmdeoOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1PVf-00000002WHi-1Xqd; Mon, 29 Apr 2024 11:49:27 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1PVN-00000002W52-46VC for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 11:49:12 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-572250b7704so4441703a12.2 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=lists.infradead.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=cHsxIMBWqMX/fWX72CoJmH7hx1dTH4+LHGKDEEMrQf0kgIFMW0mRo969/nYO0FDz5s 0+7FwyRQoVplAZri8KmX+x+U9jjKNBn/KTokTtOTev6zQXjRzB4/ldJNo3F9EAf4QTEh acdTmljaTKr8LfbY4VsWQ9hrfrghaDZonvuhC14WPDmW2iNe6KGxY9haYOX+a8MsjupR 3xyL8+R1usvIMY8ZOzw7ISw7IxWMRIJzTgGRBEy0LATTTIdIRc8oDtGoNKtTVwHCq57S B5VgsgwqISGaekep79HiVxXrFlu8Q+rTRArWdfrM5SFQLornpJ9N0tOWUyK2CX4Ii6gW XW3A== 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=Q12EOpM6TmCLVKp4g/pV2IYjxMgk5n0niAVvkMLQA0WKiCLObfh2l3FYJNNk9f54BI a2+J2SphVpj4wk3OA551kVfIjqn8d05h/V4Qot16CP93lR94szqzcEoJNgJnq95+D8iI Bmnnu/QbMyN/lkGEYVYyXUEsezcXTCqihN1m++LTFA+ZvSLqHMgQE1TAeHzrLEs0UuOk a2D9IovnB8Mb0rPbijIecC3JbYSDVlEkUqCD2IK7xGu6qQTAUWQs59qmWFJ1JnGZw4fo Y1Q3JxufK7XNJIqtRnWqD+Gkcw9nD+PYv2mUjTQZRiWwssUK5T/GQU1B+OMGUKJENq5Y f0DA== X-Forwarded-Encrypted: i=1; AJvYcCUI8rE6Z18/URAwjPG5iHaUSUW4NXQ8sHMN5Jd+ZjQ86i+Ixjgo1HVKZuosc2xRyX6OTW4rpD9E1zJFfS8L+V1a9bqf+EmAVOO7dzkbBj46brbrOFI= X-Gm-Message-State: AOJu0Yz7o6w640A0NGchmuL0o/z+/JOcb4K3QahBolswoBKYcObX2k6d lLSWlT9L2Rqm8Ur09caeFCKrUvq744xVgX8w29kydJ1K/F43jdLIZ0EuxxZlzmY= X-Google-Smtp-Source: AGHT+IEcZNlFMX0KN5Zv3Mt9V9vUg/Vy8Fa9KRdDd7Hab4D4q7tKY2rb228nXG1TnPQpT2jd9cvgNw== 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 MIME-Version: 1.0 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_044910_058290_DCEA80D9 X-CRM114-Status: GOOD ( 13.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 |