From patchwork Wed Jul 3 16:20:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 811466 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 DBA57C3DA41 for ; Tue, 9 Jul 2024 15:50:29 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 68594FAA; Tue, 9 Jul 2024 17:50:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 68594FAA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540226; bh=wWw29OtvmtrGUfN54CyphDq2f7EZzv4CB36kBIg/V9w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=pANqt7gUo0v1P3YvdInhJHYrfRTKxrWaOPVqHhBtf5580I9XWFYxiG+G4zsAniJ9D 5ZmBPq5RWM1ZMo/v1QJWyu9iyoOP/jkHsJYWmMYa0oO8Ls0oq337DPPvfXe7scWgVZ 4DOiB6mzSRs3BRjgknE6g3yNf3zqTEQZ1yU2Iclc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9E1B8F805E2; Tue, 9 Jul 2024 17:48:43 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A5949F805CA; Tue, 9 Jul 2024 17:48:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 41D28F8013D; Wed, 3 Jul 2024 18:21:17 +0200 (CEST) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8828CF8013D for ; Wed, 3 Jul 2024 18:21:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8828CF8013D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=dm16fdMV Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a72517e6225so655980966b.0 for ; Wed, 03 Jul 2024 09:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023674; x=1720628474; darn=alsa-project.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=nwodvvh/HkWOmrsQs4/edOtdukbP3CJ9J4qzQghO6GU=; b=dm16fdMVD3KGtRFV9dtpA4gdrvd8ioTczz73HQb210k9CJx3UkA9XuZUQsAjE3mjYc PhVaC3CohIUczC0BFFrwSDT629A3LDfOPb7s7BZDLqDKj+mSMBr6j982NHM8nDQamGc/ 8K+S1mbD8HTaI6EPEBzqLYH6a8SAwUpLpcZgn8rFHgpv3eahxowxBvE6GCKdo9tXiS+y 6CNswSmGUs4FJxSJ+F3CCF/oAJTjvba7EzRA8xNvlj8fBp7J8ae/U6aWAILFFJGjtm7g HMtjmReppBbRhxWuEtaMvtfG8bSVMcnKjg1k2kWdBkBAVo1H0psQOsnMLgVAFnqeyPdK 7cvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023674; x=1720628474; 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=nwodvvh/HkWOmrsQs4/edOtdukbP3CJ9J4qzQghO6GU=; b=URqfMlu+CF1qIC4StAIIFWwHiu8Tm9LcQo5Yz3pZ76m7d9W6ekkyLD+lk0Qh7D0vPk xjeu+f8BBJuMXgJMD8g7V2f6z239ZUsrA5Q39WFPtkAOJBWvJMEsR2N0KwTwrYXH/3Fe FawRk/GTxF5HTga8TNvInkyf3K4I1TAZOb2FRpeR8C0dAzfpBOZ2VkOg6LtoA2NOne2f KzQeBjS/5dE9aWN3EFeisHQAD5HNl8OdD0RYiTtYMCWlr+SgX+p9bewaFn6GXGlXejDX 30iPJGzKbe3MKByD19BiKCNt2w/UXniZiV7BMc8avTyd5Fuiof1mO8YcjJqv9kgnSjmP KayQ== X-Gm-Message-State: AOJu0Ywve3x6YPf7HclFt4vWXTcuM4rdvyrjry/QdWMwkrgj62gwXnYD m8gb0Lif34kCnosFl5N5Xi1zBAgGikK5nb+GMIecXzojEFrOryct X-Google-Smtp-Source: AGHT+IHZgM3bWbhlAUMEeCiCQOK2JuYz8183C2SO08iuwK8/gvUGlFPUko6OaORXVGEjRIaT4kSWxw== X-Received: by 2002:a17:907:988:b0:a6f:4fc8:2658 with SMTP id a640c23a62f3a-a751440b8eamr867471466b.14.1720023673759; Wed, 03 Jul 2024 09:21:13 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:13 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:20:57 +0200 Subject: [PATCH 1/9] ASoC: cs35l34: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-1-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=725; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=wWw29OtvmtrGUfN54CyphDq2f7EZzv4CB36kBIg/V9w=; b=dEdb0+rv67nGozH1LMpVrMHNNCAfY9i3pohpSZx11pxDJSu5DC06RTAYQiL2lHIhckxs0DcTk ImmrF22ZRNBATNS3dWN+xlOxzoswRH9gXSdryprPDOSQeQsMkpgclNq X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: R24RLY2Z4WMXJBB7XZ6ESYJWZYPZYTY6 X-Message-ID-Hash: R24RLY2Z4WMXJBB7XZ6ESYJWZYPZYTY6 X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:28 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `cs35l34_regmap` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/cs35l34.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c index 4c517231d765..e63a518e3b8e 100644 --- a/sound/soc/codecs/cs35l34.c +++ b/sound/soc/codecs/cs35l34.c @@ -787,7 +787,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l34 = { .endianness = 1, }; -static struct regmap_config cs35l34_regmap = { +static const struct regmap_config cs35l34_regmap = { .reg_bits = 8, .val_bits = 8, From patchwork Wed Jul 3 16:20:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 811465 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 F24FCC3DA47 for ; Tue, 9 Jul 2024 15:50:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3E751EBE; Tue, 9 Jul 2024 17:50:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3E751EBE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540244; bh=NwcjSKqDE0VK2dDbdmqM/92kBglAO28ukjiQXm09KUU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=cQHhKNf9AHhEtdikd3PjS5AENrPn57pgNhToJL6DF2aIWXFIAw6fAQzCnYgxu0seE AURejsf7KaBYLsmEw4pLcsd/Dpyn1G3kRJbj4HVAaaaN3dW19JPLs8gVOUy2BT3QXc og+1e3dJmRjfwoA2HCw/IqTObfyslmJY6Ja9VQ/c= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 475EBF806C5; Tue, 9 Jul 2024 17:48:44 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E7208F806B8; Tue, 9 Jul 2024 17:48:43 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DDDF4F8025E; Wed, 3 Jul 2024 18:21:17 +0200 (CEST) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2F120F800FE for ; Wed, 3 Jul 2024 18:21:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2F120F800FE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=OGyDHcac Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-57cc1c00ba6so4139065a12.1 for ; Wed, 03 Jul 2024 09:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023675; x=1720628475; darn=alsa-project.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=3hjyRNvMZXMYBEm5NP3z8RmRqPF9CkIDkfVc08IOZB8=; b=OGyDHcacdJiY0gCYwGfCPC3yuD7g+b24II8SLZH/RBvK+HkzyLBkJe0EU8f4H/UYqr izy+0LwIIDC9FS0DaIgqkjJ37ud4VYD88LvbzvXxjely8YjS5jtUno3K5WaN4vKiCQE9 MZGZej9kzt6LQCxQPwjEBImQMavbyr45k4ItE64b1oBmM6duCuW8767udEvkAz6OrerL paD4SV2GcM3mSPLF/18d9VuLC2ljXEd4hZc74trFyyl9JLx+FQDDYIbEIPkgFZFeBEK9 sqiPCOUga7JVOIaSQibdS9xDcnk1k0Vz/UWy7PB7ciTUdRY5m562r7POnzw29I4Ywr3K 5Q+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023675; x=1720628475; 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=3hjyRNvMZXMYBEm5NP3z8RmRqPF9CkIDkfVc08IOZB8=; b=mLEKQSXOQwTTBF3fbHc/LfUVqVxELsKF8WcrbqDPy3MSHbI7i/RQpZxWlebFGp4qPp nP0h7P1P39ETISaVCRTl49dCY0GTqZBLpf9yb0z9lOkb4lmBigbZyFq+b7GMJ5nMg3mw 4NBAe9deEPfGWZD1OBx7eIRNqtXsIRevh/ol0BywG9GpCob+HZLQZLNQRWQXfpFsLi+g aGALi+3c0b6Bh2yDVm6ZPeisqntupfjby7pQ2RNaEVl7iOnymfCv4SXgBVvEvOs5BLwb FNpaQfni4ELRXcdoSY8eCDmMztfqikfvV7lnc9qzLQiP1aK+tf/tsYHIA1NdgORx1GkF mz9w== X-Gm-Message-State: AOJu0YxlsWd3LQKWgcQiK5O1ZBTgx8ZNxzjVJ3ItzhwRKcRGndgwAinB D7yY5LTGqo1c7W15pE5cCrZ29OgjMImNro56SMVhXg/ETobKcird3WZajXYE X-Google-Smtp-Source: AGHT+IFOgOBRrS9IUtn6qtfyrq5vCvZtNpLMPWCmi322966ijwSGZ4lwhvUtQ+TzJoBprglknSsVuA== X-Received: by 2002:a17:906:455a:b0:a77:b249:7845 with SMTP id a640c23a62f3a-a77b24978dfmr6398866b.68.1720023675011; Wed, 03 Jul 2024 09:21:15 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:14 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:20:58 +0200 Subject: [PATCH 2/9] ASoC: cs35l35: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-2-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=727; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=NwcjSKqDE0VK2dDbdmqM/92kBglAO28ukjiQXm09KUU=; b=qRGQKMbhjYvNJI99p/tB7KMd8jCtxTve1uuNNnquwCevb6IQukXQIFf3b4dH2atJCTqzqRdZG i9gkyQUG0ToAAElojBWoubl2XVu3HmlbhADGvlciUCcyvbujH5dzuD8 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: ZJEAAUOXKGVKPYUOR7F4WQ7HXBOSYWRO X-Message-ID-Hash: ZJEAAUOXKGVKPYUOR7F4WQ7HXBOSYWRO X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:36 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `cs35l35_regmap` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/cs35l35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c index c39b3cfe9574..7a01b1d9fc9d 100644 --- a/sound/soc/codecs/cs35l35.c +++ b/sound/soc/codecs/cs35l35.c @@ -1086,7 +1086,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l35 = { .endianness = 1, }; -static struct regmap_config cs35l35_regmap = { +static const struct regmap_config cs35l35_regmap = { .reg_bits = 8, .val_bits = 8, From patchwork Wed Jul 3 16:20:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 812644 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 817ECC3DA41 for ; Tue, 9 Jul 2024 15:51:15 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 742D41919; Tue, 9 Jul 2024 17:51:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 742D41919 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540273; bh=j5sPCwhhCviCU7Vu2ABzpjqggf1PnHdW58kdo9eadZQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=h3ZJLDujlGhNGmTB8y0xIFF1AsIDwWkIaM/5rPVFyFu2yODQa839ABH61/nO05GeJ ZaPyGk1+2KsD9BXwTSM/KH+jb1Knu56iOkue3JtJN4JSuYPiTWYV54AkUxbdu14HqI c6ZNuaYF5oyWWIF0+ha76ZLffAwB7Iv1yni9ARmA= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1CE45F806E8; Tue, 9 Jul 2024 17:48:52 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2A1CCF80608; Tue, 9 Jul 2024 17:48:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4725DF80272; Wed, 3 Jul 2024 18:21:20 +0200 (CEST) Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8C5BAF8013D for ; Wed, 3 Jul 2024 18:21:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8C5BAF8013D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=URAEfCMi Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2ec58040f39so54051621fa.2 for ; Wed, 03 Jul 2024 09:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023677; x=1720628477; darn=alsa-project.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=pIxz4BhRdDbBTxy1ZxI+3NgFm2AiBBocYllJB6osFnM=; b=URAEfCMiEN0eYr2I2EYcjlgIv1mLfFsWkqGFkaokGxHTCZEwsX2t4snVCdYwC94xvb EU0rFJIpqlaRPhIkLnjnk2a4BYUf4uFSDRONnhMllX6vK9USof6X8qZsz9L8J5pkaRfb 0V7uIxfcr0SmWFd15R0iy5LGfrk2n9Cfht7qwf1WF8NX2t7Oeq9bSyIiiN+RTbFPQCDa oOmQHqNH219aKwNnvZ21B+nu1Db5wDMtI+JgpSM3a5wOgXt/ka8o0vEqMkVRXPMtTq/y U0TdeJUYhECF4ve/H1+j1NY4H9IVOgl45y1BfR08qR2fez2xr3LONYk0IhaxxgZvWeAQ gIGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023677; x=1720628477; 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=pIxz4BhRdDbBTxy1ZxI+3NgFm2AiBBocYllJB6osFnM=; b=qrnxep5jS4I3Eo1rS8U9UM4MUbcE3g5vKlcm31I0R7S1PijW371bIFaAUTizuBWbQX ftcwfjo3Iob93Jv53QTu2LGDG/pib8rrTEBKHedBJlZyaPwPPRjZyxfmGWavTFLweE+W LiLFu9l0ze9j91T5UIkVUhNT62m5E/wn+/e9Puw3yHhw1Cd6+jV9FEs4/LSnrz7EDUuJ L0P5bKjGtHIVf/jFMu3z8+XVHnqdegyRnWJ18dNuUYeQIlrYK71iT9i3RM1FHdICk/ia cHdnStITa4/In/zMUrke4+N/O3Xvxh1aBTXSaNLUgll2TpBIuiGjNurtTxJsetpJI5Es ssfA== X-Gm-Message-State: AOJu0YxjTXt07SUq+rOX3BOVdJpupF+hWthVTNRwbac7x1cwPxDwwcJQ Dj9lhItUKwMrcorjwlYWGLYFm2rIV5YSd7/fx7I7dlWbRzANUZTS X-Google-Smtp-Source: AGHT+IEg38LI8zSwhtv7gZ81fD0e7zGHYVVoUZhtCGgWIfi7hIcLtYqbuRUPAnd5RKorZBpjTgxyFw== X-Received: by 2002:a05:6512:3c9f:b0:52c:99c9:bef6 with SMTP id 2adb3069b0e04-52e8264bbdfmr9515258e87.7.1720023676559; Wed, 03 Jul 2024 09:21:16 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:16 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:20:59 +0200 Subject: [PATCH 3/9] ASoC: cs35l36: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-3-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=746; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=j5sPCwhhCviCU7Vu2ABzpjqggf1PnHdW58kdo9eadZQ=; b=QhTXFi/FH7gHSBuHri6xDFWv6J6P0NWZ2YOSlyT0AmUqU/Z0xGHKFPmtNFjpBdCtWYKRpbo5r cL6Q5y3doOwD/GzsZgie0nUxIEKD1C41ZTRNLi2UQdUALi3LTT6arMg X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: HTVVTULWHJCMZSSLMF4GVPCUWLIDB7UR X-Message-ID-Hash: HTVVTULWHJCMZSSLMF4GVPCUWLIDB7UR X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:37 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `cs35l36_regmap` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/cs35l36.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l36.c b/sound/soc/codecs/cs35l36.c index bc79990615e8..cbea79bd8980 100644 --- a/sound/soc/codecs/cs35l36.c +++ b/sound/soc/codecs/cs35l36.c @@ -1300,7 +1300,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l36 = { .endianness = 1, }; -static struct regmap_config cs35l36_regmap = { +static const struct regmap_config cs35l36_regmap = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Wed Jul 3 16:21:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 812645 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 D1452C2BD09 for ; Tue, 9 Jul 2024 15:50:44 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 1CDE515FB; Tue, 9 Jul 2024 17:50:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1CDE515FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540243; bh=4sjnkaXwLNp7p5DTjkC6jZAwMMW/qwiVCY05YVLu0yc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=igFE9HrUfN/sYgp43b/xV+wu/WxjJwTjEBRlLSRAL2Z87gaKDGkRXF3upM0/3lCB5 Su1rsTMovcCnQ2ec1bDRvdqim5Ul2vD6eSH6nPg+nXfudMTKKSZs+WyObLOqnN6Y75 HOaWZ/MghQESP0Tv+/ZEIDSwDfxKC8l0jT+0jUwc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id A6C28F8061B; Tue, 9 Jul 2024 17:48:45 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 5A7BFF806C2; Tue, 9 Jul 2024 17:48:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 33AF6F804FC; Wed, 3 Jul 2024 18:21:20 +0200 (CEST) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A25DAF8014C for ; Wed, 3 Jul 2024 18:21:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A25DAF8014C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=cXg++YIA Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a6fe617966fso504877566b.1 for ; Wed, 03 Jul 2024 09:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023678; x=1720628478; darn=alsa-project.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=HSyNvDm6zVDNskeAuatJPuva+eHFR+zlE1Zqp5rhiEk=; b=cXg++YIAP0JEgPgCpmO2E5QRmGfI6kHNLo/Uoiep9kmdrimlDdpagTuWIw11IFoif3 UU+FmAHbfP3wVhFWbhxJxvLwpaNw2xAnIazS2OMI2KpsZxYzHW8XGpTNXeEQdf5budgn sXYzESDMj/Crp9QGB0EbJjOlBfRCnhu8MJMRPdsSLh6Sn83mkrrysXoAVCGjjle3xXtK Ro5D31KH7k9pKtL2Tf/iHk/Y7MtFE/EtngmYmisqd+UgNw5B5bsn6ZThQjYv5ABcpU8Y IBcHkwf5ZE+hT+C/LjLbYvDttp1kGyRNA+66xKBaAGYjHXZslEihVN2KsUqUlC6v3BZB QTPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023678; x=1720628478; 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=HSyNvDm6zVDNskeAuatJPuva+eHFR+zlE1Zqp5rhiEk=; b=PhrM33/oXvGcKxHQShZfiv5V9MxntLkTk8jJIOP6IM2BbjBWKbOamwgDGRJCSXvxtb tv+FgYWOJMhE7SZ36xJBJsrfHETPh/ESXhLhuL7ioUNMZIxT6SzSKhC3lvhUjXLwbgBH PE1h1+nxQ7bX6rJqP+8lOW3r5efwWKhd61R/8wQF2dGZrH9Ayj4+9XmzPiv0poAO7YtG vZl+HODv1opRMt2VzD/xvFTi/BmZBh7/lIEh6CPmRic4kLStONVUSV8f0/9Limr8EIN5 S5klSbFR61P1hhdpF/dbOUfgcTt17PY+hoOgg36o/iGQDIE352OmR+LtHXEr/A/htI6j iqjw== X-Gm-Message-State: AOJu0YxIySogvUtmPbtC05F4sYG6RCswwr6adww+rLg3TPR0GIFJ1QUV Pkb9OUAJ4b6YO21NwXcQQ9l6+FlqENY3cwCjc6L2JOMF8DDHE7lU X-Google-Smtp-Source: AGHT+IHpV6OONoKSXjg7fmv0v4P9t/xb/YGq3hRdnf4TgeAqAi3cLe0CsUSlt5CpfgVGn9qzjXc4Sw== X-Received: by 2002:a17:907:724c:b0:a6c:8b01:3f78 with SMTP id a640c23a62f3a-a75144630ddmr1006920266b.9.1720023677891; Wed, 03 Jul 2024 09:21:17 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:17 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:21:00 +0200 Subject: [PATCH 4/9] ASoC: cs53l30: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-4-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=714; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=4sjnkaXwLNp7p5DTjkC6jZAwMMW/qwiVCY05YVLu0yc=; b=JQkgJLw1miJzjpf5mCChsQHJZ0BOe0MkRMyozKA01N2dFbb36jeC4afQ69b/KKR93UYuvPuKy MKMLpuKq21kC/iZQM1qW5tCvHq16FYDlHoRrDIXYg66TIxHVE7eZiDl X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: JETUXSOTE2RJSYRXDOZAU7U5QYTQL4PW X-Message-ID-Hash: JETUXSOTE2RJSYRXDOZAU7U5QYTQL4PW X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:36 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `cs53l30_regmap` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/cs53l30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index 2ee13d885fdc..bcbaf28a0b2d 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -900,7 +900,7 @@ static const struct snd_soc_component_driver cs53l30_driver = { .endianness = 1, }; -static struct regmap_config cs53l30_regmap = { +static const struct regmap_config cs53l30_regmap = { .reg_bits = 8, .val_bits = 8, From patchwork Wed Jul 3 16:21:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 811464 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 32BB0C3DA41 for ; Tue, 9 Jul 2024 15:51:28 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 15924A4A; Tue, 9 Jul 2024 17:51:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 15924A4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540286; bh=dwpTb/6xnICUSoz81QCz1WdqOCgJoRgxLrJ83df9Lxg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Ss6RuDenNGSYTrYEQotz6LuHsLkOn4HCTf/X4qEqGd40bNU+l8HDu3npP/+ylb6L2 9id5is90hg/VUx2aatZ53fv9Gd0A2b2tZJSzb0ODNI8fitS9Fwc9fDpD7wyBf00FKf MqAvzOKySrjtarfSDdYk1AP5tpwEaoyNOQvsu8aM= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0C095F80752; Tue, 9 Jul 2024 17:48:56 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 8B245F80730; Tue, 9 Jul 2024 17:48:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C1861F8014C; Wed, 3 Jul 2024 18:21:22 +0200 (CEST) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 051AAF8013D for ; Wed, 3 Jul 2024 18:21:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 051AAF8013D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=IMBzGAcw Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5854ac817afso3679420a12.2 for ; Wed, 03 Jul 2024 09:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023679; x=1720628479; darn=alsa-project.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=pq6E8xpaYTkE4/TuNFv9VlzGhvZEyhhsiWZ97b1YfgU=; b=IMBzGAcw5jw1Ag/1bvjNPWDDCAoddWm//y+2lTkB6N9q2o3z+gtfIgHifESltAO2yj NvLrQJbFgWJQobDuxYVq0txEn4cBkDDbAq/ul17GA/mK0duZrfIoDywiDHXWy4HJ5Z09 qTSz0cyH8AsAB/otcERTu7t8ZRxIS2bjv9buhYHAvFM4RDzr4/FbeiuZybFpC5KQmTNF BZpJvHUTuk9x6hAAyK45XLg2vo/TH+6tzGL0Jt3kxFY+2EraRA3ajUDSO8XOehTp7KZ+ fZTNkigZQkpSPWJuKilUpUARTLlN8qV4TOE9ewz5RAbCJaplWndZ5Ub4MmmfSjWZ1/Vl lTfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023679; x=1720628479; 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=pq6E8xpaYTkE4/TuNFv9VlzGhvZEyhhsiWZ97b1YfgU=; b=BMn169kNRX1xflWAHSAfJaNpbMpiR5fRMLJF8PurTguGDgFHoe2dbWnT4T4ysh88T/ QN1MxKpAgs02mbsgKKyA4j0pKbr7ctxRHrNfWEoK39/hsPudUwvAKW9Dp+INjNgMAhl9 VA92Rid0jifzni49ivdsdQOHUxUMVU+YNG7hDIQwxTusurpv1t/Cu2l3m/U8+a2ROA5Q NpEmBVEvt6alEJ1SzQjuCaBeYHHHsl15sfqEBJYkxUtsjKV7MfHYE0kWHzT3ArYMNna1 IsWo/eEk81fE9KHJgTLzeIyrX2jzdfXTRWqamIq+X8P9RXF6tXf29/rUbURU17gxSS0n yCOQ== X-Gm-Message-State: AOJu0YwDOBb7bFT59ASBA1yPZHNwYj5Y8NHLh7sV640h+NknRXgYFJVi jmNf/fJ/15YdPBq9UHfGaP1DH/xZ/K7X7qF14FAF1sU2P0vmfhCR X-Google-Smtp-Source: AGHT+IEhABzL0PnBsf3kobt1kk0fkrkOzufUwSfbL0Wy674+CeiIFiE0YQvVeoMPunCrTx62/Z6g9A== X-Received: by 2002:a17:907:972a:b0:a6f:586b:6c2 with SMTP id a640c23a62f3a-a75144baebemr984884966b.60.1720023679084; Wed, 03 Jul 2024 09:21:19 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:18 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:21:01 +0200 Subject: [PATCH 5/9] ASoC: jz4760: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-5-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=734; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=dwpTb/6xnICUSoz81QCz1WdqOCgJoRgxLrJ83df9Lxg=; b=6omJZQ/QIiaamzE/XAx0iMjAim8gjACwbg3+nN5KqEsCorvwhF6l8ybP4kXi7ZSYtmcyfxb3e NdNwavD+rCkBD1InWSt+j+HJ8vYOgJRtmyPT4X64Xlbh4AMXmizH0Zn X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: J5FAEZJMN6NCERGEFB57QW3EVQX2ARWX X-Message-ID-Hash: J5FAEZJMN6NCERGEFB57QW3EVQX2ARWX X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:37 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `jz4760_codec_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/jz4760.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/jz4760.c b/sound/soc/codecs/jz4760.c index 9df58e23d360..6217e611259f 100644 --- a/sound/soc/codecs/jz4760.c +++ b/sound/soc/codecs/jz4760.c @@ -821,7 +821,7 @@ static const u8 jz4760_codec_reg_defaults[] = { 0x1F, 0x00, 0x00, 0x00 }; -static struct regmap_config jz4760_codec_regmap_config = { +static const struct regmap_config jz4760_codec_regmap_config = { .reg_bits = 7, .val_bits = 8, From patchwork Wed Jul 3 16:21:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 812643 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 82C8AC2BD09 for ; Tue, 9 Jul 2024 15:51:32 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C263F1518; Tue, 9 Jul 2024 17:51:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C263F1518 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540290; bh=3/rp8Ajf3GnxZH4fnipCM3HJyXPmN1fR0rMic23+28w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=OE49iRA4HcHiyGrqyLPu7nBItkCNhvljtOmVqroceg5+kNj2VCgD131hFkvLSIdII dpuCgoJ9fiBdjO2BpRJIDIbnYqDur+iWgYdirqUcA6DQoc2S649aIlHXlrzzt+N5VZ JVxCgsEBLkTsQjiBiog8rynPvmUs9XWgNfDRCyQ4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8B7B2F8075A; Tue, 9 Jul 2024 17:48:57 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id ABD54F80606; Tue, 9 Jul 2024 17:48:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 88D0FF80301; Wed, 3 Jul 2024 18:21:23 +0200 (CEST) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1BF78F80272 for ; Wed, 3 Jul 2024 18:21:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1BF78F80272 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ZWkpyrp/ Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a7241b2fe79so621436166b.1 for ; Wed, 03 Jul 2024 09:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023680; x=1720628480; darn=alsa-project.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=YB3QG4cHw/5grgnujfHSGr77q98eD/K2cHI9+6joPLM=; b=ZWkpyrp/GPIAaN51Pbax5YoEoEDsBT74wY9I6910RK49UN685wjTu2ws8d45+4zypK sxKsR1suw8nBB4t50iiO++V2h9QjNe8/lO4Ow0/RIX5xTgpJryhWQP/dwLB1FOyLl62B ayv0XgXRKiEkBNzbKj/WCSIlDLdDWDrZI5pZwmov6PWfiTE6yKYX2a//tQ7U1nEdf6fW mqoYWg8qYtLqirzorhJw3XI2iEXdjFhwedHIbbcA/nKPzueMbjWybsuygI9JxBIp1rOb 6nhVqVG0szG+4vSR41A1c/oXFOK/JLeyNJS17e9elBuuh39NshyZzkXaOwMZLuTk2T8K ve6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023680; x=1720628480; 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=YB3QG4cHw/5grgnujfHSGr77q98eD/K2cHI9+6joPLM=; b=AQFg3Fv7Jljd96skHsUQr+MhTaZW0YOE27Pke5quM8fNsd7TV73nTgU+tvWNuNzt+J KoxU+6KB5Im9TJq6R48dtth4Y/UYzohlFR4ZdcKxPhA8S5lKHdXJdqUwdltklpnIyh2R krp1WgqIwVsNZLuY+TcpgAWcjFSPRPSceDPaXlILLdnPqcOtMDFxaqhzI82QUomFpGkc iC7Ph3gtkEnwc3/KBrP1IQ4lrjn2WDu27S6FS+5ZZZbwB31eaJfN0Z9wq7ddkIQTksY2 FnE8hYOTlOY6TalO0WN58zSNW+SK7Ryh9Cld58xgOFpAlE2bFnaxd2kowa7Fa+1WQwOa pdLg== X-Gm-Message-State: AOJu0YwO/H60KB2fXuLBDgJVv2O4+MY2S/++WoXsrF0jfpc4aWuHl0wI LWdWlZxHJQjVcfJvwlALi4ds7lwA4Q7Zhyy1oafGlh6qwrAlXNFH X-Google-Smtp-Source: AGHT+IGSnZkI96Px48DnU6YgZSAgJEUPfAYKZr3K91kLUEZFHxbqXo/tEx6JqtbSu7eIYxOTaFILbA== X-Received: by 2002:a17:907:7f15:b0:a6e:fb9b:6769 with SMTP id a640c23a62f3a-a75144de327mr1006641366b.75.1720023680277; Wed, 03 Jul 2024 09:21:20 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:19 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:21:02 +0200 Subject: [PATCH 6/9] ASoC: jz4770: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-6-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=734; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=3/rp8Ajf3GnxZH4fnipCM3HJyXPmN1fR0rMic23+28w=; b=FU/CH/vTUtYVYUffYi2PxJcnZTTW44Ijs/SIepa+gP5hZAlXnRj3HPDI22mYSG+jXyEOHhgrB ogFaxj8a/cnAdOyNdEFTrO9uhxwGaFKv9YvVZNU3/PDwGzRmd8YqU7V X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: ATU2TPA6C22DI5LEFLO5OUHB3V5PHIS7 X-Message-ID-Hash: ATU2TPA6C22DI5LEFLO5OUHB3V5PHIS7 X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:37 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `jz4760_codec_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/jz4770.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/jz4770.c b/sound/soc/codecs/jz4770.c index 1d0c467ab57b..acb9eaa7ea1c 100644 --- a/sound/soc/codecs/jz4770.c +++ b/sound/soc/codecs/jz4770.c @@ -872,7 +872,7 @@ static const u8 jz4770_codec_reg_defaults[] = { 0x07, 0x44, 0x1F, 0x00 }; -static struct regmap_config jz4770_codec_regmap_config = { +static const struct regmap_config jz4770_codec_regmap_config = { .reg_bits = 7, .val_bits = 8, From patchwork Wed Jul 3 16:21:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 811463 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 16FC3C2BD09 for ; Tue, 9 Jul 2024 15:52:11 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 34CA820C5; Tue, 9 Jul 2024 17:51:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 34CA820C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540329; bh=6htGzMwQBaR8fepxCewe5VS66mt6hPOxDx6kiYIGOgc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=DUgUxb2m5Mv2it76L3EoVrIK+0jxJYW98w1fvog+XwrzIpMS2vJtKzx1uMS9RWXL7 f8wBONzc1OZCSqcVeYTUzonUGCEtPA5Owqfn+mQIF5FR9Pybp5eLbDdRJWztIHqt0+ O+ziUSqD68DXtHbT51kCKDpLR9giLW3pesYxNBv4= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2D27EF80601; Tue, 9 Jul 2024 17:49:03 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7695AF807DC; Tue, 9 Jul 2024 17:48:58 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EF3DBF8025E; Wed, 3 Jul 2024 18:21:24 +0200 (CEST) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3641DF80301 for ; Wed, 3 Jul 2024 18:21:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3641DF80301 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=EQBuDbl5 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a72b3e1c14cso665448566b.1 for ; Wed, 03 Jul 2024 09:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023682; x=1720628482; darn=alsa-project.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=5dJoSywsR4Em9gf/1ysM9oqz07c6C9thgpVrMtwr4Ro=; b=EQBuDbl5WVoXKYRvzktbAvHb5mrtvbYlxIeuybAhjJwliQmv5n0rb+kNy4g3XbCr/i RPJpA0q1S5kLcE6yeYFmWVGqaOfm0+L3CleQncapDj43W18+6KtByWTXv0qXeqi/v6tL cDfg1+eiUhNRpuCRYXNAiuAXHJgQSbKabD6KLWXZg6Su/xuAZVV+VhoM6ilb5vrgZ8nU MuMyE8pwYThNgZUB2/ymv7fNlYp3nw+RTzBAn60kfamI81vOQyNrN4ee1jcqZDk5hFii f5ir4JH+3sx2jUEBeXOIr/HibhnVvmcRFr1CDE7DbWUmv6E+9u9XNqsicNrXkNM7l+UD l+tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023682; x=1720628482; 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=5dJoSywsR4Em9gf/1ysM9oqz07c6C9thgpVrMtwr4Ro=; b=XkNQWNpUxiqHu28CU3iQgmXkQVPuzaPte2EL2AJRrIoJyy0QvenHfiHZuMTtICeqow L7RJmx2r8YfyHogP3awKeZs5kqsxRPkk4ACpfa/mwb2dBrZsorpbE+kr3G+ZIZrvr4w/ T3rbr5DGBKz5RsFF1NbRVS+Qb1ZW8i2mbxgByczifn7af/ZUXLnWQ6lPufIHhmcUTY6w 9oO4V0OZ1qGxMXE+CAtMEUOSa5oQ9nSXXfj6/ldjRmz55DfayfgGPGiU57WrytKSaOn9 FatARcJwTHWvdgdEptodRtTX2+Xw7BcJFP5cU11nBCgTsByfIItQwur69h8s3KPRRiQ9 7Z6g== X-Gm-Message-State: AOJu0YxTQRqqTDPBFZjmFOT3fL1U7nNotKZMjq1rIAVz+ByT+PIGePOm zRlZsUi5pxTtVeddA+9TJKpZqyrdBIUr3/y5LI1D388QayyjoC9e X-Google-Smtp-Source: AGHT+IGZj1uqADWWLvZQE0V4WUOmTVTU10XuRxNdD3aNhQeOCo0eTyEoVBnQTRz75jMlg4RB7DKe8w== X-Received: by 2002:a17:906:3408:b0:a72:4d91:6223 with SMTP id a640c23a62f3a-a75144a2b2amr803804066b.62.1720023681902; Wed, 03 Jul 2024 09:21:21 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:21 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:21:03 +0200 Subject: [PATCH 7/9] ASoC: wsa881x: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-7-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=761; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=6htGzMwQBaR8fepxCewe5VS66mt6hPOxDx6kiYIGOgc=; b=syuSi/vNrxsgXte3PF53cJhibfzYzPANo9dEVu81sruWIsCF5fNCZwS7swGb1Tw2Mxo2p8/bZ N5zAmxRL6JTDPD259YRWk8LyURFMmPglGFpG1Hs+NyfAGISSkTJKpBQ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: DW2ZD33CZIIEH2SJ6PXNAVU2GG3A4MS3 X-Message-ID-Hash: DW2ZD33CZIIEH2SJ6PXNAVU2GG3A4MS3 X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:37 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `wsa881x_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/wsa881x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index 1253695bebd8..0478599d0f35 100644 --- a/sound/soc/codecs/wsa881x.c +++ b/sound/soc/codecs/wsa881x.c @@ -634,7 +634,7 @@ static bool wsa881x_volatile_register(struct device *dev, unsigned int reg) } } -static struct regmap_config wsa881x_regmap_config = { +static const struct regmap_config wsa881x_regmap_config = { .reg_bits = 32, .val_bits = 8, .cache_type = REGCACHE_MAPLE, From patchwork Wed Jul 3 16:21:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 812642 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 F3BD5C3DA41 for ; Tue, 9 Jul 2024 15:52:23 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5371C1926; Tue, 9 Jul 2024 17:52:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5371C1926 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540342; bh=GEk39FRydi1fT70oPtE+ZJuGWxA/nAzFfLAJ2IHsPtE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Q3HAruFJmElFMLDen1ZPSXB+bhMoW+pzDzyvrfZnBJQv/wrh2e4v11NBDkkP8SJRC NkwBcX1qTel7qgm6q3S9ys6choE44aFljSZLkxFmEb39pgdPHo1XEk5ERwnEHU3OQx 14jjbNB/kexWcjosHfBBaaSaEnU6VdrYTf+YcVSU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id B742DF80771; Tue, 9 Jul 2024 17:49:10 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A1C37F80624; Tue, 9 Jul 2024 17:49:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2F082F80587; Wed, 3 Jul 2024 18:21:27 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8357FF800FE for ; Wed, 3 Jul 2024 18:21:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8357FF800FE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=bgWh5v5u Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a751ed17b1eso145423366b.1 for ; Wed, 03 Jul 2024 09:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023684; x=1720628484; darn=alsa-project.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=gG++efZ7r1OnmtfXthfdtG2tmWWRLh+fSeybQPYJHDQ=; b=bgWh5v5uhmMgH5LCBzafJ7cvDmlwxEwYxaeHN8PiT7WYi98vLWoVYVuJmG87a3EZi1 5nDbkKw4erijS5hatV3xph/RWroi+2mBELF/kQwnmIN1oju+9NfqmHkCsK4u29f0D+un aXpX+997A4+OEWn5uvoH1DXEZZtQsm3NnenYQz8nlykphFtnQJI4b+JFkWUQW+96SCx0 kpUOZAIuu+nnv1pedUIBQUquiCFMIUrPp1jzTXh2ibkBQea9gcZZy8bmaOE0rESXMLqS FJVdyQL30VeCJ/hLVQrgJ/Ybfcn7SdHX+O6ohNHElQsi6IRo282at+CADLqVgv5msnLz 38lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023684; x=1720628484; 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=gG++efZ7r1OnmtfXthfdtG2tmWWRLh+fSeybQPYJHDQ=; b=shNzBWrpZG0CeRWmycVFXGKWxN4VMOmyN5OCwLDPTRsmCh3CF1U0AShxv3zlkV3Pr9 JkFVqh/d9iXA2foHpV7S+JviRA5dUC/Nd54fjY2HpGQcibaYSDd9O804DZPQ/RVgvk5K 1mc33SYKKkw7OwwK7OaC0Q2sNbkemDT8gCcHGn1IyMWIEwTAPsBQs5XJR4HbBb5z78fw DaKO+IDYKL3GmwfjjztO4BOIeJ69FO0PtgsFXeM2yhkAdOQyZ3iwlMtQNEYwHWVMYR/a 3rYsstgyBXEhqL/ekphPlSz1CAuR++iTu0s2WSMMeXHN7XrC5TECN7NMSnQabaMRjM1x Z6zg== X-Gm-Message-State: AOJu0YyOtLaEVy2YlnVxpn87ygbTqy9dfZNt0WHL40ewpAf3o0bUuaMH 0tETM+FkPmxMAtt0Sxv/lOXrbe718TAtWUbWTGc572qppyZG2gPP X-Google-Smtp-Source: AGHT+IF1wtHFL+7cLyQBLapJSHhoz/9l0imQ+li63K8X61yyAq8uOaolAshVRhS+rXWk32NgpulPFA== X-Received: by 2002:a17:906:a259:b0:a6f:dd93:7ffb with SMTP id a640c23a62f3a-a77a2404383mr140720766b.1.1720023683153; Wed, 03 Jul 2024 09:21:23 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:22 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:21:04 +0200 Subject: [PATCH 8/9] ASoC: wsa883x: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-8-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=803; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=GEk39FRydi1fT70oPtE+ZJuGWxA/nAzFfLAJ2IHsPtE=; b=mBVpWmb88Olh/VCUWZconNdt8PnC5GlUgHDJFhFJmq4s9dXsX5xDlJDoQxBO0xm95ScDZadiC VHXdrkMl9zeD7CnE3OeehfrVKkA94ViNvLhIHXY09hkgLZNnSICo4Om X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: YNPDKHERWUPGRE7BCLIHR4T7YUTKQLSS X-Message-ID-Hash: YNPDKHERWUPGRE7BCLIHR4T7YUTKQLSS X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:38 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `wsa883x_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/wsa883x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c index f5a15f0e891e..d0ab4e2290b6 100644 --- a/sound/soc/codecs/wsa883x.c +++ b/sound/soc/codecs/wsa883x.c @@ -934,7 +934,7 @@ static bool wsa883x_volatile_register(struct device *dev, unsigned int reg) return wsa883x_readonly_register(dev, reg); } -static struct regmap_config wsa883x_regmap_config = { +static const struct regmap_config wsa883x_regmap_config = { .reg_bits = 32, .val_bits = 8, .cache_type = REGCACHE_MAPLE, From patchwork Wed Jul 3 16:21:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 812641 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 57521C2BD09 for ; Tue, 9 Jul 2024 15:52:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6264EE7F; Tue, 9 Jul 2024 17:52:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6264EE7F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1720540368; bh=UWrN4K6qjuTz47KoIpXFDK4A5Ll6v6S2fwyFXTvplLY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=to1LRTijWVE2X5fFhsm9U4upLyg7ZqlQ2E9kAMfNcdXvT+1R5ZF1dB3taoQEpobV8 6cBzRFjEv79VLJsRpAxB1PqHwjUB1N+duEN17z6t6QQ5YY1bcddsQZr96JJtOcgi47 mCcgJak1tQmOA4PF0qOiEaiqZmDtA+j6BJcdsMRU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1DCA4F8085E; Tue, 9 Jul 2024 17:49:11 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 6B2EFF80863; Tue, 9 Jul 2024 17:49:10 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2FC58F8025E; Wed, 3 Jul 2024 18:21:28 +0200 (CEST) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C5106F800FE for ; Wed, 3 Jul 2024 18:21:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C5106F800FE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=AzVis0v4 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a7541fad560so261994566b.0 for ; Wed, 03 Jul 2024 09:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023685; x=1720628485; darn=alsa-project.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=ls7x37QW2OZP1luBkaxPMKRrBAXpPPDVacZ21UQ0RHQ=; b=AzVis0v4SG8/lL8cWQv2pZwdUydeoylSlLw4dX2JyzVQGyC+omX/z84nV56Psk0MBh xKRPPspIPV+oyBUYN2lExH77059duzLKDW/05dvBy0/YRzcIpBfGkcNMMs0WAE2n+Usb Z4Or1xU8YhwtaUg5RWrwUf04ctCYJkO8I3JJ+RUOCeFWLBQV3pkcLyPiy/JOVCm6P6FE 5Nc7/ptw310Ww0zMw7zB7z/JhLLF26q+tAx3MEw2khLf1qQhQxREpZ7C4dJ0FZc6aaQt JBbJWCneA4rGdukXShifI90bySP8nlL1cHc34dJJUAggnENw2C1DpSRLMqrFnTvKk/F1 NYSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720023685; x=1720628485; 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=ls7x37QW2OZP1luBkaxPMKRrBAXpPPDVacZ21UQ0RHQ=; b=uU7YgQ+1PhuF7rO4Bw2mtQ17eHqBvWxFcCAqOS9wBaoUIv/op6eezy2etmegpfnKWV mN7RCIDhjAzEM3Lg3JIWqPbPsfsBvajWdjhow2mp4A1zg2KCAbTT2DS9zCANc+xJKpok Y+nErbDYUPL1hqjEmi/tJxik1DvtI4rPpJ7tQb9A0y//p6/sAmOxAQddihLqhtP/OdFM ZteICoZV84geUR4Cb7mvh8G/ugVfPHfEYqlrRu0Sa+jQsHiS5gGbjqPKAfAEnzKTVsU5 n9Dtz94A6+tzvIXSNYVLweckU47ySNlpZZHlpy7LQ5w5JfRE8E2b6xyICjfaUAUzW1vs 5V3A== X-Gm-Message-State: AOJu0YxYtjZ0GbnvZDrmY7cycd+3gVIPcfZuXYNNo6boPy42N/6O9xYd CwoJCG2EUaqnJisSfuMe3SK6q+x9TysxIxiOhinKVyUsJKhqAoON X-Google-Smtp-Source: AGHT+IH3KtVxb1RXbdA+tF59cEFxwUxKJCQZJx1M2KXh/7MQ2cvy+B3uUMbqNlFWoBgWJfCyF+/PXw== X-Received: by 2002:a17:907:bb8e:b0:a72:7a70:f2e3 with SMTP id a640c23a62f3a-a7514451af5mr739438966b.39.1720023685462; Wed, 03 Jul 2024 09:21:25 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72b5abddaesm473075166b.140.2024.07.03.09.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 09:21:25 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 18:21:05 +0200 Subject: [PATCH 9/9] ASoC: wsa884x: Constify struct regmap_config MIME-Version: 1.0 Message-Id: <20240703-sound-const-regmap_config-v1-9-2e379b0446a7@gmail.com> References: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> In-Reply-To: <20240703-sound-const-regmap_config-v1-0-2e379b0446a7@gmail.com> To: David Rhodes , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Paul Cercueil , Srinivas Kandagatla , Banajit Goswami Cc: alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-msm@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720023669; l=805; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=UWrN4K6qjuTz47KoIpXFDK4A5Ll6v6S2fwyFXTvplLY=; b=BXiOa8yT0md+TYJMO7aeLvPGVNstnbedA/eZZmINNVk+XuhDq0zcoUBvoi/zBaEPZkZIXNv9f HB4xJOaaxUvB6lwjn4AqWy6yxO6MsVN7JlQK8Crm73HuJV0QvwLbjKU X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-MailFrom: javier.carrasco.cruz@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: XGPMQOMDCO4AJA4WK74YJP2CX3CCDIZS X-Message-ID-Hash: XGPMQOMDCO4AJA4WK74YJP2CX3CCDIZS X-Mailman-Approved-At: Tue, 09 Jul 2024 15:48:38 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: `wsa884x_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- sound/soc/codecs/wsa884x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wsa884x.c b/sound/soc/codecs/wsa884x.c index a6034547b4f3..d17ae17b2938 100644 --- a/sound/soc/codecs/wsa884x.c +++ b/sound/soc/codecs/wsa884x.c @@ -1319,7 +1319,7 @@ static bool wsa884x_volatile_register(struct device *dev, unsigned int reg) return wsa884x_readonly_register(dev, reg); } -static struct regmap_config wsa884x_regmap_config = { +static const struct regmap_config wsa884x_regmap_config = { .reg_bits = 32, .val_bits = 8, .cache_type = REGCACHE_MAPLE,