Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1298775lqa; Mon, 29 Apr 2024 04:50:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0y6JjTrCUAeyBZRq3oLgwo66xC4Bq3WYZE9UoYhYqsK1AcOT/+B45EZptsKJQ/gbzwuauT2xfyYBGdxTAnZfq0dYVq5nMDFuDL61YPQ== X-Google-Smtp-Source: AGHT+IHordUW5eRXiKj76xmg6V9oNnvwr3tBRUclS7lEGmO/IeBO6v1YRn0T/YqTC0GAhkbXXa12 X-Received: by 2002:a05:6122:32c1:b0:4d3:398f:8633 with SMTP id ck1-20020a05612232c100b004d3398f8633mr11802309vkb.10.1714391401887; Mon, 29 Apr 2024 04:50:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714391401; cv=pass; d=google.com; s=arc-20160816; b=QX5GhKOGOBUNPVHNvIWywOg8mS+c53K1wM9N2QETmqq7UoBcJeCi+NDgVNB7GScUR7 leipX0ZGXPD+gpe0w8utqxbOVDFxg7wxzqrvc637ZJU1u6/aREqfIGge7UisbBPyuTEc BkXCim2iWR8svRYgS3mDnCxikD9luyu6hpZOlxtxXjx5zfTND2w7BjkggJ0pF+K98SV7 SB40FZ3izd+SmfCQ5G7551xa4OEwKtSg9kWkd242ey7cCCiOwpnin8FI1ceP/iC6PD/l q4+B9aXuSJir81wTk0uQ5qUMuLv7nUFa2TNgqgOLHpSdm3HfNqYmxUhHcdNEYgMmn2vr UWMg== 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=W2ZUcqC+torIBGZl2jfKZ8j0WRKINo9TI5z6SJwgmg4=; fh=RQhdF/GYzuS6dnEhEBwRQAz8ZQ8M11RFBanbu851Oes=; b=iuxuFCY6P/d6HyFDSA6hI0c7+n0qcB7EqPHcZ5md6Bqn3uRkef+bC0Xplf+8wkE4J2 cRLSRx9JxUW2zhj7r684VqbUFfy7XgnJVARRpT+vtGcN9ODv+afheCBVwhd2dxOPdnF4 QmJ7PUdwfkHJykDt4GXLMnl8xIbhaqMG1Zo20N/vb2m8zmKj4VCjA+qo5PufgD+TEgor q8q53yYmanPDDHjLaMeukiW7MJFn10KWXlcV9XqU0ZpPkF7Askk52OkfDOL2y17CuSvZ rNlVCYvCbzGaOp7LxYLJDVeZencJUel65e8UnlJZoOH3eRk12fGfkByBBGCrfT2zwnQJ T0gQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVBJaFtB; 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-162177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162177-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c29-20020a05620a269d00b00790946148dasi12853936qkp.475.2024.04.29.04.50.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 04:50:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CVBJaFtB; 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-162177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162177-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8CDB61C21223 for ; Mon, 29 Apr 2024 11:50:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFAAF537FA; Mon, 29 Apr 2024 11:49:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CVBJaFtB" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 8A2C8524C3 for ; Mon, 29 Apr 2024 11:49:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714391353; cv=none; b=gFGSqhu+8i2TAbQr6NVAS9FgK3iuJH4jgPWqJxQi0wK8+FY3joqbLwRRQUrKntccmWCmcp46pnfPFB58z9/ab/OLIwLlVe1zUY3LnRYPWrMQZQ5dtTABAE/U+1tMor93KR3DRQ3j0E0lKWVZ9gV+WvH3p6tGm/RaVoWSyKrekfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714391353; c=relaxed/simple; bh=gich1JRWEld7frP5eaWjzjWGBaaM+RGhkK+WPH3Hgf4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cg03P/FPv5W/30UWAkmJalkfxQazST3fZCUT8391CS7eiv+UsnuHJdxdj6dH7GPyjQ4l+aNHRe3jrpLqOlhzDQOJIdics0hymRly2e3oK1cxhkI/dY3xG1CHAzfdEasQ2J/BVmWqNKteCDYtgMx9YSApi6/OenR5BVCcyE6A6nw= 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=CVBJaFtB; arc=none smtp.client-ip=209.85.208.41 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-f41.google.com with SMTP id 4fb4d7f45d1cf-57255e89facso3421866a12.2 for ; Mon, 29 Apr 2024 04:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714391350; x=1714996150; 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=W2ZUcqC+torIBGZl2jfKZ8j0WRKINo9TI5z6SJwgmg4=; b=CVBJaFtBROdKFgdm+fNtW8Drf/i7rmhkhafgV367OkoI7S/5y7X7+MYE1BNp/ReM0M EqmQLuHd/OT5yBWwdlUQn6BJM3R+mVB3XSfIzxcsRt3UX5e3Ks/YFqPryu2Wvqn/XzSV TooD49IdWiu3Jrm+IJ0KPSrNsPiS+bIGr+w/db6oz9nqIIsdnNAFVH4S+sW71537CMXK luoJwPCqrWFZlXecDwdJLJFHwTZfBzIh0kNa98nv2Y6xBiBvrROT5lqGl9v8xZ8QYXAi hQqWzFbsM4d0qO+T4emzLUiCVWIz0pbPj0YCjCn9oeGidcL7XKKFID42jRar/k7fYUox VqOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714391350; x=1714996150; 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=W2ZUcqC+torIBGZl2jfKZ8j0WRKINo9TI5z6SJwgmg4=; b=fC4n6irjmF1CDJHb/kA99eV+P7x76GqpdP9pzsMOX44j6FTMz1qKO32Or2mKG1fkZE BCaIg/xuzat57D5zlJjKa2iTuMG89zCq7yA6NOySJ6nMvopL7NBGh6wUE4JRS1Fp9nqa Xg1m4dzFejbUssi48hmTJdv7aEh8FmIIxvmuy/SfZWu1jBY7AEoYmOzs7dn04NJfSwNm c2qc+R13kn4mMRP2GgEZBCIVoP8r94jK8fvMqxHEwEr+RG2YSW0iTQRcF6xnHUAmo9y5 ZMuTJPgrNiDAiNHp3ywGLBSi9T4CprwjpharuoATiSdQD2YkXYilQIOJwnnlrnL3I9EE Qd1g== X-Forwarded-Encrypted: i=1; AJvYcCX1olIYxoC+iKcPLxYB3gRMXjkxuez9bUgdgbeyMKEGqwxAGiL5i2OpOlWCN85G0hBqg21eJIWigV0LGANcYjUgfeKHkqziB+ZOqHGF X-Gm-Message-State: AOJu0Yz419Yv1BRmbegQjgNw4XlYHN5HraG8qHhB17l0rjvvfr3ETWLA HqE5FW3tNiXG/ILtZu9eAxWny5w9WpSFAwq3stSYmppbMuse+ADK5QSKgE12LXF3w42gU4cdNKk v6W8= X-Received: by 2002:a50:8ac7:0:b0:56e:2452:f867 with SMTP id k7-20020a508ac7000000b0056e2452f867mr4484403edk.37.1714391349889; Mon, 29 Apr 2024 04:49:09 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 04:49:09 -0700 (PDT) From: Krzysztof Kozlowski Date: Mon, 29 Apr 2024 13:48:49 +0200 Subject: [PATCH 4/4] ASoC: uniphier: 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-4-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=778; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=gich1JRWEld7frP5eaWjzjWGBaaM+RGhkK+WPH3Hgf4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmL4km9txiF1WGA7UWw3CfsFA6VB2MZtNJU+MOU FKjqCQu/4qJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZi+JJgAKCRDBN2bmhouD 16ccD/9l4cVT56DbQ4s528ydZBWtzc/oqXGu1ZQbNITz14ONADT4bPlxkanL2O0tMltrVTrFj8N yCn7wufeyWdt6hobAeT2jnVzkG4kPP2xuFUJiw0pKpgPViDQYQQvypq31/wxF5wzMSJkrW/UClZ bBWRtRqsGDuBrUvJ+KQT4y0YzBjxTyieyo0MR2V6ctFh3XKFCW31u2lJSH7xSxiRcyZCeFVyLlC I3C0yBX1ofQrBohBO/sGp1xIkY542Vyyb0oYn2HCEiuCgP+2aJz9Uzd5nzG2D8ifsfCZDe1W2fJ BBo+ylftctAuKNbBXptE6DiZ/sueGCmNlIOLx1y4jtFbODWgFIG3M8WIB4tB3LimjuI00JTUfdJ EXptaN0tyS1nlKORVjO5N2bDN4aaRB+nVEKlcVvOlSMWicMUHepZnzKDP34A+zXPSaKHDyLHiE6 IaPAkr6rUUVwEK/bI6iC/VKCp4A9TaeQKOmbab41FPXLFr7kS8Vy1KNyrpgxyPSRSQsSD4KjYPp 4RUTHpCPh8X6nbbbHv2nUUnpwFIGATLbI2x8gsubcs13KPkg57nn3JNnaNhEcr88Vl/3vU652O5 7AbhSRpcdk7w/Zb9QhAm45Osql//C85WJu45trFQ7Ntpn15eubGiD1sld2555lrF+y4UGAHWksS xblzapxOFjAtX0g== 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/uniphier/aio-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/uniphier/aio-dma.c b/sound/soc/uniphier/aio-dma.c index fe272befd967..265d61723e99 100644 --- a/sound/soc/uniphier/aio-dma.c +++ b/sound/soc/uniphier/aio-dma.c @@ -14,7 +14,7 @@ #include "aio.h" -static struct snd_pcm_hardware uniphier_aiodma_hw = { +static const struct snd_pcm_hardware uniphier_aiodma_hw = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED, -- 2.43.0