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: 13646698 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 41EC5C4345F for ; Mon, 29 Apr 2024 11:49:21 +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=ECKJyQfhZe2L1SEBGI4m0IDpZAPshOqnF+XhM9N36lc=; b=QP1z4op6JGkc6w o6vnAlX6VQamdcvrAdOh9Fnr/+MZ0KaKIjsFUq1XP0zs1/23WeO3ZmJ0PK+hgBcZkcT2d51bePids SvfzodDjKcUigKjKOGjr3K4v1P2oMQG0GwHq1nA5F93MRGLPX1xuvonLHTiCFmmTvF0V+hiovLcpx ytERfswZJx4ij9t58GbI3eMYSO5ZN5tAdNLSZJ5pKe1FBUpyPTljkEMSmPi2oCNrqqUSlyLMhzngz jAk1uk3GMqFX1AWjuCjHYE6DvcKPd4aJvqjrOOgCECqkaCnleypEsLA7YP9r5KLWhMhdNQw4Sd0WQ CXXZ0ZAR3u0zwNtygSCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1PVT-00000002WB7-34mL; Mon, 29 Apr 2024 11:49:15 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1PVN-00000002W53-2Lhh for linux-amlogic@lists.infradead.org; Mon, 29 Apr 2024 11:49:12 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56e1baf0380so5380220a12.3 for ; Mon, 29 Apr 2024 04:49:08 -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=DhIFIIDk3HsZZgPJh9irBrpM31p2GWYkrj8diHhRvsYG05ieSnqDSksNwjBAhs8N/m /+HCst2GIMj9K7l+Zz8lZOrHDSiw+341Qmg3czidB4S9Q7onADz4wV5Mj2oplStIxtPc P4HEAhstmDLJynDC8bvpfZq1+v8qXtzXzjtHj9dkY+nivSJoY/6lcsiZHSdi188rcO8T FLbHOqc3f4hVtI4Td2jKy7p9YUUAjUNduaicEecbXzt6lyKv6mzmjOb0fhtQc+XFMDB9 kuK3gKQZ5mKfa32RiMzUC717R917yxKTpBc3PhYprxXPTxqVSMZmm+UQ6MjNsh3y2McD G0Dg== X-Forwarded-Encrypted: i=1; AJvYcCX9ueBa3zr0Wk0MuGSxf+qyf0Qw6wHcYakZmoLpjolw3knxcs6B4MBum7KH0Z2eSQ84nrh15n9G7P7h1Z3BEHmaFhYWzmVR3OfN0rY0wyjOOoA= X-Gm-Message-State: AOJu0Yy7r7iKmlBK6AtKiGfGBNWHq7YIzTkJT7aPHqm20e36xZVZH8X1 AfUlYgbaaPjo8cPjHfiNox1F6C89viNlpUuO6H8Ux8q01vMdQCWrrAk80adjTI4= 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_044909_677399_1A6CDFE7 X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=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 |