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: 13722571 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 A90A1181CF0; Wed, 3 Jul 2024 16:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023677; cv=none; b=QCRDUOxTbRdm5lFKVnNKQRwux8We4fS2POjMMT/+z7Io2myGG5WA6wea4X0TZ1zYri4/RjrBEBlIbkgWYH90isLm/4CeAbLnoy4W+D116v2XJQprifK+d8bcO5QmytzD0j8Ry3X7Fkeh4sDyDrByB/inQFncplxNtpp0S4h1fdU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023677; c=relaxed/simple; bh=wWw29OtvmtrGUfN54CyphDq2f7EZzv4CB36kBIg/V9w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I7ZAy8kVtL1RDztszbksbMgIij6wu+PREDr1BeRUIKTX6/dR3NVmof2RXPahiJtqbMOHW5SJA6EOQgcSvFcuM7bVl/Xr42OPuL3EPmiZxnF1TmEqo+cFiv8hnCMnXCUbxwiYTbEtQXy6nYaHnbZ39erelAMuz9U0aSWlGUAkaXA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OB6IXmMj; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OB6IXmMj" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a72585032f1so614450466b.3; 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=1720023674; x=1720628474; 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=nwodvvh/HkWOmrsQs4/edOtdukbP3CJ9J4qzQghO6GU=; b=OB6IXmMjiEUk3F0z4UI2+zhNOYsm9p6QK07dbNpjqGjwSRhOtN3GmTby0oO7XLxpit y5PzSdq3zWHg0t6hgDFfO7G+JGf9wtCH4H7tgHDpcYNTaa2G2tidgbS44os9+jyFTqeP dU4J079K0vfqR6+68kqR98NT1SY4CBwlZE1huToF3wVHzPGE9jTcuh9RqTec1brkf73h 2x0UnHADz+ttqbsGgplq2+0GnRDOpn4Dsze/nVwB3yKKe9qy5EEE10jqOZYpM0cB+BtP 1SZPhh5JAIJgsCOrmeNTgiVUYMq6AYSih2IrLpVGJyJADysg4iqq2w+iDmdTiT3wDYOm a8tQ== 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=D2PmxV/nOmjeJSUqjWX9l7+nE9Y26O5QTgW80HS0Wd+xK6i8oTY/Fyvg7uSKfIgcuA Q2BhKg+rt1UyarVpAMDJFWYx0af6YgzeTUQE/zo6FwqJPe0SIPuaKddE+gUnN4xEWy2b mWj17B4Ebaekp6tkilo92KM4IFMzjYmN+mCxd54FoVFlWOKgz2iy0Lf2ZG2vVN1crPh5 7El9cHy8q3yTIlNRScKCUGifV+05bKqtm9yq1+fH1rfsRmqkvmEP/1zKg1jQBNmfVd3F +aGtwDELL4GHNJCzRcwg/gaTg3Eu9d49hFS4KIjbmaA+VnlgIVmd5zbkdERtOG4rcqu4 kRdQ== X-Forwarded-Encrypted: i=1; AJvYcCUuZUjt1e0zZDSlDJZfUTUCKz3xywpwtrFTWNZwSxCTjxf4WbvQDVCKAVfAhspWj8IVXmpG/IyepvomCV7VGF+1WivITwJ7AsWpMh27kRgl1WBjgytkM7Wo4rN+RqktNRfGMC+asRn/X8l+1SfI+9aj+YLfkNsbM66/uO3DSc+LpgBgVBNHv6EsWYn5Upxn8AyiPXcsF+lN5qOSJ6uVrvBN5ToojQ== X-Gm-Message-State: AOJu0YxrDQe/ZRMp2ht1vKuxu3b1omj5tjWbfhEvO2qLilyDpmfGIxjA SFAS+CjfoTQ1DDCrShF2r0HGGetByVxXOwa3R+2Gv/d5CczU7D/d 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722572 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 A9F81183092; Wed, 3 Jul 2024 16:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023678; cv=none; b=m5admwsVqZTVwqm+TKL47l9hhEj2mGoy4CpamZpn0ortd6yc2UrcVxMQKr6H++vG3XGjkPmtmoGSZLfUrJiqNscFbI2ea5XNQe2+YuVuUKABqbtCaYhDLFolY+hzV6LTPD5d3mOqaL3Q6Fp5RO1CCMMPOyH1djcKQD90qMa7xWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023678; c=relaxed/simple; bh=NwcjSKqDE0VK2dDbdmqM/92kBglAO28ukjiQXm09KUU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h2wdQ1sgGTciok6hYIpLWFRfXlFwkqnI7R4qXGDRF03UYNawnBdLIR6PbX0UdjjasRAtKUlEp/euXbEfICnmwxkKZt/yLtcUPVhBPMQ4OU1zvfaF79XoqDxSMqjpYUgHv602UJi6Oai6BSwjnMMju8JNv8mKcqbtuFihXcqJb40= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=G1592B+m; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G1592B+m" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a72b3e1c14cso665434266b.1; Wed, 03 Jul 2024 09:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023675; x=1720628475; 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=3hjyRNvMZXMYBEm5NP3z8RmRqPF9CkIDkfVc08IOZB8=; b=G1592B+mP3tbALgslQOsuNhr3x+CtW2vnzsIDgnvzTpC3fmVA5SC690mpuuXUeeEN6 TxdGQ6QK7MhTEElAyHvY2i33kRIRmTDGcAleMYzqG+9puKdPv6Yjp8PDEDWz4MkMLzV+ 0EjcfBB7lz9lccU+eNZJxg+8d88TbVgwHX8j9iq3qB5WT9f1jpzFtpSJVWcFEONM3IiC nzOVSmkv4F7JC8p58K8JKvVXFd9haBt7cdP5ftSwNGt8GgqqyNQ5uL3HCuDyfEXPLc/E iTUT5VFYnL7VUmSLXN3U0/AFlEVSjtMlEaX+OcW3X9Agsbn7eLkkzQXfM4hbc7LdLAOk ppsA== 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=Bo4ymH2mJeI8E4K8eTZHvxaDMZn5wN3/ttHPOYqZq04MvFb36We7/N/Dyl3NsFS/4i JGUSxHvFvaSLvH9VGkaWU4N931sXYZsBws4czq6rnlMOIPiz5EvN6tAX+Iff37mx+CwH sAtO+fjtMTZBPqgVavtYGLCb/R/jXF8yQSeTHE/jS3tzLAv10EaVh2u8PM0J85PH4xR3 LnMlTAjBigo+OGfzZU3ULrAeN5avyTh6t5Mvbjn0caTTvK6INuYbsXOwS8i67c8udKaN Kv3rPmJ2y08ErDFzYWnb0SXiaTz5X2txRRh1wjgWz9/WZat6DgIT4k5EBR9XzSbPwkDE Yv3w== X-Forwarded-Encrypted: i=1; AJvYcCWOUYjMDIqarXavjiSGO00corBcMwa+E9m2xTDmNGMgmt8VpDvvdOJ15B/FfkIklf8BJV0nYAx8pYrUzmUjgUjYqR50HA2I66iOOPKlUgvfDjK6WVYRPaCaM8fqaBEFEfy/xSrtZ39u/R0etuPWX6Xd8Qc2b37/bXTL6GZ+SUj23A0eghW+WwCx3fce262WfzerYXt491d/mtHMXdLNOdu1KXdcPQ== X-Gm-Message-State: AOJu0YxPmjrXLFt6PlDPG5O6t2i8ZT8ePdexiARbEE/+cssZzbIewxMo vaW7Ih1vDi0yZcieguFRr6XFrOK0WlAKfT1q5FBpys2lS+Xi+JLf 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722573 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 A7BDE185095; Wed, 3 Jul 2024 16:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023680; cv=none; b=ia0uM5wuXpHRonKiG/6w8OoI6WkVHnzFcYe0sT8VWRh+wqpv/3dCu0I/7jHcIfHoCCn/dVzF9K7digbRCdZ5Cw+mZGDKaeQ42gyl6z2km7jcNN2WGBZYiG8m17qqzwft+kHHWhN1Y3fpyQDiB73SKWqGPiCRKiZqNMoxmq2spF0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023680; c=relaxed/simple; bh=j5sPCwhhCviCU7Vu2ABzpjqggf1PnHdW58kdo9eadZQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XzjjU8v7wnr45xfSHk8nXqgOrQhRdskz3bGxz3WFqgWVEHjA0QGtzFNTlDz7A4uaF0iJL134qFNpxkrXh7zaSTztHo8d0coA71gWoZgXHcoYig9lq/xmmuiXWjvbs+GrPwhwrVRBbjJ76eIn82l/LB4lnq90E/AeZq2aKdyVksc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bhDRnIAI; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bhDRnIAI" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2ee794ec014so19681131fa.0; 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=1720023677; x=1720628477; 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=pIxz4BhRdDbBTxy1ZxI+3NgFm2AiBBocYllJB6osFnM=; b=bhDRnIAIMYa+Bm07WniMVDUwoIxM9/BcEE3NcOqwliMU6Bb/xg+CvCLCQJQbGaUFMf yhzFxRptgvqVv18Wxoe6iNFyrvtghHw1gUhwkSooB09u3u3vzeOy7oTkKuN+Omz02byY MJkGjC459eRGrRdaROJ6o73u69LQ3zJDrLRsvhBNTFnk3vPw43rZ1XtlYD0ey8NH6tWo l/aoHziLK3HkygNg6umuwZxDU+vyygsDGThiQA2+pbda0JdbDieVI4xg5+oo45PgVC1h Jy8TGdaOxPFDIW4anaJCxd8w8RBuQm69vODEbqSD/6gApv3trr2/oThVdiLKOAp/ZRpU wE3A== 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=fxV6bo+YAyJlzExQmOwcvJYLuvQyZQeD5AcTgobi2aSeodcXL8U9QqtFsRy6MaP3pD lQ7Ok/1vaH81Oo1scA6WirRtBcVR2UNo1/cwLNGVRIP++/mNo3Dvdih4n+rVXqfPTKXX i46lucHl/fh0B+md32IVrp5/FflM+yC/Yqjfvf4z6+hJHdapI5g1Hv8sJYOoLXw8TGUw OYDKxtabDhMsd5u03323Qtekr94YDR+Zd5KiVdjWuOB+FhYyef5TcFO5A+oTtnPED2x1 sK+vvpC4kirbJK+7m9rb3uFY8DDJHXQDcGiPvNpvVcjDZyRjnCgslw6c1orKVA3XpDXG c+eA== X-Forwarded-Encrypted: i=1; AJvYcCWSAF+TJdWzlJFL/6wjB6QeqXuSr4nyYBdUfcZJk0MqrtVb3HfRqgunG2ViQq5tdHZAwiqmmY1hegBLJmsgVjcoRQcat71uvP7hhRZpL5MV+X8JtEccg9hFtdoZrOJdPEszj6+pOTdcnCDXav5CWUahShkotYQSpu5FgX11YD5Cn8tnVHgUmnusBBFPGG0cl3+YnZKQg4Aaq3dpYIqNCzOPnpCB2Q== X-Gm-Message-State: AOJu0YyPWySUR4VxdEele9UAxoCcp5BzBjjBcBOHhpphnRBNquEdKTHz AnJaLaF6TROz78kaO4XQ8tJM/2lW6oDO61j4blWTVWfWlmAYQl8O 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722574 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 8C317185E43; Wed, 3 Jul 2024 16:21:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023681; cv=none; b=XTMNXEBdpaqolLJ3A4dNTWyzt1tjBeAE7ySTqq+C9c49tbKCIG7IEyDqbz8C50Wf+4DPUsTLoJYOa9FcVGAn5LGhGvKL6bN/kWhDNAA/NdCZgQU7UjCqRMMLuwWkXLXIMFLPQvQFtGwlQDlczNLUObrhPKQj5B02B9Rcrv82I3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023681; c=relaxed/simple; bh=4sjnkaXwLNp7p5DTjkC6jZAwMMW/qwiVCY05YVLu0yc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FOj/2Ulb65cldo7ft1d9jem/9xwrpSwq1Y0IVm5AVlEIPwHl2IlKcopOVTIK/DLdUudRuEuW6mvn82tWMvX9sMFEvmLiUXbXHfGTqyCEL4azjUMv4wVJeh+vK14I5bnoMIpfa2Qh0s62GWOUFT1rvvV3f87IcPF6MXhYNpAkPDA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GG9txN91; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GG9txN91" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a724b3a32d2so659711566b.2; Wed, 03 Jul 2024 09:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023678; x=1720628478; 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=HSyNvDm6zVDNskeAuatJPuva+eHFR+zlE1Zqp5rhiEk=; b=GG9txN918iDppE6X3XH5M7D04W27i5FahYU+7gkZWRPB1lKz0Q5zCQh+9YtvG4JVHu DORD/LXsUoGu1HyYzUIuEv3C+BXtgLyF2VAKNb5XbjeQmSeZ64Vd096pVPvar8y9nwSL QG6fYSBCJPugm4+MIps27mBP4/EveZW22bUqcI1czC/xeoMQW1UDv1nSfJWyFo/KQfF9 qX1uyMJ1XUYm1ojB7sq9sK02PrPdaKE5Qpj5ei30+yjPvYOr4HiZkaxj8lFBPGm+Cw1i lP70jkJIKi4rW+NfJnxQ8hm36nDZl57xaB4i+oDWFKqufS90c/6nGtfxu/uNScdXvQqE l8gg== 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=JaaYqzP2wQ6LB87hy47wgEj1WtX2gD5VHmD0Q1TLHsWjcFhcPJHmpGceGiSktbSylH Q1BN6w3eM7K6xJKfU6tebBGM2mqr3yEi2fVzmIKmjodms0UXelAIyeRGsNwOs/uJX227 +eP0OK/hrjSv0ODzF0HIVkZoW9DwKU9ChlAG/n7CE7jHKUqELxAkwrUk69va9b0U7uec vrtFnWl96yGhnQ2xzYLSz/jhZmgx6uEny+T2x/QTLd7CjchV+qaxcPC/zfyWcMbU4Xqp VpP2kGN9hiVctKMxRro64w4pn9M60kV6aDzijlXeULv4YNVqquanMOrWzoMOlw4b6rmH walQ== X-Forwarded-Encrypted: i=1; AJvYcCVmZDb+HdfUP0noMMVm4If1LTAPybQxb79IbRBBNx6CK8+VZz+01IdhCA/KNIp+pVSzue7LnI2OFZJ70QyFKR0e/BIIWauSURAPhKIKi8V/mrR0xMdZ6sSbiUEZB55kM9hFA5nSi1CLZeDrQqyC8r4A6U/WRA3w1MERNZw/kfB1aX9v9cE9L+vfB3v6hxBp+h11mALBXj7Pqug9JU7gZKMX4OKjlQ== X-Gm-Message-State: AOJu0Yx6MKW4cO5z/Bm/4yAJ9cBkDBLvYFfcVFTzA76na7nmEmFrtEef IAOjeyjmEXCmwm4vNj3/lhPFjsSu9u0Zk05Sn+2k8I2/8X/NDo3gV0+m8Z7e 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722575 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 029A51862BA; Wed, 3 Jul 2024 16:21:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023682; cv=none; b=f+iG7qJp6ngUy4XA8LnnBtLiBJcbp1kG7UcdJzRLt9HTpPHIhTvPftL2SwyWO6RU0JY/8TOexX+rVacD6oQf4ykBMS7uiEZ/Fm2GD7yoIgrO+qUmPbX+KAdvARMgZwqbfpVJyGeSoOGp0dRBN/Hv5O81QvpKw+XdJrrtPl2ISKY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023682; c=relaxed/simple; bh=dwpTb/6xnICUSoz81QCz1WdqOCgJoRgxLrJ83df9Lxg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GeH+u6vf+tHuJY0XQwIOZjaS4Wi00ppfCkrHxbIzd4UViv00yxK6oS5CbspksOqpqQ4IHOfWOKwXPUlHPwjiCGy5IOeEKyd1BmGLm2zilSHei4JDUj3y1LIOll0HvhcGfcmimZWbXuT7BMGuBqic0x537nDQnvFny7HUaPPXBvo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HYH5vmda; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HYH5vmda" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-58b447c5112so2756712a12.3; 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=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=pq6E8xpaYTkE4/TuNFv9VlzGhvZEyhhsiWZ97b1YfgU=; b=HYH5vmdacnhvsDOljjiYgpS9Fxndr9JU8g7bc6jXIZWvivErs6yzmNDIqrMhL24DP6 DA1k7H/VRa9mqwiAMtENAdBypuFeTHY1KqVnZ1fKjAA2d6mWGC4h0jNA6qEJTTL1lSfB ruzXNGXCAEGazga3E4cp2RugrE1YrhLhzxYOdelaM1i57Q83wQQHwxZDlqQ/GBWgqJC3 +r/7NhWqQQNMjj3R3v4M25C0ZMD543bUJQoqgndyKf42m3DJsbnPetvlU1cC2GtZ2JIo mFS3wdKuiTbkGIhqlLLR7PCvLNzct62wxnDeBOzXTbTIbnKBMaxbTIMEPYGjn8WeGpVV Layg== 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=WJoGusFpyUBhZVgW8lHUi3CT81lORVZmEStdqRcSHiUfwA37crg8GzmL6uhqjb7Z/x 04UCnnNGpIMJe8F4BhuFzF2ZKtzGCLGLSoyb9fNVc72OgS5iJKmU6taq/ejTWhWJ3DIY iAVN9MrfzOAhpDAOUIxqf7Qz1r95VUX4qAvKl4bMvLV6dk6noMzfEZe7rtwdC7EFI6MK Nz9V3acwKdskUBt39uHxgVqcmJJblDsKYiCS5yGNIx29UMFIZnewUmqaHji7bz5RuQAn 9WEU/U+AqHQbG/TwoEpb1QacWUedrFm6ETgDSQiOcWmqiiZ7rzsxfjLreq+B/Jx7nnOp MxNg== X-Forwarded-Encrypted: i=1; AJvYcCXvwIAArbrxIbTEq+7dIW+UufjKURf+kUbAs2AarxeZ4t6ZpWp1wdnVxIEmakG4uZYqIga4f5hlW+IwLAOw4AxGhKjVo3ruZMFuG1viXDKkTFRb8s018QhxTyf2kR5+7YrXkiocAaTzs9IArtl/UF2FVWZCjjl+E0Z8X1W0GfTrDnUEiq+vnxeL7gbpMdfzLJrWcxZNnRkZHcyOLXR0D2l5eGXvJA== X-Gm-Message-State: AOJu0YxjWmJp/x8r8huRmhmhnBBwr0KBdE0zIoQe8kSDGwbKWrwY6frk +2p6FwdBATOeFquysY72roWLKu2eWOHTxeN7HWPTQtZOjTY3a6Ow 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722576 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 E53291836D0; Wed, 3 Jul 2024 16:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023683; cv=none; b=GDwTLnjQTYg1YkUE9k6UpdDChcsbtsFzkWLIJ6Egct80Hrz6FwCy+S3AgNFkwMvRgqV+q30uJ6DhcdeqCNSIfgPRQUHy65Fd43oEz0BE2VSZfo+kRdS/uAnE8s48c8BA4NL+SD35p8+/yrroD/jmE35tIrtWkLVGXTqJmj+Ws1Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023683; c=relaxed/simple; bh=3/rp8Ajf3GnxZH4fnipCM3HJyXPmN1fR0rMic23+28w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pBkWLipGTqvJOoCZC4nYd8+UdwPHfNJSK+Ny5vV5qldlI8RLAOay6fG1JHbUH//boKtjdID0NC7468OlZEqs2+Deucsgplus/+WS5nLnN+847qRbZ2zs/cnFbmvTwnRefOlBDn/ju2CesTEz0zlwKjo0z/MqisJxiKD7z6OSEO4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iBVZoAj/; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iBVZoAj/" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a727d9dd367so601726666b.3; 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=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=YB3QG4cHw/5grgnujfHSGr77q98eD/K2cHI9+6joPLM=; b=iBVZoAj/JNVYTr+4x0/m/yQnTNSOsfRoX0wWb0vT2o125T7rGtaPPRfGI0EyDUeICq zqarJRbvzRW3qkekN4SyULJP7Fcc4yAHCCghYYbtoQRPeHs1tuQOlwHgdL/d3s68UKBh CbHvxAq0VAdRqOhQo6M+ECOQvpd2xP2EmQYdTYavEtfPpSNfIrk+BKF1tuJSuywgUgQx M2sIV4wFuXPVh3qwP0NK7R+sHLTRH7DNTLopV4+qaFkANVDNeXdMoYuwa3PixO4gmT8f ce095jTSdpSELKnrhPD461lJoGeEuKIqtFw5t1XUP1m/zuV5SpIyCXfgMF7Q8S7Iu8yA 9yEA== 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=svQJhss6vGh8+YUhXXPTBhO6wdEAoOy8R34IzKX1e32ClqHJfi6Lxq0ccJuODP0RVK cqs2tVvX2WGeCEYtHF2aOQmu7R5LZXQYhicAmF+J/y+UVWiGoAjMRw1nT+6mE813wOGV olQ8yNRbvv6YYVwIQyE94tnDG8lnerubcKgn3vKkybrvXYuCwcJfpyS9FEP/J6uVP3Xl ZaJkP9VxfbWf80eR72cpISGaAobkUpPwazoUk3AK3XfJOlacON2tiI4u0xzqH6ul5Zpw mXKfHj6Uirx0TuRsvEamhFJlIZk98OmdV3FbDxjyh3S3Xh5K74PZF6DdgtTyfQcnaNDU WuXg== X-Forwarded-Encrypted: i=1; AJvYcCV2v5gwgAmeEfPeHbTdk1R5vxjvZ5Aru7tXxn2oO1Nt2Cp7rE4ba8CQVJaJd6E2aMw9AxQbLoCDnmX5jJR5SkMn/xI6GF/LZcnV2XQqdIzh5fJupUPUwxekR3+t7XGmQeXxN7T148TPbV9W9OaIRojYH9QSKdlPSUhKTJuoB4W+QDoJaGxRBK7w1BTVe30OJYaE/kw3i1MN0ylpIP8JFQbnNEj4YA== X-Gm-Message-State: AOJu0Ywu28uB59s0lXSFTi+qAtguQnA8C01OkQcP6yB2t3Wur+xnQrU3 CMLtm1Y8Tkq3Eapy/BaX/H4jp6BEs/ZXX4aP6ERw2Nw+cDdNgQix 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722577 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 92F98188CD3; Wed, 3 Jul 2024 16:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023685; cv=none; b=A8oPewNHZUPiJ1BEraoNSfoBwg8TQpwYR3wV+nucoNk4cI002QwUC/F21ZRNYD9zUrD55Fkbfd+7ggFeFKF4zrk84uYT2B9cVk+pmzuQgwetZ1f5s0IOCwEtJ+CVeSFyKWodj06gls4c3ktof2w/13IDR4d2YJN9y8smckqNjaE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023685; c=relaxed/simple; bh=6htGzMwQBaR8fepxCewe5VS66mt6hPOxDx6kiYIGOgc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DG3fzFUZTGnRDVGW2Ed8P1aKKucg6OPBOkhR/GeWvr6437NQyUXzDWcXXAM0lfF54THOkWBXbOy74Mw5JtP3UrVrW8uX4cJbnR79jzfYQ8MyvI6FDYRvmayVMKbloRDlIUoFYV1neRPQWUQY2lPqfTMdelrBFLWwlrJ7EDCb+hI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bBNgQ+Ct; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bBNgQ+Ct" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a6fd513f18bso740278966b.3; Wed, 03 Jul 2024 09:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023682; x=1720628482; 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=5dJoSywsR4Em9gf/1ysM9oqz07c6C9thgpVrMtwr4Ro=; b=bBNgQ+CtiHh1WFhJmUF/17M0P/8vf7eLjpSV2MyYngyBP2hpPIO7QQP/Fo55s2HPxN XDcaBWkT7HwL2UNGFjtucX2id6xEmpNNI1r8Ls0CkHfSu/+fX4JcOQTaabnFfi+278vi fzQ2CT9IZw66fS4JG1CR3xluXmM4AcP2V87yPDdF4d3iFmyhfEsD+1O9XXPttHtOlPFu 3T0PlmFMcJ+eY0R559heZn5sdBzXejXhdZXjKip7nZMN1XW6cIvlcBsjIscTn0OPzNtG +95Iuo8Tfdn/2Cvm7XZy14eAtP8RfV72oPkyicxmViihNiqdA66mPw3GupM+LhDTEJDc aIdw== 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=lpWDtvGmPX7ZURGEzUnDURh1YkfFe/BNnuETxzMtO4HmrjteZxeGQbEdDiXZ3VvOsS +Cd71TfOAQLoUFuFqc8J+RCQ2RS3zuX8SvnuPwvi0KqTcdl+FYybJSkJ0hOYaFPgvgrl SCFJDGN1eqEGbTQEV8vjKfqIySPtae0KYS4DA8aSYlfMHQVoTk+4339MJXdXqE/w5ooa bWo4chIiHpC0GdjYAbYxUYLtjvzushwN7fol79a4V6PSC9sI9Gkmm8rIuceUqWCziXzG O11ZpUOkjSIrI1UF17oebLyWngIV6u1ecq3f/TP0OLnIYxI3Bs4qO1Xlz+CSXxvgeFd4 U2Jg== X-Forwarded-Encrypted: i=1; AJvYcCWc+ODFe8qbc+iPkC6yDYm+mBQ2uaOcgbgkaN7okLYQwfAYP5T2SQqLyVaB+31cjiUGBpqr++QSchKZ6jrRH1YEhO2XXfupO7jguRt1sh58nNiC7KwrbLcKeQwP2ouXL8pkuJ1DRjFTptO6FmJ+e/bmiwe4jhzVRnn23jXsnGg1Y0+/vYGfNnQH35Kr7m2/I+fJICITdQP95GdtxQCG/58R/Cf/OA== X-Gm-Message-State: AOJu0Yw3L7+WcfexkY9E/mcJt1SFBq5HGyAqC7VzuYWpU1ih3XDq/ZhQ zSuCfuTz626/0KRAEpVIiyLmpBhTAH4D2IwfwiFDTQTBLtjCx/XD 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722579 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 00EAF1836D0; Wed, 3 Jul 2024 16:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023688; cv=none; b=Z7738ZA0KvAqg1OK1RTUkZQL9RiEF66FSFgPwvEXFbd8haIj6qPLjb8sw9ZJftk/vPgoN/xVfMeKfPKGk/dcXIboQPPQt6heDPLFqYNrLOYhiXQr+NhgbcTHqumZo+MJJzNIauEZywNRCnUrZFZsflX8uxhLt9HuoYq23QA+1i0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023688; c=relaxed/simple; bh=GEk39FRydi1fT70oPtE+ZJuGWxA/nAzFfLAJ2IHsPtE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lcBhg1VNsoTbeXi+WammUiXkU4A3U6qgmFFbOdO7HDtgsZ3bZFqNbE4h5edjuhPAjxH6q0THwDx6DOljco6j92CKOEHAFXU2Jg6dwbKABZAeX2igr6rdotZwqxCfb/Zcbsi+4j2Qqq1VHnkg9qus/7nS2A3QhQzG55Re1c+0AW8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kH2Jqy71; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kH2Jqy71" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a7245453319so143098066b.1; Wed, 03 Jul 2024 09:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720023684; x=1720628484; 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=gG++efZ7r1OnmtfXthfdtG2tmWWRLh+fSeybQPYJHDQ=; b=kH2Jqy716a2RanD/apZm5eDTOJAfvnQMVa3WWk0CLPzDHeVUHbbLblhGYR0V6w4UGH UiEySrV9mdMtd43ZYm83GkqQlrdAWVW0dNeD/eqqnjg8P2Ld8qNn/NPr28cwvfsUGAhX UlQidgBRx7PMTJ5L9htLu+gJRJdcpi0rGWpc2ZyVMVzttSGOIKYmYxKmvC7v1RYgZLJs GRVr7SfUKW+zId8jjQl9f9j3CASCjKK7MBvpsd/Wuihfwdh+dbeLSFIcHP/E7OBvl5iJ EmZqKk+OHmckd2pnKH3NOSe3HOfgElSijG0rkN3DiAbC6gFQUPlNHpj1X/D30QCe28rY c9pA== 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=CCZnionbIB1ThV3n/dJ7Yslw+Wlim9TRNWdr4fYpPvTaIdvJnO9jqSfh2rkWuKWdyX WQwvT5NXBPyyBrId6fixwA77xWAL3ytqy3uTsWV1qoBV41fntgF+9vUfP8GphoXJgEdH iEm4vSeUSKmStD5FttVf6VeY/JCbhAjUsuQnzdz2ikSvDyu5IaHFA9Y7fE83fXNyd7V4 M01uQI8CK3vYaOMS7UrqFgSHcxcDvBmYmdXByWSvmmh0kHxuVkuK1LAnnRI4Vafls0ub JSl4DxdLRQvnsCzGQyTE0+TWpFng2ipDeSidFSRUhC3rrdqWOhMp9ZFeRRwvWYMMUTks /pYw== X-Forwarded-Encrypted: i=1; AJvYcCVoMrDmJ5mLDXE0iJ5gW3p562bQECmj7pT0sz3tnNHPMkjfPwynmXkrM9Zaerdjs8oYVQgtHd+RMzui0+1Khw9UdYikrtUVhcKfqLfL5n49Xz+NcBkjc+HJqWQp3WDE3wesyiSNB3cjdJIfYwtyVAW+QCbsmBfV/FKLvm/GSPmGmGLV2SNV2GZ5nqXaaOw6QXzRDUEW1M9KiPCp7xvB3dDC6EuHyA== X-Gm-Message-State: AOJu0YzWOZRLfZPoLiqn7jxQK/uMUU6v+rA9YZRxixzoj8FZcJtFhm9U O8KlrkbqAvjb8RNqm+YNGec3K9SkIJrPCu33EQP4gsQXtvxpw6fA 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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: 13722578 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 08F2518F2DF; Wed, 3 Jul 2024 16:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023688; cv=none; b=kXJXKbKK6MEzQrUPPKO2fTcv1HePyiIxJxsAFTvKxT1LGr8sldmQICcgv8BQtEpcDe1b3HPHtkQqNyqBXrxs8efkQM4/fIxM1tbCgLGyz4wLzK7FO4BUPPc0Q2vQtN4j6cyNQ+pQARP+NJzO52gS4ZSqTCcysbu/7rks2zwnuf4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720023688; c=relaxed/simple; bh=UWrN4K6qjuTz47KoIpXFDK4A5Ll6v6S2fwyFXTvplLY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UbKknZSaG+L4vKp3lAxyYpG4VgldMo2rOcC2YaTIsLjZveCXOkBKAQWEmYgNw8TnAf7xpRmLHQk2y2P59jZmzFHrWWtwApcbq62FQH30cUsjIhGRPojE//vxmU/pFEquOBK+vgDhZFDQfplTh9HBnkowlUGVDBwEKsScPuKNGh8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MiKUj1Ye; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MiKUj1Ye" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-58b3fee65d8so3082475a12.3; 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=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=ls7x37QW2OZP1luBkaxPMKRrBAXpPPDVacZ21UQ0RHQ=; b=MiKUj1Ye/1Dqxw44G7lubNHtoioSPvAMigAsHE/wMCt+ij73gKWL+Y4yRoTu2ZG/p/ SXvs6/fZ7uQPgeGyPxUmdREfvtVPYJ6MAqMULrf/UH2Qck6hgckWdTUx/ChRWhLRdkQg ZluaxgUzE1sch3d6E1ECNIlb1GAeWDkUVOAKSPPxRsCewdT9roqqAwSSqqTef4u1LCek lTbpXoIzubo9GmVjgH/KvaYVSmUWQbJkE2VyYpyA/FveI49vo8AI9+7uMt3OeQkQtI9O NDtBzgUAjmGMw59tl81yQaTwU4Qfbyc73ktczwCjJ2i4t+vSrs1NR3U0XgMYs+GjqPez gZgQ== 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=jdGl8O8mbFg3yujpLc1wjViB/1/T74pindttK0CpSuJaldjiUpszU7z+lTBTIj2d9c klCvqB79D5Btq0UXbIScn1uu0o7vduq1dOJw1MssNF/HHJBaoIriHOzr9BZsdT/8ro72 fWADv22jUzsRzlMbTULEaKdMwvx7U1ku7GZjP1/c2YfrsEEXsIGvo8uWHJK+vuYz5pbq iiOAt8ZKx62FhjuzyKMKSh/ui5QTNW8kohS2uyRE/W9j7pj8okH3ELsNzuQb8tnAs7zv xQ3mzbGbOML1UzXcDijqi3B/5vG0NxTiN3iDrljUKBaf2NkiY20r+vHE2Dbg8ul6ieJM u4+A== X-Forwarded-Encrypted: i=1; AJvYcCVoNZY1a+rFZFKQfp5QM8RDQK4lli4k39Fr7+BE9YsN8RTPkw1R/hN7llFvvfnby350+R6EO6ThkDx1PGQnqLZjRB3FGI54X+5apQa9t91B0/EIgg0FD3wYg/uFgKheHPTclThkH9xkeqKItOvSCPS7GVnK05YOjFYME/wJIja05GduXPW1vBjPnr5ajZZyKBKdqIYFBThR0qj/YwT3Rke/OplZcg== X-Gm-Message-State: AOJu0Yxgct4g/rnrN5/5drBBMQ44oX2/jkAsgixwStyN/i9sgkGjE1Ok NO/vrBn2T/CQcoJy26rqtJzaWDN7FUDLJoHMTgptbDqEVVKvSGAvxFG5adR6 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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= `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,