From patchwork Thu Jul 4 17:23:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724075 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 C0D032E3E4 for ; Thu, 4 Jul 2024 17:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113811; cv=none; b=gR8ESp6kCJsVGUwiIeGzulW0thnZ+VVg3sNxmCP0BN29XGfCunxZf1ESzrKGKLlnXUcT2NZPCjMopktl7OmDb/C4wR0fvHx+RoQMk17myr/WIl5OolThWfWiZPX15nNFxFoS3El+wxumR0yvPBJL8SgCpW+0hC+bIEi8bTjz/ac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113811; c=relaxed/simple; bh=1FFSzWZVDSBD2A+D27kWrIyvC4pn+kvq0HYdU/k3PyI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r0qTY6uivJmljxjTS6T90f0nuOV0ThD62Jw6lrEs5yojVnQ+1fypNsV85NtShjjvfzwjJjgXWcmUyf4Sm5ZobexV0OngGEMP2+qVn4jw4jtlAI9EinZquFdsjjOhBBYLz9jUDWv+WzfkxzpV3dzD2y48Xk7c/nBT4gU3/7EMIYc= 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=Lgsn0Nou; arc=none smtp.client-ip=209.85.128.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="Lgsn0Nou" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-424adaa6ceeso5229085e9.1 for ; Thu, 04 Jul 2024 10:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113808; x=1720718608; darn=lists.linux.dev; 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=v/FvmgWoqRW+fG/g6TS9f9J9g4zOorBTS1e8w27Zmhc=; b=Lgsn0NouKoMs2ikbC6a1DDOXs3GoFhekeQBxNLmGZWCP0kGcWaAhEdiXiHmqWNOrXV GKXo1z+BjznoSYlRpcip2F9svn0HFg5A3XGJ/yF6U+I+1VkAQy39TupHTek52ATUzz9x huWH63xcJR5ZyNLank47LdxfJIx3RbgfCiC5cMKTUPMxseahQLJtySKkq2xLAl0WSxEJ 9gpIz1xxDf0gaAZeV0JBmUo+PKgecZNvS9M1wljtIlOoRLvpNK6Id0rXBijqFWXY7j/M 1Djy7CscfpnmZCPLmci8Gky2K02A+dkNBs2DVn+qmdALP9U+bi1kgWAdkeWwI5RFCN5q CzWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113808; x=1720718608; 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=v/FvmgWoqRW+fG/g6TS9f9J9g4zOorBTS1e8w27Zmhc=; b=eJL/xbeJ58WLqNLwis7plRXbQenlRwv1q7Ck1FFlD5PemJCemyTAX4ChsmUGBhC4QC Nvsz/AlvZWPQtjczcvk+sHIrkUNVuB4lJgrB9WoUhQrA4carwt1o3vbvTJ92xoO8vz0/ aVD3fVWwlwrjiUtni0S8pqT5dShYmX5R3OJM2/L2YtB9g9RdFC5xXIXgR5czB5tT5elh lHM8jTd5+Y9xMic4d/G8+gkXM9shw0XkhBD5IY8tu7trT1QMxtVou/MmH7AHMMNJIgys OPLu/VRRBz54bq+0rQ3oIuTXpS2jmgNe500p0ji2vR9LXvScUtUo9nEMb0xuf6xb0Br3 JFUA== X-Forwarded-Encrypted: i=1; AJvYcCWArnTAx8c2zM1j7MXBEMuA8+XkW9l5esT1GCSYiBgJIu1ndhOzQ3GUMHlKenqxyQBJ8Ozgm46ai/7tapo7cu5sfvFF X-Gm-Message-State: AOJu0YwvCpFf0y9zcK3CA78u29N9sYlu6Oad3kOnhbkSBl2siCOSyhTV nNNNg6ezqnIG/XTAbmqknVDND4e1kD+6CsO9/7pyTBPhD510PlpL X-Google-Smtp-Source: AGHT+IGkuS7h4KLnK+AZjYqP9kYe4MKb98PWAAeZkMdpo/UBy/dWlRc+ua+cpRXuqFWbFBjt3F1A1A== X-Received: by 2002:a05:600c:1649:b0:425:8d90:4ade with SMTP id 5b1f17b1804b1-4264a3dbd3emr16710395e9.22.1720113807982; Thu, 04 Jul 2024 10:23:27 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:27 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:11 +0200 Subject: [PATCH v2 01/24] mfd: da9062-core: Constify read-only regmap structs Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-1-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=2168; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=1FFSzWZVDSBD2A+D27kWrIyvC4pn+kvq0HYdU/k3PyI=; b=5rNOZMDQYllm8BI7xY2p55OAn8pxJw8n/xKGFCzdcLCf6J79Nxe1j0fpwJNj0a0Q3xhKHR6vv OMGrake9gahAbU0hMHYfukQGRoiNKk8U71xJAuZoJ2hia+czDry55YJ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `da9061_regmap_{config,irq,irq_chip}` and `da9062_{config,irq,irq_chip}` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/da9062-core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index dbbc4779170a..637c5f47a4b0 100644 --- a/drivers/mfd/da9062-core.c +++ b/drivers/mfd/da9062-core.c @@ -25,7 +25,7 @@ #define DA9062_IRQ_LOW 0 #define DA9062_IRQ_HIGH 1 -static struct regmap_irq da9061_irqs[] = { +static const struct regmap_irq da9061_irqs[] = { /* EVENT A */ [DA9061_IRQ_ONKEY] = { .reg_offset = DA9062_REG_EVENT_A_OFFSET, @@ -79,7 +79,7 @@ static struct regmap_irq da9061_irqs[] = { }, }; -static struct regmap_irq_chip da9061_irq_chip = { +static const struct regmap_irq_chip da9061_irq_chip = { .name = "da9061-irq", .irqs = da9061_irqs, .num_irqs = DA9061_NUM_IRQ, @@ -89,7 +89,7 @@ static struct regmap_irq_chip da9061_irq_chip = { .ack_base = DA9062AA_EVENT_A, }; -static struct regmap_irq da9062_irqs[] = { +static const struct regmap_irq da9062_irqs[] = { /* EVENT A */ [DA9062_IRQ_ONKEY] = { .reg_offset = DA9062_REG_EVENT_A_OFFSET, @@ -151,7 +151,7 @@ static struct regmap_irq da9062_irqs[] = { }, }; -static struct regmap_irq_chip da9062_irq_chip = { +static const struct regmap_irq_chip da9062_irq_chip = { .name = "da9062-irq", .irqs = da9062_irqs, .num_irqs = DA9062_NUM_IRQ, @@ -470,7 +470,7 @@ static const struct regmap_range_cfg da9061_range_cfg[] = { } }; -static struct regmap_config da9061_regmap_config = { +static const struct regmap_config da9061_regmap_config = { .reg_bits = 8, .val_bits = 8, .ranges = da9061_range_cfg, @@ -576,7 +576,7 @@ static const struct regmap_range_cfg da9062_range_cfg[] = { } }; -static struct regmap_config da9062_regmap_config = { +static const struct regmap_config da9062_regmap_config = { .reg_bits = 8, .val_bits = 8, .ranges = da9062_range_cfg, From patchwork Thu Jul 4 17:23:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724076 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.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 68A233FBA7 for ; Thu, 4 Jul 2024 17:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113813; cv=none; b=fNwEctaSm3oSwiv8H9uWqgP5DLvej6bMLoKwyU0qDDgyisC+jhMOwHmSxRl9JtvOwNAWS7wGc67JKaLLqVqKkTtSRnNDM2knuORF0Imn0Y3d8X4GqwVUC7L4U2qL6Hvn2TQBEny2/4vBhOy0o69eYb5q0wjCiBml2lg+fZ29nD0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113813; c=relaxed/simple; bh=U56saMjIfEuTsQ+HGnNS0wH0SrTxaY1/OZS4zOAPdKk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pp1av9SqXwFoUa0kaYPk/emP7KvjdT1WLvPpEKIkGLIJEI13eSgMug9NW4xubSTEKC6n7CdTxwpy3BfKnM/TUP6WBTdGCqx6SWQaOMVTCK0LaQpKo9sst2TKPCN+b4vCFQavktflbSn9cbDl0iYHKjlyPmFBCS2LNKy/uhdDTmk= 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=GAVgLafk; arc=none smtp.client-ip=209.85.128.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="GAVgLafk" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-42565697036so12408155e9.1 for ; Thu, 04 Jul 2024 10:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113810; x=1720718610; darn=lists.linux.dev; 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=lKi2JAqKWrjfu71x3mrudLF5NIxjHTPRhhtNA6MHl8U=; b=GAVgLafk41lHMvLQ2phuTgcWqZoM57iW7E7jcT+LkL9Z8nRaacvVD0b3kkaxbbVABO bi+utubUDdEgIXZCyucRCpJXLK85Rds0psxBvCLeGi4DSkFsDd1DJGiLi/g/rgZtIYTA /KVMk5UBeIrRs0rI3mC2R0hjZaDxU2zemqFPDtw3JEPNrZWMoxOUl5zvjbza5mps3wnB kqqRnTRqi+L1i9M8DppYXC3ZmjzgRp3bD3iTGdBdXpQ4ADMyGHxmyjSmr76WTgOgQJy4 09SbLZc1yJdDIixeEz/kPrdBP2MAgbG391c80d2c6JyI2XHwktyYgGtTZIgngD5foDfA aUsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113810; x=1720718610; 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=lKi2JAqKWrjfu71x3mrudLF5NIxjHTPRhhtNA6MHl8U=; b=Ts51lXDqslSEO9lgdjaoHov7gWzj39kdwzCNfVjD/yro6isPfOGrSQzS7Xy/+9E6PC kEk+5p7ZNxwBJf8khV+YmhZALhtYtdgpvjtv/xfuX+w52vme6Dl4z2Qx2+GGqBEBVzCp b5CCUVWIzSrmyl+Yh9VpZbdG2n++9QjbLHOomBbI7kF5IT/79ATKYI7V6ZKY2zumPILU Z19rR/4uAkVudxnW4EhQO77Dr0BtWEgusxCe8yVO+Aa/+35MGIfdDkuV54zfuKAOC5Dk ezln4dJGUgxTuRYvKPTz9+GbHSVT8pEckU4TZUUHtFFVk9WURGal3d2eRexnKo4FqwEA MBFw== X-Forwarded-Encrypted: i=1; AJvYcCVarfbnMdhqgaplBqbmPtwMGJb9qbZvFqpgVrFw0vrgMYgAC2X/A7nx0AqGiI3TAAkxLu8mL+Njqfa5EcyS4asI+Zj7 X-Gm-Message-State: AOJu0YzfhDNLu2coYh3SFql0Ehk1Po4zEpfb4zMk7WeN03qpPVorLgTR cPXcseWV9spfznkbjvL5lEctgNEc1dkgm4bohNOTSC+v0luiJp5k X-Google-Smtp-Source: AGHT+IGNLrdFCeh7xzObKjO851xmp5K6J+smKfZMeNHhP9RTpyPgPRafmRlv+Xb191RAmYV2oYOAZQ== X-Received: by 2002:a05:600c:33a9:b0:425:61cf:947a with SMTP id 5b1f17b1804b1-4264b132bf3mr19795315e9.12.1720113809846; Thu, 04 Jul 2024 10:23:29 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:29 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:12 +0200 Subject: [PATCH v2 02/24] mfd: fsl-imx25-tsadc: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-2-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=754; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=U56saMjIfEuTsQ+HGnNS0wH0SrTxaY1/OZS4zOAPdKk=; b=GICB47pBZbIZXIX8luZ2HJSfqqu1Qr3KPUXldLDV5bqbYrAei350hLaoTAiX3HfY6MN8QZPWz ASI5wULmcQfBdd0v5zKGpII4RxfM4cXCZOTKMKOe2UhA+6LMRR2Ik/J X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `mx25_tsadc_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 --- drivers/mfd/fsl-imx25-tsadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c index 74f38bf3778f..2e4ab2404154 100644 --- a/drivers/mfd/fsl-imx25-tsadc.c +++ b/drivers/mfd/fsl-imx25-tsadc.c @@ -16,7 +16,7 @@ #include #include -static struct regmap_config mx25_tsadc_regmap_config = { +static const struct regmap_config mx25_tsadc_regmap_config = { .fast_io = true, .max_register = 8, .reg_bits = 32, From patchwork Thu Jul 4 17:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724077 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 5F3624779F for ; Thu, 4 Jul 2024 17:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113814; cv=none; b=GQG9adidHYePPIOtHGKA3rEvbFbd9p4WzJyLHQcw+9y+SEjK7QI7eS50h3JhsMz8iL4P5Gpwc2aqIMVNUSPtkfWjCnHygUN572RAovuyvOlfP+z5wMoTKmQsFk9ToeSFFT8qjTIlhJEBoHj7NR5n3dGCyEAUd1tlW378656NZYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113814; c=relaxed/simple; bh=8tMNatK1sJi4q8SWgKJTcOEOVd74qA+MZpB63bLVf40=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qc9quOHpzm5szCngUmYDhMo6BQfTRFmEOoria9bGMKsRqAEoECgZNesXF5muuZUASc7MuR4AeZnbbDg1dcZ/3QeDQO/NM1a5bVHm7NvzCgwUUkB/8hbrrDAEWETZNLbFge0xu9I2CKLeh2i8qxbsZeiP2IEOAB7tBU3BOk8QeXk= 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=L6ZKy3Ax; arc=none smtp.client-ip=209.85.128.47 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="L6ZKy3Ax" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42565670e20so12468135e9.0 for ; Thu, 04 Jul 2024 10:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113812; x=1720718612; darn=lists.linux.dev; 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=M+SGNEsXbL97x+/CVxCXK+2nldG1TcI8vle2Sq9kOQU=; b=L6ZKy3AxIXtZ77AW24CUzEKHe39geyMlJvYjOO7XrOfClvW9kn1u0C0Wr3RQVegAVR /S6Ytb4TBEqypuvj29Klqb4UWw424000n+iUY0ormDEutpKU8Ihu3bVVq2dSVs7nGSOG yv+9u8kIMC/Oz2UbpOTXn/zFyIw8HdkAz8bmaixRWL/FBe1funMdbHVi3PLXQCfOmOMi wOCh3oczYNK7b/0+5iglPTv0OMjh/A4wYCwSBoB6EBed1CuWOYiW5oix3UgM3LELJdUt cbNHA3xSsFGZJ215K1hPH5Rx1yWyaKD1l+I2I/2QHyn1DlgMRL98ySNl2fdGSw5h715w 6NsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113812; x=1720718612; 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=M+SGNEsXbL97x+/CVxCXK+2nldG1TcI8vle2Sq9kOQU=; b=MI2RmAARi29LPK8vMquXEtaBR7KcufS6OPCQvz1ra1Y+KhOMbGoiN421cSgO8icKgp v4fB9A0v6t+Mzzhlp+8zILjW5Eh5+IAAgjwFhO0DghY8HQlfJpD+HtrdYtZq7sUUZhcs JVwOrw5weRrnedKMrKiDTcQP2gYgnvp2wBeA72AExriPE3G13GAaVaYPUec4KcdXtf3o GmKkl4ue84HGLnFgrdKiMCzF7beC/mu2b0mHxqN6CDv4ViJOI3yrC/RaTjpvVlJ1YKOT o9pVBAP7dniAsAuv74yFzKxDqW2g5d5ntNajD7xDZg0FKyW7DtuxoG3xYEb8Gdbz7HV+ FkMw== X-Forwarded-Encrypted: i=1; AJvYcCVj0JbvZyrKxWtWXKxALKi7ndVlEODczcKJHQkrmtt50HOvH8RdLzR/tWesVPvc+nU5I8AE+nj3tqXnQjdzKuo+uNLo X-Gm-Message-State: AOJu0YyFg9xmca4bQB9UXGhJ0sQbq4YgsLWndEiu0ln0vf1ljlArzyEX SyGvNbZbiDNkUVCeoi7I5VsJdUTWFefyiZi+G0qBlqNSl6C5eI5u X-Google-Smtp-Source: AGHT+IFlCPtJM1+sKYumdZ6gx2ub+4aVrMbZyr/O80pjxoUEqlBsGHADGvz3OYhd0xVYDGSg10WjWw== X-Received: by 2002:a05:600c:3b9a:b0:424:a823:51d8 with SMTP id 5b1f17b1804b1-4264b12e38emr21428825e9.11.1720113811696; Thu, 04 Jul 2024 10:23:31 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:31 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:13 +0200 Subject: [PATCH v2 03/24] mfd: hi655x-pmic: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-3-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=764; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=8tMNatK1sJi4q8SWgKJTcOEOVd74qA+MZpB63bLVf40=; b=YEtCZD5EBY7hxN5O+Cz2f8AlLr9THmWMnZa7wfo/k7lB8vW/T2U22+sMAVMPb6reODd6iYCWg W5ZrxQ0oUYyBTml5t9sZtOXTgwG+laIgc5bGKGBmbIpYGyv23CK9zCe X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `hi655x_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 --- drivers/mfd/hi655x-pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c index 042109304db4..5f61909c85e9 100644 --- a/drivers/mfd/hi655x-pmic.c +++ b/drivers/mfd/hi655x-pmic.c @@ -41,7 +41,7 @@ static const struct regmap_irq_chip hi655x_irq_chip = { .mask_base = HI655X_IRQ_MASK_BASE, }; -static struct regmap_config hi655x_regmap_config = { +static const struct regmap_config hi655x_regmap_config = { .reg_bits = 32, .reg_stride = HI655X_STRIDE, .val_bits = 8, From patchwork Thu Jul 4 17:23:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724078 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.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 3CCFE4E1CA for ; Thu, 4 Jul 2024 17:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113816; cv=none; b=Rt9aQo+Efk4+Vb7EDODnMWddw5SgnSzuqNriv7WBqzw8BuynFqVoIsdmGHYg8GplH0Q3BfB0D0QQbetGn2QXWq1/LITIuGfedqhO6Ss2tAY7jvuN40+6JJOvGqYPtyyRHR/4Eo405gjBfGr7aXTfnTZ3v1bNqWH3mqR/31raMYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113816; c=relaxed/simple; bh=enRHrVnnv2v5OSTzZ1elKgS5KbJVuE9GP9SdZn7OqTU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CxHcJlgn3fn8ukEwqmF3ePS8el9+rs+iU2iqYvCS5ZEREqnUV270co5PWIFHZaEOANJnpPQGQ/tzfMSucL4evDokSrDpKTGAmVql70luj+kMSgB345ICAZl5nJHHMIv6bAXc5XjxMpZLZxZZTo6+NJtM8H51fCp8iKCVibFZ7Ew= 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=PB8QPqif; arc=none smtp.client-ip=209.85.128.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="PB8QPqif" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42561c16ffeso6041985e9.3 for ; Thu, 04 Jul 2024 10:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113814; x=1720718614; darn=lists.linux.dev; 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=xOF3cIT6fgv4yx2bUJ2liLgQLjKC8cJY9QXkjtPW8ps=; b=PB8QPqifMEaW09eHsRyO13z0Il20ESLUnlK2n5ayIRkndEd3G/yB7JiAv7hwNBXr5H e1Szc3laRaB8oSx3Eq/cZL+54culFY2J8ox+ZWr57d00k+TnOzkaZGEAJo+LaKbNTtYq xpNcUNvVvyuyn+LoCoYY8lB3QjeM5pjHOxnqEwOeC0lYiJAmmYwAxduxofUmwA9VY9BX 0eV3UW4dY/Gy2wgf4OpPni9lh4jQmOOkYNrFC0KKD/c2F3GrTUhpY2+s9CB/pKygewOA 4+FGSO5x0e3Q1NLsp07bGhNoPLChU5O2eeJEBp13+Lkoii4gEVxeFqWIiYIL7CV9TgDf 52FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113814; x=1720718614; 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=xOF3cIT6fgv4yx2bUJ2liLgQLjKC8cJY9QXkjtPW8ps=; b=WbDsPjiNqvva6v5ssmfYw9jTTcC7mjR+FTIy9FlI06w64I8SGgke2Jg0U85m1Zzl0Y TeBDnNmb+V5l2ArRLzH7zJVmxkqv4rGlhICzoBrkoz7YsSzcy8qHqVDrYR40adoLLOX4 7h/K5+rMewR760ed/9p8OPjxLQBG/BjqmwSMrgxSPjd2Oy4yJSHRBqX8nxiZbfr8h/z0 Q4PUkTjU1aD+0XxjAFc4KNW1ligoPNmPi4DA0vDdilUGwlMRuKIcU9/wl/YHvBgqAmgj ahiSNkorRdgC+fLMG2nDWb/L58tIJwYIJ1o2e6yWRE6z16h7CZm1fMpbYvBsEdJRbwEv FCRQ== X-Forwarded-Encrypted: i=1; AJvYcCWL74K2Tw3Uc4k5eKxQ1JkQDuXr5Wb2kI79sY5F1EhZKSQhHTVuH4q0EO4A886p7gjlXEK2ykfM+eNIdIf+7cQyMTSJ X-Gm-Message-State: AOJu0YwYjvwGPOosKlA5arsh91J85LzeBgLAdT7ZS2IgncWdkkoLe/DN B6H9+uZYo7HdPUhycV2aUCSmdbAEtntkw/exGUkcrf81nRA5eM5W X-Google-Smtp-Source: AGHT+IEzmw9A3yXumyKWrsaNIzb4agNGIY00q8pnHYSGhbLatIjosLNG1uUTfjJdA7RFzFVtK3VgoQ== X-Received: by 2002:a05:600c:15cb:b0:424:76db:3583 with SMTP id 5b1f17b1804b1-4264a443effmr17152435e9.30.1720113813556; Thu, 04 Jul 2024 10:23:33 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:33 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:14 +0200 Subject: [PATCH v2 04/24] mfd: wcd934x: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-4-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=720; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=enRHrVnnv2v5OSTzZ1elKgS5KbJVuE9GP9SdZn7OqTU=; b=XIuP2+gdHvMBFVSbsXzw9ZBaF5PZZ0AWBvuCSWS4O7NfRXJH8MPcNIFnqzOfbfwY7WQzekGMm g0dgwbrDJImBvXSMHFQ7UyuIKLxA+ojrdsWiEfNRUJnmSk+DCbit6Bp X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `wcd934x_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 --- drivers/mfd/wcd934x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wcd934x.c b/drivers/mfd/wcd934x.c index 7b9873b72c37..fcd182d51981 100644 --- a/drivers/mfd/wcd934x.c +++ b/drivers/mfd/wcd934x.c @@ -109,7 +109,7 @@ static const struct regmap_range_cfg wcd934x_ranges[] = { }, }; -static struct regmap_config wcd934x_regmap_config = { +static const struct regmap_config wcd934x_regmap_config = { .reg_bits = 16, .val_bits = 8, .cache_type = REGCACHE_MAPLE, From patchwork Thu Jul 4 17:23:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724079 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.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 D3E916F09C for ; Thu, 4 Jul 2024 17:23:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113818; cv=none; b=X9pPstRErx8S/hPQV/fuNZBlM04qrxo72NNHaL3LdjrtYfNBivz1DhfonS1rpIBw+SimA1KXQ9JKVrJXOjOpoxXSnYop0LZaU0hWsSjwrFDZ32A2id8iE3/GmvmJft9GOCJd0gvCV2mX5jjTponT4I3mdB1dFGEVButiL9uNCS8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113818; c=relaxed/simple; bh=A8h6qBLOlBAO4Nf5Z1u5nWAte8uqhP5kHvTzaAaJZ+g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AAjF9BhZAokWlj1jw3ecQvjLFiAD2TztgZqtUC2qSc484D75PGrmTpSIl/CBL3lz5LBLTK4b6yNU7NQolwwvM8yMjbpxQcEYdHxMo74YXXkh0NmGdFFskWRg1+1RzyM0cFO5+2dnmDpZHrRYujfB/UbEcUsM7RABl4eywZ39j2k= 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=HZmvebz0; arc=none smtp.client-ip=209.85.128.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="HZmvebz0" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4255fc43f1cso5759055e9.0 for ; Thu, 04 Jul 2024 10:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113815; x=1720718615; darn=lists.linux.dev; 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=1DvuUcSFwNO6KhZ/DbrjWlR0SnoFpdvXYRD32tmG/+Y=; b=HZmvebz0tJQJctHnLiQpNmtyGaX294SJEV+fcT276a5d2M9BPQrvqvV8Vh+gSbUZaO kUnRnpdUQGPk4RETvShFNFvTry5kgD6XFH7wW1LT7rTdX7JfxA1t1G1lYoUVYMgX0POo TGv+lZJMORvnHfIrQ+5FC2VTK2jLC2mhp1tTRxDVt0f/SdPWsLsXOTWVXCqU2c8U9aFH Uon5LHYdVJ4o2T810q0jHmOnDHuLS0sPHDJqBm7ZjE5FyKqKGB7uH9f7jeSnSldGypIK AMz42lZy8p9uaC3IiMrlP2vbSDE472eJ4E8V4dPxtf9FNYoAU6M21PoTl6f1dW1XWqZg vDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113815; x=1720718615; 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=1DvuUcSFwNO6KhZ/DbrjWlR0SnoFpdvXYRD32tmG/+Y=; b=WWFnBkScvYweiyEmojBA/O8bvyrsa9ec4RtC3ZHV5pxNo9edJWt+rNcSqKcKxjcsY5 CbYSd72T1f1h9ZL4xvZtaAPWVHoZQpdOV+bMRQ7vr3PQ/abOw1BB5TEEoAbS8ylVW2lb r4bcuXKSMFt4jzd0x/InjN2y+sGbvx5l9DG/bjwDPHpwPRRwnxsNcIFhmXu5MWci0PjT wHNTkljchrOx05cZtpSyRAVBF+jC4wzts8lzGOdjaeBvib3SR7BZys80MLHh77Ubigya YfZb6sY+LvTo1fkxTd+dQvO7+gTcEgLp+SwBoSugQDnfcdci3yB07UojjrKY2uRmpAh3 tzHA== X-Forwarded-Encrypted: i=1; AJvYcCUc6F69oiDOZ7F43IviN0hq2Noz48XoGiwIc8jQ9Agr1HcULKw5xpp9uazhMTgcMkO7cbZI2IIM3p954Gs91MMbwCKD X-Gm-Message-State: AOJu0YwdgNhBPy2yut9+IdssCNccsby8/a9H/6XxJitVU8pH2jdbgHyy O+4HQ1VBSES4/5eRRQiBZmM2fhMKdqrXrRRFBV45ZiXENpLVvDrY X-Google-Smtp-Source: AGHT+IEc8Rc1QEIwVEXfc7Rpogc9rQkSUkCFNEJZBG+Iw/peGXh8S4XAZEgN4bTVwF0KQdZg/ByJHA== X-Received: by 2002:a05:600c:3b8c:b0:425:d61c:77b1 with SMTP id 5b1f17b1804b1-4264a469699mr16561885e9.35.1720113815196; Thu, 04 Jul 2024 10:23:35 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:34 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:15 +0200 Subject: [PATCH v2 05/24] mfd: tps6105x: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-5-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=722; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=A8h6qBLOlBAO4Nf5Z1u5nWAte8uqhP5kHvTzaAaJZ+g=; b=ZiS7T6T4IQrp0Q5cFzDm9V7HK3fd//OdoA4bcGAGfdiPsK9NjQwbEsdd/FBGaaLb32Comgql0 LQcTPmwFMOLA4zRWYd/7xWC357cvLXcrja6ylouWSP+uIMonhxpIKWF X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps6105x_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 --- drivers/mfd/tps6105x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6105x.c b/drivers/mfd/tps6105x.c index 0da1cecb5af6..e2f6858d101e 100644 --- a/drivers/mfd/tps6105x.c +++ b/drivers/mfd/tps6105x.c @@ -23,7 +23,7 @@ #include #include -static struct regmap_config tps6105x_regmap_config = { +static const struct regmap_config tps6105x_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = TPS6105X_REG_3, From patchwork Thu Jul 4 17:23:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724080 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 C556612EBEA for ; Thu, 4 Jul 2024 17:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113820; cv=none; b=CbpyArXN3BW0Vc4PW6Bm6UafhvMC92Alz7QIiyy5T77wUylJBxAxVRdNUO8vJ7I8mxJisDQs4sgzHuc+Zuo+lC35k/soyCbJLnoUcnBqJbMB8QzDjwc8GHfS9xPeHapKXYgki2FnAA/vUTJi3j2TOqZRbuBM4pLPy6ywqgPbCpE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113820; c=relaxed/simple; bh=pfp5RcagdNcIGe1QQNjVuwzMf32RmDK/Hd4QnG6Cv0M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y7lzsoJSnRLj9Fw6iWpkk8xd2tjRAhbzps8QLUG4VanEFutHJiy8u4rduvSHf8kGmhzC/1YVXhCvjrgPGf3wF/gDTqBIKcNmOHCqBNW0MI1OCiRXp0mrg+0qMWtxaQ4R5yVKmFZw6BTYnOderFFa87xI29MPW82waVho7gZ3hb8= 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=SpbiEKOM; arc=none smtp.client-ip=209.85.128.45 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="SpbiEKOM" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-42573d3f7e4so5684765e9.0 for ; Thu, 04 Jul 2024 10:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113817; x=1720718617; darn=lists.linux.dev; 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=UV1ltKTKaW4yZCRIt1PBVlpTJKfjEFuyvDZdCLF6YdU=; b=SpbiEKOMxHg0WDk6YohPP9e2l07cJexq8uPerYrZNM8nvqdamIxwkjfc4uGvOKrv/Q s1eOYh9EpfPWww+blqyNhIHm7zpLLR3uIM3cfhtKJ6H34mTYoR/FTZFUe1KJu8UAziaQ JnBbOfrAyTmTceujWBNe8g3fI0TMdq1VMjH+Mr1I4WFGg9YWuE6hYdDCvAaZtqnu0MZd XtEcmq9s7ZvvqgX5n8uu2t0IjqTKbKODxNsQZUa4ySyrXcjHfAMHF2RgLv7wxs+QXymP clSgohqrCgHpZtg++cLpI3lFCFpTA0KZ37NHhziCoqMsFGMf+W7d+U+xGfMkxosTRRWE Truw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113817; x=1720718617; 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=UV1ltKTKaW4yZCRIt1PBVlpTJKfjEFuyvDZdCLF6YdU=; b=AfruBbo1Pag/CHVQY8ofrceSmmixnolzg1k+lCspDG5E4iG/khkmAdHOGw81rknUfY AN15/8sZOvPN3YkN/XaS2hpPvcpso7RPvPJSMeT1P+JkTxtnsn5KMWfpcpmBPJSacJ5S p7r5UTSS7L8fxxGN4/VvvBKt3Ujp2vo89bNlG91li4H9aISvEh2n5eVD0mvaS5ZYQ2A6 ruzB+ZKqVAYgodWPalhyF8TkAaZ1ZkenRULTHQ5x4SDptq3SuMwckk56p1iFCTyG/QTT oYkHQp665YiU+otw8QLZ3PAyC9mbwD6mCIEumJmS2m1QGeT1414BWQKDif2jlgu+heCS tTJA== X-Forwarded-Encrypted: i=1; AJvYcCUA5O9KvnYFtwJYVB8Mvg+UqYQsCwHEL6WqQKCZhrX3NDkVB0GYekSQSThOAWm/+DvWFHFc1TV1BhbSTy2nx1Ic+pqR X-Gm-Message-State: AOJu0YxW6cygHvhCyLjMUbTV0HnDRkHgsV2/nQcBZzKsu85oQlq4nMez 1KezyNP5wuTczzNgm2/SxhWdQHPFoGTw29GWSA26MApIYjG3EaZ6 X-Google-Smtp-Source: AGHT+IFayGbOWU2NuV+LVeotJFd37Zf8oQyJqVq2J1/NgNQICLpdvZCrbJvr8r1EBe2/OU/bDuu7Ww== X-Received: by 2002:a7b:cd05:0:b0:425:7c29:7480 with SMTP id 5b1f17b1804b1-4264a48cb74mr19709845e9.38.1720113817105; Thu, 04 Jul 2024 10:23:37 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:36 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:16 +0200 Subject: [PATCH v2 06/24] mfd: rohm-bd9576: Constify read-only regmap structs Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-6-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1538; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=pfp5RcagdNcIGe1QQNjVuwzMf32RmDK/Hd4QnG6Cv0M=; b=7Fa3AFgLDuDESYIOxUfDUDhsjrx89iv7ob0w7RkVM53841DbBwwV/uqHvUqzzinL++/HsfgdT gBovMDhBC40Cjpvl23ffJlzByWK0PUy0vzsA7WqG0uxz1GWcaPQA81G X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `bd957x_regmap`, `bd9576_irqs` and `bd9576_irq_chip` are not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Matti Vaittinen --- drivers/mfd/rohm-bd9576.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c index 3a9f61961721..17323ae39803 100644 --- a/drivers/mfd/rohm-bd9576.c +++ b/drivers/mfd/rohm-bd9576.c @@ -57,7 +57,7 @@ static const struct regmap_access_table volatile_regs = { .n_yes_ranges = ARRAY_SIZE(volatile_ranges), }; -static struct regmap_config bd957x_regmap = { +static const struct regmap_config bd957x_regmap = { .reg_bits = 8, .val_bits = 8, .volatile_table = &volatile_regs, @@ -65,7 +65,7 @@ static struct regmap_config bd957x_regmap = { .cache_type = REGCACHE_MAPLE, }; -static struct regmap_irq bd9576_irqs[] = { +static const struct regmap_irq bd9576_irqs[] = { REGMAP_IRQ_REG(BD9576_INT_THERM, 0, BD957X_MASK_INT_MAIN_THERM), REGMAP_IRQ_REG(BD9576_INT_OVP, 0, BD957X_MASK_INT_MAIN_OVP), REGMAP_IRQ_REG(BD9576_INT_SCP, 0, BD957X_MASK_INT_MAIN_SCP), @@ -76,7 +76,7 @@ static struct regmap_irq bd9576_irqs[] = { REGMAP_IRQ_REG(BD9576_INT_SYS, 0, BD957X_MASK_INT_MAIN_SYS), }; -static struct regmap_irq_chip bd9576_irq_chip = { +static const struct regmap_irq_chip bd9576_irq_chip = { .name = "bd9576_irq", .irqs = &bd9576_irqs[0], .num_irqs = ARRAY_SIZE(bd9576_irqs), From patchwork Thu Jul 4 17:23:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724081 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 B4E78137750 for ; Thu, 4 Jul 2024 17:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113822; cv=none; b=liNfVbTBC/DhywMWYgVru6mVGDtw3MEvBt/fElVXSloGbdd3JtvwBKaXyYVwisEP8nwJwpUK+EDYIyIEH6nDygZ6x0rM+YAqDUuMSDln5TxnchaIH+687ReaIsuIic152fGlkoyACwgxocbeu99ir8RoNs1joHeXqk1Ru/DnJBU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113822; c=relaxed/simple; bh=LKI2QEHHewZIBoO1kuOf0vVdX3Kg06AQSdrYQ8twpkg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=D/MsgDmRdsWIpJ7h9pbyJEQctYwakytYNWZU/uIBksXt0RJDiumHsnfgIqTmgq6E1oxL4ylwx/MRcEFTThuPREoJIInKHpBVmR035Jo3JEDQbsTOsHa4vqCZQm480ZZBh/5RXoa1uivtNVGE1Z+6aAsL/YmTmpnH1pltux1YMu4= 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=YYxEVF8d; arc=none smtp.client-ip=209.85.128.46 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="YYxEVF8d" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so5669385e9.1 for ; Thu, 04 Jul 2024 10:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113819; x=1720718619; darn=lists.linux.dev; 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=mWEywv5t5/SdpV2ZwtxWx9CvH6fdNiDrX1/VhDJvqUg=; b=YYxEVF8dPbgNHfzrXh/rgtsfmMiZQR6gi+kXobJv4PVpjWT6Dzj9Ys+bRgGy8mn70Y /xq/Dd7I3nRM4DO3NL0KfGcVpOH0LLcR2gpcEuJ6ped9ioW/iU36GtSAXsTmC3XPeQEL tXrKPk0tE19LvIAA8swABKFbcmnd9Uj68iFqo5euOVFbGkQqHfB8C16t6cprYf5qGGaZ qvVgmnjkMvrL6JmH62kxKGXy90ilZQmIvIrRlByYAu56mJrff470A4W9jzVpgcB9dwFt 1mrN1ftUyIMZSiK/nMPBYXaKHBwOoD8ZzYe2YME11oS+rfUFua1GFJF4XFDDv4CSeyZS V48g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113819; x=1720718619; 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=mWEywv5t5/SdpV2ZwtxWx9CvH6fdNiDrX1/VhDJvqUg=; b=NEccZ2xSIcQIvU9tja7pNgkEh4HtFzJPUTVYAGJWgfRc4SbvWbqu2HfLMM9+QdFPHs FLmtvxfjbL+JFUdABNroy/QJpfc+OtKpikcgCIDQz5GXWQpUNGVAOOqVchXFL5LcBhh0 bh+4ndUPeMqwQsGVG77k1G0cCUNBwiEpO3REU+BTOtsOBGVXUVNWvwvW5hq+FQLa8leC myzIb4xQdWNHXlNsDTjKUs2OKRlEPfvYXGdsHpi0AWJINLY6jO8YrLSXh6LPn34PYELz o2XGS3U4dSkxZyJ1GgXfWeAesWeLYOQg8g9QG4J3RKS11VV7sWcPdSGzAZoX41tjNP8l gaUQ== X-Forwarded-Encrypted: i=1; AJvYcCVCiBOQr5J5+M9Rq/xnluyJ8PwvHwZc6YRbHtrbU6yTdSTqx3i2MOYqWD+uaPxO5JkRR6qkaK1Eb1shQl5isQg2LpY8 X-Gm-Message-State: AOJu0YxTHkR7dFE6Tix2iPA++2Ooy5HWlHOKRsFesaTYzTGrE0HVhgNw 5GtSDD+lnt54S/8FqBONUM2PJBfI2evaK3xDfx1pzEjo5MqKFVDr X-Google-Smtp-Source: AGHT+IFaLJbGPGKqt38tbITvJvDUJW0cQKWDZwNHz+0MsfB1OM0rGrAFAbj1uDUigyKdYCGktKoyHg== X-Received: by 2002:a05:600c:3107:b0:424:aa5a:280e with SMTP id 5b1f17b1804b1-4264b124440mr20595165e9.8.1720113819026; Thu, 04 Jul 2024 10:23:39 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:38 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:17 +0200 Subject: [PATCH v2 07/24] mfd: intel-m10-bmc: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-7-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1447; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=LKI2QEHHewZIBoO1kuOf0vVdX3Kg06AQSdrYQ8twpkg=; b=4Q4EhtFXAShhKO9oUsSVsc2sdoAyfwskGN2NUMjuJ4hwqJmSsRstHVgJZYGl2RYvZ2AqucTml oSt0eImsfB8COF21mipK5P99JHEEqOPFIZ4lneZOz6vtuRUtKukkgQz X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `m10bmc_pmci_regmap_config` and `intel_m10bmc_regmap_config` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/intel-m10-bmc-pmci.c | 2 +- drivers/mfd/intel-m10-bmc-spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/intel-m10-bmc-pmci.c b/drivers/mfd/intel-m10-bmc-pmci.c index 698c5933938b..4fa9d380c62b 100644 --- a/drivers/mfd/intel-m10-bmc-pmci.c +++ b/drivers/mfd/intel-m10-bmc-pmci.c @@ -336,7 +336,7 @@ static const struct regmap_access_table m10bmc_pmci_access_table = { .n_yes_ranges = ARRAY_SIZE(m10bmc_pmci_regmap_range), }; -static struct regmap_config m10bmc_pmci_regmap_config = { +static const struct regmap_config m10bmc_pmci_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, diff --git a/drivers/mfd/intel-m10-bmc-spi.c b/drivers/mfd/intel-m10-bmc-spi.c index d64d28199df6..36f631ef7a67 100644 --- a/drivers/mfd/intel-m10-bmc-spi.c +++ b/drivers/mfd/intel-m10-bmc-spi.c @@ -24,7 +24,7 @@ static const struct regmap_access_table m10bmc_access_table = { .n_yes_ranges = ARRAY_SIZE(m10bmc_regmap_range), }; -static struct regmap_config intel_m10bmc_regmap_config = { +static const struct regmap_config intel_m10bmc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, From patchwork Thu Jul 4 17:23:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724082 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 C0A7D13AD03 for ; Thu, 4 Jul 2024 17:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113825; cv=none; b=UkADPDg9LivaZAKuuOJfkKjvdbJtrfrZbtYrtGkt2w8khHFXOSBzto2ZFrPzO5zVLKlv3n0VSZE4oHf/7+UtJMnDtCTx95Z7kEYvPjM/BiaGHjsRrwQ7CW08bv/kh7Hc4sovv9aK0OPchBgu9KQ+U1A3HUXvDgFO/2kSizeMoTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113825; c=relaxed/simple; bh=1QPZacUuOeaij0so0MenKs4sY5xXKtXayfwYDVrHiWI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rq6lXcyuGvatcOMA5DqGkCqLbrZ9S791WEGsJFEf+ovabDB9FKjsJh98sJ1z2BMCm8LjEZ/L//b/XG6eLQdA/mpVXPfv3zaOZdPn1wPwQ4XZbqRNbAKDj8DvaIcFlWUKDAnrMJvaVHyIP4XzLl94xxj4k5qAznGBH+WJfgJQgiY= 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=WHnRJrHl; arc=none smtp.client-ip=209.85.128.44 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="WHnRJrHl" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-424acfff613so7416025e9.0 for ; Thu, 04 Jul 2024 10:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113821; x=1720718621; darn=lists.linux.dev; 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=oZH0N2IdligxpGGw784EbC3Sbw2mtJNXF8+12BAAhog=; b=WHnRJrHlUCSkZ49KH5AgqrMIMoFioWQufvZvXP82wBVRxDCj57OVjBiNafdR4jfMIQ 62XrNzJx56HdXQlBQnBIpqPIb2RU72UKnlah4PWFaZw6q6b4K4u94OzB3DlZOITmW8u0 j5Ynl4aKX8sls10Marr2+z9kClk5JKzlvPCWzA2PxzUSKjEWTMP3VQdKM98h/C4y+Bb3 O67PTT4FG8eReVjyMQHk7O9H/scCV0skUL9wuYSf5NPJ47Qrpyh9minZMz7eNDjuBuFY VYQN9K50G4fg55hQzVubuaNB+ndz+gPHxFyouQIt9UXgOaaIPFgHsi4uuMzWN9d0ibBB oS4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113821; x=1720718621; 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=oZH0N2IdligxpGGw784EbC3Sbw2mtJNXF8+12BAAhog=; b=kY2r60ssCrXN7A0SkRP5HotirC9IdqZYjfposx9BxYUI88bsbMTFIZ4XKwLuA81qkJ JYaUnjSluhDBKo5iv6ojgYfVErc5QR6Z32of06RVpwnDxP0e2BrmpWpNHhYgMtfmeEaZ qnkKHkcO4my44U3YpoiMzdEw/ZIuG39yTyY+UnzgjolXHEeMFQ5lcV63Y1ivngpu11MD +rU8F72tvIImXjqVEdEe0KbglHokkfZ0FUISQg/kSp79fgzk9S+8sRU4iv8OiEcHjcgl IR5/NxKtuAP8eSgObZ/9acxrY9uJJbf09gC9ZHlO90tkmpOD0ywuhJ1BGysl3pHpIMqG usMg== X-Forwarded-Encrypted: i=1; AJvYcCUi2bJ/g0aUd9c39pZ7eXPqKcN7TwKSofr+Ra+Zida2+y7dnc+T8Cesi28St3tGMTUwi8tNbsLqbnIkFziX46SBFQ0m X-Gm-Message-State: AOJu0YzPai8vJ64UhU6oMNGh8Znhd4E7Tf1XaEjT5MyOL/YpvftMkDd1 YCxY/ukrc7rwLE53kktkEqZaG6tw8XSha00OthA2k2KzLfc765TC X-Google-Smtp-Source: AGHT+IHVDvV5ZlABTxLnxGN+P/Oktapr3Dfo/w3DqKV5F+2RPZu1eXQFA/3w8stNEW7xOKHq54yiFg== X-Received: by 2002:a05:600c:1c0a:b0:425:88cb:1741 with SMTP id 5b1f17b1804b1-4264a41601bmr21035435e9.36.1720113820982; Thu, 04 Jul 2024 10:23:40 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:40 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:18 +0200 Subject: [PATCH v2 08/24] mfd: 88pm80x: Constify read-only regmap structs Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-8-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=2233; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=1QPZacUuOeaij0so0MenKs4sY5xXKtXayfwYDVrHiWI=; b=7MzL1NssvI7gS5f5E0UMDoYA0lY9TxFldWlNp/BKaAes/ovgxyjcP6ITmOMmnZZoP6kcROg9w SXtwvZwXdcvAoBbxd4UY/nYYZ9shNBxeL0Q03q+Re1QIghRS9qh1ith X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `pm800_irq`, `pm805_irq` and `pm805_irq_chip` are not modified and can be declared as const to move their data to a read-only section. In order to keep the const modifier for the regmap_irq_chip structures, the pointer used to reference them must be converted to const as well. Signed-off-by: Javier Carrasco --- drivers/mfd/88pm800.c | 2 +- drivers/mfd/88pm805.c | 4 ++-- include/linux/mfd/88pm80x.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index 384ecf5301d2..e9941da58b18 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c @@ -391,7 +391,7 @@ static void device_irq_exit_800(struct pm80x_chip *chip) regmap_del_irq_chip(chip->irq, chip->irq_data); } -static struct regmap_irq_chip pm800_irq_chip = { +static const struct regmap_irq_chip pm800_irq_chip = { .name = "88pm800", .irqs = pm800_irqs, .num_irqs = ARRAY_SIZE(pm800_irqs), diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 205f0762a928..f5d6663172ee 100644 --- a/drivers/mfd/88pm805.c +++ b/drivers/mfd/88pm805.c @@ -73,7 +73,7 @@ static const struct mfd_cell codec_devs[] = { }, }; -static struct regmap_irq pm805_irqs[] = { +static const struct regmap_irq pm805_irqs[] = { /* INT0 */ [PM805_IRQ_LDO_OFF] = { .mask = PM805_INT1_HP1_SHRT, @@ -163,7 +163,7 @@ static void device_irq_exit_805(struct pm80x_chip *chip) regmap_del_irq_chip(chip->irq, chip->irq_data); } -static struct regmap_irq_chip pm805_irq_chip = { +static const struct regmap_irq_chip pm805_irq_chip = { .name = "88pm805", .irqs = pm805_irqs, .num_irqs = ARRAY_SIZE(pm805_irqs), diff --git a/include/linux/mfd/88pm80x.h b/include/linux/mfd/88pm80x.h index def5df6e74bf..551ef1c367d6 100644 --- a/include/linux/mfd/88pm80x.h +++ b/include/linux/mfd/88pm80x.h @@ -294,7 +294,7 @@ struct pm80x_chip { struct i2c_client *client; struct i2c_client *companion; struct regmap *regmap; - struct regmap_irq_chip *regmap_irq_chip; + const struct regmap_irq_chip *regmap_irq_chip; struct regmap_irq_chip_data *irq_data; int type; int irq; From patchwork Thu Jul 4 17:23:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724083 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 A011C13C682 for ; Thu, 4 Jul 2024 17:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113827; cv=none; b=e4YlSaGTim8OWERtMB/JObkWxYMW+LNiNwMp296yDu2NluHKIezuWpIanpYWhq0fs+UIDXFHsPS4VUYDT3b6KetGMtbDXXgCmiH4kF3Qhq2oPIuRbcoFWqg41uTu/pvuFWte9M/x1BvNjwvjQbeyqIVl28KCZgudz+jzxOAU1PI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113827; c=relaxed/simple; bh=V1YaAN6Ae4SYUS+F2fqEOGoyBhvW6e5jyjeki/M8uo0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P0QgmXZqvkHHSNzzOLo2buCyPQX34ML2Xf6heF5qCcQRU1nquZu+i4IL4EPp8zOlpC/1pZs0VeCQ/wvaCU1hW+coRVe9OhPHObyIBt9tYlfqCsSEgMlZ9SqCEx7OBoVCZfs6rWOd3LXvqmhxxXxYDQa+DMwIrrFD2joopkqV6Fk= 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=lHDu1c1A; arc=none smtp.client-ip=209.85.208.176 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="lHDu1c1A" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2ee8911b451so9834361fa.2 for ; Thu, 04 Jul 2024 10:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113823; x=1720718623; darn=lists.linux.dev; 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=jEcKMLoBT3vk4y3IWrtrUEpgZYcFGVwoc0kCUdiwlg8=; b=lHDu1c1AWAQ4BeBudURgII7Gdb9IreK4X7WjF5aJQz8PmyiYxVDfZkOg4IORdQslEi FYB1IZAzNJY7hGdifXFKAbD3LbzHbxOwLvMfMFCzjehcuU8+jWS20R6ozEUM8PVYrmcj 5zzq/pMEfGlX7hdM+oQ/gwq1pw7zBPKpC+Wz96JuMSC3KFiBHAB9AhN46Q7PWfoy1xN3 3mBhbPHnH9CBHSixSMxSEP/Z2gGmcwPE2ubRw7Pwv7dLuKAaQ0Er9xybZyPx2rUATTxt UD+vPRm05o+xeEZIyXIMOdGnu9Vs4yDdA0F76VrnQsMd4QnHcJI6K8msUCe3/idv+30B Mzzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113823; x=1720718623; 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=jEcKMLoBT3vk4y3IWrtrUEpgZYcFGVwoc0kCUdiwlg8=; b=mNBZdar6/F0o3P3LIesMmY5ekOvxhwR8E9rw+1kd3QRVU7M07I63hYE6VM8yCgOl4S Beun8g2eUZP56yDZWaJwvo5GBDz3t83422HQYpEdmqUOL9/gKlTZ3Q7XZYLB8m4KWmqq 6xMvXP8d9zC53ES+iinUEna2OZKNS/3Ia+pOYBoAfN/WWFHfAYfsM3E1Sk4y2ZHXX7+q txMLMqdXVpI5KXBXv1ASum+EklxwRjPycwrVPr2dPECG4/UmMUAZiCqfGCiSy4QKe2ym 0bNZW1XH7BhOOd40DRF979/aYrsCd3+gHsbRi0F1lgIqJzOhrZQyo2XN1YBwG/ceFvKx QvrQ== X-Forwarded-Encrypted: i=1; AJvYcCVcal58+xRcQlgH06rSAMgPbRSeMcBneGdSl9mL7C/x7dFAVpGmCblj89Kxej/eu7jL1rb3QvFGeTafSvCksGay534D X-Gm-Message-State: AOJu0Yw14DjFMooz1WekxSKVBT6CIXq5Kxe7Y8y/lmx0wAKBCJnsUacc PD+9lJIuIByyJmgJNQGLrU6DfpaEXoA+fas8XovLGyAXo9vuHGPt X-Google-Smtp-Source: AGHT+IFNP59IFboyukf1rrfIMaw6kHzCXFpazPd2dB/0uvup5SShiaC7xDpvSqu5YY267U3gS0hiPw== X-Received: by 2002:a19:ee12:0:b0:52e:9ebe:7318 with SMTP id 2adb3069b0e04-52ea06b7845mr1641184e87.43.1720113822765; Thu, 04 Jul 2024 10:23:42 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:42 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:19 +0200 Subject: [PATCH v2 09/24] mfd: bd9571mwv: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-9-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1160; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=V1YaAN6Ae4SYUS+F2fqEOGoyBhvW6e5jyjeki/M8uo0=; b=UeWR2+z6XmU+2iBQpnyuihdm9i6qK/rcCaw1b12r8oK8MhRMJIyAVI98/jj/H9/QhGmnanzDw YeBwmgZ+wdbA+6PBSsftXrA3de/3ic8/8AP/xLAgw1JjbbW7kkouDCs X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `bd9571mwv_irq_chip` and `bd9574mwf_irq_chip` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Matti Vaittinen --- drivers/mfd/bd9571mwv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/bd9571mwv.c b/drivers/mfd/bd9571mwv.c index e7c2ac74d998..db8c2963fb48 100644 --- a/drivers/mfd/bd9571mwv.c +++ b/drivers/mfd/bd9571mwv.c @@ -93,7 +93,7 @@ static const struct regmap_irq bd9571mwv_irqs[] = { BD9571MWV_INT_INTREQ_BKUP_TRG_INT), }; -static struct regmap_irq_chip bd9571mwv_irq_chip = { +static const struct regmap_irq_chip bd9571mwv_irq_chip = { .name = "bd9571mwv", .status_base = BD9571MWV_INT_INTREQ, .mask_base = BD9571MWV_INT_INTMASK, @@ -159,7 +159,7 @@ static const struct regmap_config bd9574mwf_regmap_config = { .max_register = 0xff, }; -static struct regmap_irq_chip bd9574mwf_irq_chip = { +static const struct regmap_irq_chip bd9574mwf_irq_chip = { .name = "bd9574mwf", .status_base = BD9571MWV_INT_INTREQ, .mask_base = BD9571MWV_INT_INTMASK, From patchwork Thu Jul 4 17:23:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724084 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.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 9E2BD13CA99 for ; Thu, 4 Jul 2024 17:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113828; cv=none; b=f+7aGjsyMBvLdLOAzY+HaeBpopuk2QyGFpxNPlawiz2Ra1wzobLJkai2/p67ay+2c4UrTL7oP9ngbsaYe1TCL56LepkXss9ix/idC29S56veSRLI4eUTlPj/hiX5AAi200UY+qzvNv+MvNPQLhIF8xMRec6l2dze2yVA/inPv3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113828; c=relaxed/simple; bh=iaBF13NOr1XPkiRrsRFdEpI6lgqiWVNSRbGWT5OqpFk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KkTqbPpjrHIE7+ZOOI+sc8EtOCnrQ3yU0dnxqyqf/4vZ6/+D3yUmM0Asgop5hIvoiE6teUyjPL4KtNYyJfeYG4BblcKmqgVtdJUz7zilmSD1HU9pBF/LdlgSlx7q+GdlmpD/WygEYGYZJbN+8647vuY/jYOjzDx56wuYNtelYeY= 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=juf3aQoZ; arc=none smtp.client-ip=209.85.128.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="juf3aQoZ" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4257d5fc9b7so7323515e9.2 for ; Thu, 04 Jul 2024 10:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113824; x=1720718624; darn=lists.linux.dev; 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=IpaImdJvWvSJvjBxL7f9lYNmbsKrZex9zQVuWAEj5kU=; b=juf3aQoZc4VXXRukkX6UrgHOF7YAyfyx5kV0OP8eeSyAcZLnoZ2OJs3nTI/q2n9Kfb VItv9erpJaur+5L0L2p1dIl2h22YXnpMsS28Gz4XJs9uq6MNYtX1n5nxlQDkX394eRKq UfkZTDs1xY0yfqqzzkxUdydFZgtXmX9qbpMCoFk/pedKADvCqoQLsIfXEoSzn+2camse yqWwVHktKdqlSvqWx3heumi8TYMUMURK1lj0aSCaxdLaQsGmqKnv27rkqQ/jnEMf6fB6 xLrjvC7RbhDTsS3uFdMCPa8B31A6ZB36zSJZ1EgLvhnRKjIyeAdTkGQ9zDH9HYaSXEf9 pwNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113824; x=1720718624; 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=IpaImdJvWvSJvjBxL7f9lYNmbsKrZex9zQVuWAEj5kU=; b=Y68Lq67CLl/FM75wRvUszGbDLkkhy+kRw4agwqUIVsdR/scfxYZp7tzt2/G5HIgpKM JN2AffJYU1y4B2dztbqUO5f3VMHdpe5RyGbr3ZvcpFMdW3W0wIuXraKIHzlniaXhZi0p XZpcNs/0g3wSZShYGDCMjBGjWW6wTk5l7siXVv4DqjyLW7XfSdAnlZ1CcMhaZ3GEoueC i6KXbwhkGzMavOXpVlZmvqsb1xN+iXlxOqbogLcyDnh6+uIZRq5kG5HK/fl27YuPzRDU wXQJL0VWzyqZfn7MQwnpZ+5YfRARk/Yw7SnclbR19XJoQnz7GPwrmGRutEKSyzsPMYoE 1jrQ== X-Forwarded-Encrypted: i=1; AJvYcCWQ3o7IRKM2/vF1I93iFEPEPAilzr0qw9sJ2S5Vj57BsFEV1lSy7b4cG/1MfaUJRH/WPkL3zFM2KyJedQh51nUZO/Aj X-Gm-Message-State: AOJu0YxYjgiJOjYCVpIrvbggbkbJI421dI2eEySWR0bTpVdo/v3ljyqN b1K0ZvNViq6dQnOnNUptkE2gzScxQTsx2oCH0/sFVpbqNxgYPDEr X-Google-Smtp-Source: AGHT+IFn70SGfz/PbRUH9kwgyz1pEDMFMqDPHavxrHHe4NlUGcp5CAuaBhl0qng6xKy8CAZYdYP57w== X-Received: by 2002:a05:600c:4b98:b0:425:672a:769a with SMTP id 5b1f17b1804b1-4264a3f2fb3mr23812065e9.31.1720113824428; Thu, 04 Jul 2024 10:23:44 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:44 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:20 +0200 Subject: [PATCH v2 10/24] mfd: intel_soc_pmic_bxtwc: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-10-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=2909; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=iaBF13NOr1XPkiRrsRFdEpI6lgqiWVNSRbGWT5OqpFk=; b=evJMf6OIRqyV5kGTNmMo9WHWYOfq2aTbuW+ej5rXKo6Qc84a4dZXpK4NYNxGCz1WuhNEbB4fV gxG99rFE7KKAcJ8S/aDLRbzGUme5K8p4FroKeVs+Dfm160Xl0RFIMEI X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The regmap_irq_chip structs are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/intel_soc_pmic_bxtwc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c index ba32cacfc499..c07a01c85a46 100644 --- a/drivers/mfd/intel_soc_pmic_bxtwc.c +++ b/drivers/mfd/intel_soc_pmic_bxtwc.c @@ -138,7 +138,7 @@ static const struct regmap_irq bxtwc_regmap_irqs_crit[] = { REGMAP_IRQ_REG(BXTWC_CRIT_IRQ, 0, GENMASK(1, 0)), }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip = { .name = "bxtwc_irq_chip", .status_base = BXTWC_IRQLVL1, .mask_base = BXTWC_MIRQLVL1, @@ -147,7 +147,7 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip = { .num_regs = 1, }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip_pwrbtn = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip_pwrbtn = { .name = "bxtwc_irq_chip_pwrbtn", .status_base = BXTWC_PWRBTNIRQ, .mask_base = BXTWC_MPWRBTNIRQ, @@ -156,7 +156,7 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip_pwrbtn = { .num_regs = 1, }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip_tmu = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip_tmu = { .name = "bxtwc_irq_chip_tmu", .status_base = BXTWC_TMUIRQ, .mask_base = BXTWC_MTMUIRQ, @@ -165,7 +165,7 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip_tmu = { .num_regs = 1, }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip_bcu = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip_bcu = { .name = "bxtwc_irq_chip_bcu", .status_base = BXTWC_BCUIRQ, .mask_base = BXTWC_MBCUIRQ, @@ -174,7 +174,7 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip_bcu = { .num_regs = 1, }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip_adc = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip_adc = { .name = "bxtwc_irq_chip_adc", .status_base = BXTWC_ADCIRQ, .mask_base = BXTWC_MADCIRQ, @@ -183,7 +183,7 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip_adc = { .num_regs = 1, }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip_chgr = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip_chgr = { .name = "bxtwc_irq_chip_chgr", .status_base = BXTWC_CHGR0IRQ, .mask_base = BXTWC_MCHGR0IRQ, @@ -192,7 +192,7 @@ static struct regmap_irq_chip bxtwc_regmap_irq_chip_chgr = { .num_regs = 2, }; -static struct regmap_irq_chip bxtwc_regmap_irq_chip_crit = { +static const struct regmap_irq_chip bxtwc_regmap_irq_chip_crit = { .name = "bxtwc_irq_chip_crit", .status_base = BXTWC_CRITIRQ, .mask_base = BXTWC_MCRITIRQ, From patchwork Thu Jul 4 17:23:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724085 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 9F79313CFA4 for ; Thu, 4 Jul 2024 17:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113829; cv=none; b=SvBUCPu9MLSxHiFdxXj2OKBTBkEcExit9QNfaiw0oZj/mCmzB+0kDMs4BC+cpMdD0vAQBf6PEz6b5h87MJk6XDrljYwNeKO0y01o51Zl/+Vam5jf7LsiQpW3Fn89BT3v5IxlSzTjDzmRUTGuwsjZQmm/1vKpfXZotzWNxYHEejE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113829; c=relaxed/simple; bh=VLbF0cs+b50WD1PMCCnaStlvX5NqfEYC0Y8mR5Nbzew=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C2AyklZ0M3rvcldTU5gvyOpkxwUQ5QpRNsldlvt6af5P+lgSVPBv0ljm2rgOU5yYUucabqyRI+8zbUTQ1NRST1k5c7vrbq01ThsXxcCjNyZDkpyEZxQb1hy/0deEmB6dHQ2J1O3ld5mmm55ZzknGmbcWnLVjo/vqGc6wpW21sa4= 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=YLIUqbL+; arc=none smtp.client-ip=209.85.128.46 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="YLIUqbL+" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4256788e13bso5609435e9.2 for ; Thu, 04 Jul 2024 10:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113826; x=1720718626; darn=lists.linux.dev; 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=b4mMiO+CTevlgVBjjoTGMuQ+zAFqZChWEM5kxdNs97Y=; b=YLIUqbL+0+vKXGFD4217wyx6K+/SdeLJ6vpbVi0U0mSRCJyGlR0OrR7kI4libHvvo5 bNfYQY4TomvzOB3WJGiBw9QrZFDc7iuPS1sYWlsTDcHSsikHA9AmmCJ0QkJwExd746li 1IlL75xjFGY+XIQ5LNDagFmRYgTlBLZ+q6vg2zdOa+tqgKedGAPFE4QM2ztSpuULTZXZ kZJbAp7lkedGnuO7MbHV7fS96q9nvOyeKW464wt8XYGQo4VpBhFrSuIwWtpZmPN+ucYB Qbr0BlvyoCsSD5+ChnxygHBGAwF1PxPOYsE9L71GP6hlIUjPW6mma3yF8IlCwM6nhecS zgTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113826; x=1720718626; 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=b4mMiO+CTevlgVBjjoTGMuQ+zAFqZChWEM5kxdNs97Y=; b=qMWj5edXAkKD+2LkzHSpjTgNDFVpetY+u0WR8b29fpBLTHyxva6PgQcx+9kIiWSR2S qSjJ3wavtgwhvYdYcZxRi6TUMUrleA/mkmLHgF5s+H2N3u75KI22ZXaLuThp6gWCd4S+ fyqDuHkG/M79m0FvdZPWHzZpzmZPZUCS7VvQ5a6/sxTi1SRkL6ZqJ6wywvhN3HIgtz61 uIMb/rslphmfLfAuYBRiqhrwJp9Zsz8rCjBSrHxeGanPBoQsxyhGVsSzbfglNfAdM7eT JKnWwgOEvsB4KS2iQnoDfFF+anDA1EKi+aabJEVeMGMKzPB08I0iUN9YuAhMQYB1SYRM Pi4Q== X-Forwarded-Encrypted: i=1; AJvYcCU73mtAWTEKG3kQTckFiIk3/WReLUF+XXv+4WxgxN+qoyJxn9indf38X/gUSuRX5EZOA9+9tQTPbsyundjQebpgp6MR X-Gm-Message-State: AOJu0YwRo5ZPilhQnsa4Fovwsa75pX9lb1X5nOrUKQunS6pzFfaXSwpN losLcbBILKemw0mVwvet1afBApuas8AFcQNPrM2Tg1bM0ny/38/a X-Google-Smtp-Source: AGHT+IG+cqs4occmJ/idkODH5ar2IMIGeXECboiCn1BxQYFI+1HeiOtHKpCW5d66Q1v653jEdpTeEw== X-Received: by 2002:a05:600c:15cb:b0:425:3084:c99 with SMTP id 5b1f17b1804b1-4264a468bd1mr18777265e9.31.1720113825995; Thu, 04 Jul 2024 10:23:45 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:45 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:21 +0200 Subject: [PATCH v2 11/24] mfd: retu: Constify read-only regmap structs Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-11-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=2105; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=VLbF0cs+b50WD1PMCCnaStlvX5NqfEYC0Y8mR5Nbzew=; b=lEYzo144SCeLvUe2TpSR6MJTOJpaXbHir4xaxMjVppyFNZ2yNraSxjZ0DXvrzKA6EASiSC+LK Ezp0B4QZlQiBVOv4iHWqGGzjexJ3JVp1nuNXg8pwuTJdfuVaaHH1Hcj X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The regmap_bus, regmap_irq and regmap_irq_chip structs are not modified and can be declared as const to move their data to a read-only section. The pointer to reference the regmap_irq_chip structs has been converted to const. Signed-off-by: Javier Carrasco --- drivers/mfd/retu-mfd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c index 9184e553fafd..1d43458b4938 100644 --- a/drivers/mfd/retu-mfd.c +++ b/drivers/mfd/retu-mfd.c @@ -65,13 +65,13 @@ static const struct mfd_cell retu_devs[] = { } }; -static struct regmap_irq retu_irqs[] = { +static const struct regmap_irq retu_irqs[] = { [RETU_INT_PWR] = { .mask = 1 << RETU_INT_PWR, } }; -static struct regmap_irq_chip retu_irq_chip = { +static const struct regmap_irq_chip retu_irq_chip = { .name = "RETU", .irqs = retu_irqs, .num_irqs = ARRAY_SIZE(retu_irqs), @@ -101,13 +101,13 @@ static const struct mfd_cell tahvo_devs[] = { }, }; -static struct regmap_irq tahvo_irqs[] = { +static const struct regmap_irq tahvo_irqs[] = { [TAHVO_INT_VBUS] = { .mask = 1 << TAHVO_INT_VBUS, } }; -static struct regmap_irq_chip tahvo_irq_chip = { +static const struct regmap_irq_chip tahvo_irq_chip = { .name = "TAHVO", .irqs = tahvo_irqs, .num_irqs = ARRAY_SIZE(tahvo_irqs), @@ -120,7 +120,7 @@ static struct regmap_irq_chip tahvo_irq_chip = { static const struct retu_data { char *chip_name; char *companion_name; - struct regmap_irq_chip *irq_chip; + const struct regmap_irq_chip *irq_chip; const struct mfd_cell *children; int nchildren; } retu_data[] = { @@ -216,7 +216,7 @@ static int retu_regmap_write(void *context, const void *data, size_t count) return i2c_smbus_write_word_data(i2c, reg, val); } -static struct regmap_bus retu_bus = { +static const struct regmap_bus retu_bus = { .read = retu_regmap_read, .write = retu_regmap_write, .val_format_endian_default = REGMAP_ENDIAN_NATIVE, From patchwork Thu Jul 4 17:23:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724086 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 5DDA913F45B for ; Thu, 4 Jul 2024 17:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113831; cv=none; b=MFSa4nBy4t+cRFfLF0vEq94JkqBdDBjBPi7MOliZNg6qJQue1bZtIcDz1WbsrPYLi1A4k/sei+gG5VmuuKoHByVXn/ApP7Q+GHrEbS075qLA5Wa0oVsbZiLpMHkT2NtCwreQd6I+r9EpEpPhgPv5l2xGqwznKVcXsXopuA/bCy0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113831; c=relaxed/simple; bh=6atl/DrZQUwmw6JNwTSf7L3f3VWfEvhmC/OA+w6bvAo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lZ0T9bnkCAKSUyOH+k7h+puf0cseNfH2PYoyzSZDNvZOuxcsyGuZHoWDRe9Cg1QAaYvh6JlYbpH/KAXfaKTrIqlZvpDTTjLETjkUGDjQ/IjLy92D6Y3+PwyklCxEQ4Cn09UX2O1G9B5QTdohGXPlplwEm1eM1BQ5B1KsKRsiIKU= 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=IrUeDxkC; arc=none smtp.client-ip=209.85.128.45 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="IrUeDxkC" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4256742f67fso5711195e9.3 for ; Thu, 04 Jul 2024 10:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113828; x=1720718628; darn=lists.linux.dev; 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=F7zE6lHigua1P8ymODDtiJ+ZtxaVQFbo+ktZc42qUis=; b=IrUeDxkCAAy0D6jDn3URp9EuqyPeDiGiac/7Dp3ezsJOfj2To+ZCBEsc2LFNhSHja+ lPNlSGiCgE7SJEkNUIfAyC75wZdHB8uwXjUoiUcP0tTPC+98vFS9zAz1LlSBpusfMA6k lxsHDcDVEIQ/UWzYgHupK3I2V0RPHIcoi3fevs/IYqsG4Ax/k9yKJoSLQxAvZUaLTlia WpYoh+0HLT/Hdfy843V5Tvuuiw9T5LCL86aLexCqV/GPkqXO7ad8zY/hCJ21XRvI3vZA XgmFkDM4tBcwXeKGNE+EjFJpqt5oPmoMvSuybV0NWPTsWblmGkZ66zNXhCyz5dq2fBh3 S95A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113828; x=1720718628; 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=F7zE6lHigua1P8ymODDtiJ+ZtxaVQFbo+ktZc42qUis=; b=EsQNm2WbFdIec/OKhpeW/SMaI86GM5DmfK6EBBLi0munLlQ9FSbLYMsc4pIwx43qnR lYN7iOiV6h41dAtyZYSVuNEe/algbjFJy4D34h/eo4picdcnlrAASnE4H1pe7a5WrrdU tJt6vK9oCKzD7oQdNFbm6N4eHe6uJQ4Fdn9hjSIaj/QL4vJyz6u3Ipw4Q7X5oxDOXriY Uom2NzFh9LGFVkvVyzWHTt8RjBclD0pYRJ+wd7fLsS7DFlpcOlvzaxbI2fvCR79R9czt QXSeqIXxYTVm+ybMf3SpIvOaRuVlQNfDJuF28OGWUA9tafV0WjqcW4PFaOy9xZcRqXZe tOaA== X-Forwarded-Encrypted: i=1; AJvYcCW5s+Hn+zkYZfPeilmeM8fxox9JjWtA3kr2AdBMI+YPkcUvO81iHdZuGwCQ9twRTE5f/harKGu/xGzZYcoyTBkjBH/Q X-Gm-Message-State: AOJu0YxYl22IUX7ghMgq7NuHFnn2KogZBLi3sZ64W4UOcqQBJlNnm/O2 beoSNBuXibDgc11PPFwrXqRKBciQnUWJQKEOcRtRMLkNBuJsFmFp X-Google-Smtp-Source: AGHT+IEV2TScoV5U0gk+JCSE/6TuIOT7gDP7434MPboQsznm8o/auvcGlGGFMv7zURZ24WPzEpCGAg== X-Received: by 2002:a05:600c:4f11:b0:424:ac13:ee3c with SMTP id 5b1f17b1804b1-4264a3e162emr16522515e9.21.1720113827768; Thu, 04 Jul 2024 10:23:47 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:47 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:22 +0200 Subject: [PATCH v2 12/24] mfd: rk8xx-core: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-12-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1375; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=6atl/DrZQUwmw6JNwTSf7L3f3VWfEvhmC/OA+w6bvAo=; b=VDrhdvOEM4a21M5C9PzDGgMYkfiGHRI9khEoolwkWfTbvEmLzU/atnVqu8qT3Hl2LPrJolCco DXFklpE9F8dDWYAFZeupXDJc4TJwL3xQ3mFoCfE5s7U6sfosUQiBSR0 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The regmap_irq_chip structs are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/rk8xx-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c index 5eda3c0dbbdf..39ab114ea669 100644 --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -531,7 +531,7 @@ static const struct regmap_irq rk817_irqs[RK817_IRQ_END] = { REGMAP_IRQ_REG_LINE(23, 8) }; -static struct regmap_irq_chip rk805_irq_chip = { +static const struct regmap_irq_chip rk805_irq_chip = { .name = "rk805", .irqs = rk805_irqs, .num_irqs = ARRAY_SIZE(rk805_irqs), @@ -542,7 +542,7 @@ static struct regmap_irq_chip rk805_irq_chip = { .init_ack_masked = true, }; -static struct regmap_irq_chip rk806_irq_chip = { +static const struct regmap_irq_chip rk806_irq_chip = { .name = "rk806", .irqs = rk806_irqs, .num_irqs = ARRAY_SIZE(rk806_irqs), @@ -578,7 +578,7 @@ static const struct regmap_irq_chip rk816_irq_chip = { .init_ack_masked = true, }; -static struct regmap_irq_chip rk817_irq_chip = { +static const struct regmap_irq_chip rk817_irq_chip = { .name = "rk817", .irqs = rk817_irqs, .num_irqs = ARRAY_SIZE(rk817_irqs), From patchwork Thu Jul 4 17:23:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724087 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 CA4F11428F2 for ; Thu, 4 Jul 2024 17:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113832; cv=none; b=Px+LBqBSAH9Ji6qoWo7m4yc5Sk+xgn7aYkYjFQPia4B6FY9WXHCDqqnou+M1BSlIs4Xlya7rsWGaBlQYVdqxvmsUrfPdRJuSpg+PfwSJMdHWJPvd92H/7oonho8/FdAtMFsqYNj66pJdQGVd3k7T/kyPt2V2NJaPvFsevvtKtis= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113832; c=relaxed/simple; bh=AXOMZmt6S46YFRJErbndyKFAmqG6fzXUVqcz4xuQ2tk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qvU4FGZJaVq9s6LmaCg/NxF68ZlxctsQm5DRs4zyX3ZtqhDV3sXNM0gZbpTvRv0ueP5FVV6ufHTkJfLYX31vxrBIkZFkFZDOiPje3ZrIAfR9KCoa3ZlzQ1Nnl2/WafYlZSIfZFqV/m9A2WYxdZvitV6+i5oMbof5rdqRoG3shSg= 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=RjQ0/1Ba; arc=none smtp.client-ip=209.85.128.46 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="RjQ0/1Ba" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42562a984d3so5649635e9.3 for ; Thu, 04 Jul 2024 10:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113829; x=1720718629; darn=lists.linux.dev; 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=W+0aliNulAXRyPEDMGDv2VjbbbF1WfBGFJqmsV4Qtr4=; b=RjQ0/1BanojS7azCwZWAUe26/xaNX6weCyXN2oT1ean2Js39BoTx2qqF97UzlfWUhy ScfhbZ2nYYpYHe+Dd2vOPxjY9BOCQGzUtYvAUHtKBnKUjZlCSEVqBw3r2hy7ZulApoqf 1DkUnv+I1LwRdAouEYv10k21zU+yVLNrC/JdUVR8MpD9hZfUmrXQvr+WZnLmsxk5NaJV z02x4M2Q/2X0URoEzRUBW514au7ZN8W7G8tU2uFZ9WHeMiRv/x/sY5L+j/oRiIBe1xgo bs9oygJH7UcD86BwqZ+EZLY2Yam2hV6QZ07XrPYGPsYx9xg823xM1le/rSubTFLOk15z M+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113829; x=1720718629; 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=W+0aliNulAXRyPEDMGDv2VjbbbF1WfBGFJqmsV4Qtr4=; b=DyJkggLsVHlCFlFN+ZZVu19y576f1inuf/HrOJrruAIRpzL5RgImBwr9sxx3QK24HK NVzahJ5qUIRuXGGm+4jigjZx268gaFs9JWCZqoVzbWqyBT4cwAH6YqLm10jDhK+5IzJS GRiHfTcN7hN1KOIqxkn/oij4U1bBcJSFQgWXmvVrPNXn5UcTb42sD2w+qg26Jl3Htw1o k2TxKO9eAihkYyMQosoyoIemIegPnvfHq2FVxRyrQBZ8A3FQ3MFhlefAmnr+prPMAELg mJAMEje4oyaxBZ8kFN/mH+oUSJ7GxQLxW8qJnGEPnKVPx05ceIgR0rNyx/8KNC987Ijq Lb7Q== X-Forwarded-Encrypted: i=1; AJvYcCWPAZQ+agIRqfePAEcsXmBQqvDpR5SmGa/Rh8eLFnesQq656F/Gr7eN9152YqdAZ2XPs3JnNGOvheLm45aj+2qFIEL6 X-Gm-Message-State: AOJu0Yy5BewL6UXMynFTgGVdL9q4ANXZpbruXNGu5mt0Q6CTzRigVFvB BeM8JicoNh1jTNs52E+zRtr3W/VvxnTOMkMazRO+kpORPIMo1XpB X-Google-Smtp-Source: AGHT+IHa5BhDJFDyix5K8itu25mKAO+o92oPFVJcdlEdxK93UcrY5Y0/jYOh6tEheFkFp1NCVoGFeQ== X-Received: by 2002:a05:600c:3b90:b0:425:65c5:79b4 with SMTP id 5b1f17b1804b1-4264a3f55f6mr15114615e9.26.1720113829362; Thu, 04 Jul 2024 10:23:49 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:49 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:23 +0200 Subject: [PATCH v2 13/24] mfd: rohm-bd71828: Constify read-only regmap structs Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-13-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1911; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=AXOMZmt6S46YFRJErbndyKFAmqG6fzXUVqcz4xuQ2tk=; b=9iQxauCLJOP9HSJdseQBuXEwq1S2sUsM1z0w1yiASOG1r4aVhc5QMRCE9e57/9RYv+JRp62dU PllateXXr/GAw0YAxL7TAAYxKv6tuWlR+aixvjyRaqvaeSingyY4siH X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= The regmap_irq and regmap_irq_chip structs are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Matti Vaittinen --- drivers/mfd/rohm-bd71828.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/rohm-bd71828.c b/drivers/mfd/rohm-bd71828.c index 5b4290f116fc..39f7514aa3d8 100644 --- a/drivers/mfd/rohm-bd71828.c +++ b/drivers/mfd/rohm-bd71828.c @@ -316,7 +316,7 @@ static const struct regmap_irq bd71815_irqs[] = { REGMAP_IRQ_REG(BD71815_INT_RTC2, 11, BD71815_INT_RTC2_MASK), }; -static struct regmap_irq bd71828_irqs[] = { +static const struct regmap_irq bd71828_irqs[] = { REGMAP_IRQ_REG(BD71828_INT_BUCK1_OCP, 0, BD71828_INT_BUCK1_OCP_MASK), REGMAP_IRQ_REG(BD71828_INT_BUCK2_OCP, 0, BD71828_INT_BUCK2_OCP_MASK), REGMAP_IRQ_REG(BD71828_INT_BUCK3_OCP, 0, BD71828_INT_BUCK3_OCP_MASK), @@ -407,7 +407,7 @@ static struct regmap_irq bd71828_irqs[] = { REGMAP_IRQ_REG(BD71828_INT_RTC2, 11, BD71828_INT_RTC2_MASK), }; -static struct regmap_irq_chip bd71828_irq_chip = { +static const struct regmap_irq_chip bd71828_irq_chip = { .name = "bd71828_irq", .main_status = BD71828_REG_INT_MAIN, .irqs = &bd71828_irqs[0], @@ -423,7 +423,7 @@ static struct regmap_irq_chip bd71828_irq_chip = { .irq_reg_stride = 1, }; -static struct regmap_irq_chip bd71815_irq_chip = { +static const struct regmap_irq_chip bd71815_irq_chip = { .name = "bd71815_irq", .main_status = BD71815_REG_INT_STAT, .irqs = &bd71815_irqs[0], @@ -491,7 +491,7 @@ static int bd71828_i2c_probe(struct i2c_client *i2c) int ret; struct regmap *regmap; const struct regmap_config *regmap_config; - struct regmap_irq_chip *irqchip; + const struct regmap_irq_chip *irqchip; unsigned int chip_type; struct mfd_cell *mfd; int cells; From patchwork Thu Jul 4 17:23:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724088 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 1564A142E86 for ; Thu, 4 Jul 2024 17:23:52 +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=1720113834; cv=none; b=JdMDXu7STL8naCqIyE+EqWFYgOMrPa6nA+o0KC9XrRkTa9WZRVd0SglCsMUz4QnpNm82TEc49naPvg8Wfp9Aezo0xX2QyklENl3hKrXx1n0TklDToKSkYOtJIuHKNzEK+BNRbCJCS0gLOxWH7d4GtK+IQElaLtxUXQU1WHRlybk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113834; c=relaxed/simple; bh=OsP9B5yntvy5o00C9iqf+d4I7ESMIoxwrR+dXi849M8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BRr7I5Swn+ACZNmYvMT7mY0z4XV1JIIQfW24NM3He3XXk2Ni9Ky88Svbzd2NF66gOVjtL3S0WtOjV6uuzuslLdQ41rA8BUOKBBw6RyTc/Rqlws6RBdZpx/6h4auQrn01uTukZPctmbXOP/YPqJEC6Uo4aAtRia6gnmIvzwlqaf4= 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=Y9U/e8zU; 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="Y9U/e8zU" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2eaafda3b5cso8132431fa.3 for ; Thu, 04 Jul 2024 10:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113831; x=1720718631; darn=lists.linux.dev; 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=BDX99PHFeeA7rra4ax1diB6wMDKVJk8jhzB3Yt4YbLA=; b=Y9U/e8zUeFRf4RVYZVqkuMoW/W6GWKGj7DffZMRZLOfGwKK3zsyrMBNpKYm7MTxQd6 z51H/JFf0uZRb4HrRkdOItSEs3pciyH606LF6jrdvkoONCLgOjQIIh7aEhuIi/1FBHcc xc/UV1R1n/zUAOHt535o6COUCJZWtfNFbcxhMg4FxGN+SLcpzzPgKxSscJndtn55fqWc OQ7g8nyRO4TYDZAmN8ro92zV6Ip+kmMOumt50n1at0NueWXW/IayZrXbh9O36cOOftDi i0N0fwch6IZtCzuPdveLmZs1mzFG0Dp3JkxIZTWCSEpzEI3qxp1nrQuhSMpUwXpL35r1 GNWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113831; x=1720718631; 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=BDX99PHFeeA7rra4ax1diB6wMDKVJk8jhzB3Yt4YbLA=; b=NQyTfCtP8AmHaj+emqtfpv15nW428YChb6CrTaveT0z7XuYAx/kdWAZL3elyllMHYK dJo8Ts8jdBDS+bb/0tbJwWpjRRe3gUhVaXA0EYrL8L3q97bb3Hq1r4QpwYtpgXwtV3Oa oJhU6Z0dBGfmiVpbeIT0QNYJX3FlB3hVa/2gOqS8lzUAXaiM+Zrb5b5o/kKh2Ib9VZY5 wru5xvlRfkiCyaMxUuUHwESAQ/cWW53w2Ba/8lXCB3LNsMag+kiNG+4YztKfssghHD2W 3HJJo6tJUlwY0rLEv+TGsiNJWxpaOHjiRNsgpqmI/Ci9pCtKdgGS8VyzApDAr/CiA4QK YGAQ== X-Forwarded-Encrypted: i=1; AJvYcCWURI1N86SfmIYDmro6WcPzLvDUB1Cw+zOLIb8Boev+SjkNZlEHyfyN8qPTujY2XN4hCQ/S0//hR42XK9XMQgGdLz17 X-Gm-Message-State: AOJu0Ywklbu+BNN8pxE0Y0MUJ3iCHVlcgFzM4k4yrI9wq/04FTmCcjxb lzUXeqy915/Gn+SaFzC2mPifHbodAoBxRMgAUY9JR9SA6gmFqK0l X-Google-Smtp-Source: AGHT+IGDGHdH17TOfyl0AHtan3E3NGyjY4qK7qOF10+VJxCWKYz0/N0xnRTryy8auCQrIvDBTXtfNg== X-Received: by 2002:a2e:8197:0:b0:2ee:8d07:3d51 with SMTP id 38308e7fff4ca-2ee8ee14ebemr13988791fa.49.1720113831148; Thu, 04 Jul 2024 10:23:51 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:50 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:24 +0200 Subject: [PATCH v2 14/24] mfd: rohm-bd718x7: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-14-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=811; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=OsP9B5yntvy5o00C9iqf+d4I7ESMIoxwrR+dXi849M8=; b=mLqu5gnq17+Gs9kyUk2dMV6SUWx1s74/GSw3goKe52OxLCSMhnjCXIIQ5PFkb5Bd7wTcal4Qx gh79QNEK8H4DCYsaff4hWqDMWmvsuEIF6+riEhYKIsTEe+50wcbPUVj X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `bd718xx_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Matti Vaittinen --- drivers/mfd/rohm-bd718x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c index 7755a4c073bf..25e494a93d48 100644 --- a/drivers/mfd/rohm-bd718x7.c +++ b/drivers/mfd/rohm-bd718x7.c @@ -60,7 +60,7 @@ static const struct regmap_irq bd718xx_irqs[] = { REGMAP_IRQ_REG(BD718XX_INT_STBY_REQ, 0, BD718XX_INT_STBY_REQ_MASK), }; -static struct regmap_irq_chip bd718xx_irq_chip = { +static const struct regmap_irq_chip bd718xx_irq_chip = { .name = "bd718xx-irq", .irqs = bd718xx_irqs, .num_irqs = ARRAY_SIZE(bd718xx_irqs), From patchwork Thu Jul 4 17:23:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724089 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EE97143899 for ; Thu, 4 Jul 2024 17:23:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113836; cv=none; b=C00dqU6aganlaIDUMX5GSLC9r7MixRf/US2DKNXBhKmgX5G9s9jMPQzTxHmMS04z9wrscR/yl/JR/1EHkrjWGBYfg5mAELfJLSbV9U84cDeYIR3XXmdC3p1sWq0h9/FIM9pQXUv0TDhoOHHbNSeh141t9PLq3QAF9aiajbT28HM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113836; c=relaxed/simple; bh=LwSmNpQz2F+cwYbYyqp+ffrrtmaCiTXzgTUcnJr7s7Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HLLjHB1+18gOu/zbMWbmpe15IujsA/4hcDddG6Zu/phNLAqDAo2GnpJyYVV4zSFnYy30QBXw8LFh40eM0iRnyBwbUbxSijNgRJNSvrjaZPS3O/cH2LggMaURspyYjY7BTB/VgkYz2J/SDs3qqUSQNeRkO2ec3jr8Z/AKXxFLLA4= 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=YvubvrE+; arc=none smtp.client-ip=209.85.128.41 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="YvubvrE+" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-425624255f3so5736795e9.0 for ; Thu, 04 Jul 2024 10:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113833; x=1720718633; darn=lists.linux.dev; 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=wr02nhq0ruDtDnhEwyMKYxGviJTN4mPbs3lAEzqdbjQ=; b=YvubvrE+NXHVpwooZPdjqFM8E5bnoVDxJ4ziy7qn8RFVL3aw6nAaZq/HV35r6oLVHs Y/DwVqoSJe4TZMTNii3USvxK6znv4TdG1sWu/rbpf/SHzWmvpEuu34wqSVrO+Gu/24vW CJ+GFRTNcUIL4WoMx+qPL6EHlBwpucaP9mDvJfMePtDW4TIJwYbHnACknFMKuzpK+SLy r2VKg7uJPM/3F8EHmc4iUhcORJ4NijJOwXdfSQK2w/iibABe32btjypTR21RmnHyd2WV 1uHtW4tTGzVvQm33AGJI8mT/HqwOrhR0xjuQqk0GS+zX3Ds7fBhxYBT/vVT9c/C8UWQZ ybQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113833; x=1720718633; 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=wr02nhq0ruDtDnhEwyMKYxGviJTN4mPbs3lAEzqdbjQ=; b=sJEVGbGVuJNzj0IG1lwWNecyTzVOEzZiGdVMiW0GwSDSsYMsOl3L8t0MMy5W9JG9kf fWzWISZdRU1OPNsKpi8KNz4NFuBa9SKQkZBE1tJzHV9S5QY0p7BNw77sogLVvyDDyToN wtchz9CVSsny3vXtGs5S+zbCzCayW2d6itnmaFuk9xMa4jtJMdPJjXQLoNoLb3lODi8k pE3QKdqN8cjPbszIOEZIeo0Cs4Uw97R7SmVN/My+Q4u6or2MF8CYIpBHRn88En6t1dxm xR32BuAnMEq2ygzdLYK1/Ueq6/vxqyUnl55HjLZYwCQuePjDNfirwGwHDg3BUVtC20Co ZXnA== X-Forwarded-Encrypted: i=1; AJvYcCXEfPzyH8Z5/Z1rYzZmYCjLJjsAw5OUfzbX4Yz1s2/cam+6362BqK1Z0OyRixIeKDIpdMtmRlWBCj0Oks72YhV5cgP9 X-Gm-Message-State: AOJu0YyxCv7wgIN4b0pHXZ5htPnASBBVq95TkBZm9JRGFuuhB088NJHW /TvtSI3n9j7LcIplPEP8AYoRkJ1PVyJyhPh/LBiRBoJwzO6gzYG5 X-Google-Smtp-Source: AGHT+IFaOHK66rTgpsI1mVY32hRGS0C436uv1mOtnFsmLU7vwSfmFKSY7u4YyT4jP3ZsAP4H3kcIsw== X-Received: by 2002:a05:600c:54e6:b0:424:ac5a:fc38 with SMTP id 5b1f17b1804b1-4264b161646mr22944445e9.13.1720113832924; Thu, 04 Jul 2024 10:23:52 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:52 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:25 +0200 Subject: [PATCH v2 15/24] mfd: tps65086: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-15-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=789; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=LwSmNpQz2F+cwYbYyqp+ffrrtmaCiTXzgTUcnJr7s7Y=; b=Ga7N1b/SpgEIyEu0aZQV3PU+tllasHbqTeEu2H48IX0j1TQxkzLPgurg30X0upgDQ5eR08P5N ndiG9G14SvzCP0egigQTIaPWc+bbDfiV5mbUyq8hTRPcjthD8A/R82J X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps65086_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65086.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65086.c b/drivers/mfd/tps65086.c index 5ef0a7e0d61d..54832e9321b9 100644 --- a/drivers/mfd/tps65086.c +++ b/drivers/mfd/tps65086.c @@ -45,7 +45,7 @@ static const struct regmap_irq tps65086_irqs[] = { REGMAP_IRQ_REG(TPS65086_IRQ_FAULT, 0, TPS65086_IRQ_FAULT_MASK), }; -static struct regmap_irq_chip tps65086_irq_chip = { +static const struct regmap_irq_chip tps65086_irq_chip = { .name = "tps65086", .status_base = TPS65086_IRQ, .mask_base = TPS65086_IRQ_MASK, From patchwork Thu Jul 4 17:23:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724090 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 A2F731442F2 for ; Thu, 4 Jul 2024 17:23:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113838; cv=none; b=FwSF3VoAw+ZMA6ieZ0g3arTzou8JztJ+Tcw/xlXlHi6P/aiqpEpARfmKRU+W6mTh4wF00wIHJv8Pe7dOmZTQr9XxtGf7quEzZ6LISOZ8wLXmapbkA/jMuNRrVXA/snB5kBr7wWcLA6wnQDJyOLLj/Un5QVqU2k6WViPTKubYoLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113838; c=relaxed/simple; bh=1m/pxOteRlGgMNCyaHexY3JgCLjPsEUnIURObz8tXYU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bvGL36WAHh0wi22KY/76vvhocJqKFgekIL2Lq2OU7QQtfuKbhZIjB/EnGKLZzb3FcrRX8Jr0/wFZiWhwDwKEthXO/Lt/WUQohxg7ynFkg/1KB+QSXUUis1aRVkTfzUd7XM/s1CtCQ6HPfef+hO/vxt6rCJk0+63EUqHr/pYdnC8= 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=mip/bOVx; arc=none smtp.client-ip=209.85.208.175 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="mip/bOVx" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2eaafda3b5cso8132841fa.3 for ; Thu, 04 Jul 2024 10:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113835; x=1720718635; darn=lists.linux.dev; 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=bgu8mPTxD6LTopVNnBQAINmTzhDmwR9bV7xd7+3+F9Y=; b=mip/bOVxTAftskqtqx3PfP88yksS/2hIFtAF+sqF8EUBr1rxqsqD/ZYvcmtZTbnzOq w2827ofCkRxOnfzQLIwtQYkKyjayiPOcXRj4p+IgZkq7FiM1HUQQ5TgtRPVAQSbn12a1 v6JcXxR7QfpnDuckOnt3GM9zI4f5FxTRGNGdXpWz7g+cwvXs/ggLqBMFM8NNUtsO340B nSsYb5jC9vIkLDiH4vAvkOFQGQ87xQV1bQvVxEVMk09Q3wdvjZJW7c8tRXCtJFZvqw9X IYIEyB66vHev5+gisnOT4+ZdDwoxq2frT7pOPxM7QJyT1YrvExGEXkT4aYlG+QcdD35V az2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113835; x=1720718635; 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=bgu8mPTxD6LTopVNnBQAINmTzhDmwR9bV7xd7+3+F9Y=; b=pYdj+3wzbnrtdKdNo3gNoa1GT0gDreIghGX/G8LZjp6L8c4fjEJZxG4ztPlvQMK2SM bw+QXTB+i35APdR01a0jqaN+U8FWfE9yakFxbdvWPU3LMqfAv/nxS+2zXabjStNR6qMK boN8LInUVSTK3/eo47seL4sBHjS2s35TAHxJSNP3MoPQl3Ms2g0g9uzMRh/K0POwfa0A Dt8bTTJOJvkp+JiISgcaVLHNu3vz3B6xrakLFO2wDg5UsUJbOzVECv2CXI8RsJAQemjR IF56oVSswkF4WEbgcuO7oiovfwuYCT2pALCaeatoGjfq+KHpV3jFdJ9S5ubcDJFelpV1 duhQ== X-Forwarded-Encrypted: i=1; AJvYcCVct1KHyssX6PxrfDSWZYWWy4EZoirXTn+lPhJAOLG7PxCGfJQXOmGHQQdgaSOcAkD+ItpTw6MXGstlfWFl9bnsDxEU X-Gm-Message-State: AOJu0YyXU6tkXGgkUep+fVDB8L/qr2varpJr7HK98pRMtZB6afnj3hr2 FwPRukARBz65JJV3h3+PSS8ry06kngZA7ErFpVQvp3ZD3hMphxPL X-Google-Smtp-Source: AGHT+IGTTDUX5xEcXehpK5p7DL1hZ7A+1Za2oYq7PQX8dR6i9vB1itup3bf4lD+UiyWYmRXXB4CwXQ== X-Received: by 2002:a2e:8455:0:b0:2ec:1cf1:b74c with SMTP id 38308e7fff4ca-2ee8edffccdmr15048801fa.32.1720113834597; Thu, 04 Jul 2024 10:23:54 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:54 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:26 +0200 Subject: [PATCH v2 16/24] mfd: tps65090: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-16-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=731; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=1m/pxOteRlGgMNCyaHexY3JgCLjPsEUnIURObz8tXYU=; b=6ZjF4CCDond7ROCsSHValBcFRwhWsXcos339NS2RkS8I9EiCixqiHyaPBI0Ln/RAHlHfcBeG5 v+XNd5JP/0oD7MeDVFDT4TV8qnHm97Yw1kKEqLrkTbM/ycLko33gOVq X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps65090_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c index b82cd484ac85..24f42175a9b4 100644 --- a/drivers/mfd/tps65090.c +++ b/drivers/mfd/tps65090.c @@ -120,7 +120,7 @@ static const struct regmap_irq tps65090_irqs[] = { }, }; -static struct regmap_irq_chip tps65090_irq_chip = { +static const struct regmap_irq_chip tps65090_irq_chip = { .name = "tps65090", .irqs = tps65090_irqs, .num_irqs = ARRAY_SIZE(tps65090_irqs), From patchwork Thu Jul 4 17:23:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724091 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 07D45143862 for ; Thu, 4 Jul 2024 17:23:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113839; cv=none; b=o9JbFNMoWjOt9X0LJs1LVhEX4UPj3nnyTYICjoLNJ7i7WclL+zrNf9oNnafLqD+p4W2fV6Bo3xEFYQSRqGI6k8NqbX433/Evk75CN4ujNK9Ev1HewzRavAfhHE2yHFOrhzJH/0Nutc0gYkBSBldm7u1bbnrJ8DfvlIrQlIMuTTU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113839; c=relaxed/simple; bh=/w2Mfm3b//ArFJq79ZTzz7Oj9gnwB0vEiff6gNtMX10=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EV/YxIiFt5mvZUUzf1UuineM8tQGYzYpUoizWiIjJdGFRLgxr8AS++Sm8TXzdxDLcNhyG0m7YxsISfq0091ecV2bOcNLzlemnly9eviap4VOSL0d0xq/QzaYtRxZAqSkIbH/nUM53DsBrirNxBsp/oUg/6JlQ30M/1E9CGSx0Oo= 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=LCqj7D7x; arc=none smtp.client-ip=209.85.128.47 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="LCqj7D7x" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-424acf3226fso6080255e9.1 for ; Thu, 04 Jul 2024 10:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113836; x=1720718636; darn=lists.linux.dev; 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=NXvtbk3eJTlknQfO1g6XBXuGBlY9arYdCdhrUDB15Qk=; b=LCqj7D7xnw/WvSqXnZgDzEeWBHWaoASzI4mzcyxCxNAf/EaYvr137nA3VLGaSrJ7D0 UQyxV7qvhah3f88IQDWR7fE5ISeMCbMH3n1/exJI9TYanu+a0qgADyWk6KERv2sYGcd/ T7XU2Yua4G0Lq1EI7Q22br8sq8XnocpWvX062coGmiexypgMmzi3yZyws/taTXVB01YP gvXeA5rDvjV8q322h8JKyDVHzdAdTyi0V/vzPrrFe4/lm7fT2RtI+bcFwJlsNQins4hC P5GrKU3dKUAh071ncDi83RjANaILk5cON/GcbT3STD+rJL+Ax+pHe8QmK9Al0dnXXDjV ToQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113836; x=1720718636; 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=NXvtbk3eJTlknQfO1g6XBXuGBlY9arYdCdhrUDB15Qk=; b=SvDFriBw0CP1+wYrCoe+aDi8Rp25X+8nk3Cw6TMD1sfNQwPZ+t0chtnDqp1Vzm7orz mh3LkOpc657P4K30OHb+1I+dQ7Mswyg7fxZNwKLEgF3pA0HO2OtwNMXtrl74E8r0BmE2 daapJ0QqdURdtL5ib/vfwZLnWz9wjBdvaOSL/sVQYUuoA+NhaEQRmOXte8jRNgsSEQ4A 0rE3J9z2uuh2xeuAfNol1Zf2+bM0QUadFbCiLIlZTG04+f5NUJeq9xTAM6FIcahmnD8c 7BlEM1++vjl7CVZHyAW8hgQrkkPvDnPqWE3GtwUosdObwvtNS6dis5vJOKk4x5vrHNyk FHaA== X-Forwarded-Encrypted: i=1; AJvYcCWYwdQ3RphQGEu8kb69XNHazTHdBOJPB36aXDCacuhJKainOrCL7/iTkilHelJi40+OkdFaTuLtFM1j9hmjLdU5MTLZ X-Gm-Message-State: AOJu0YwgSWA/5XkYCSkx3OrsEThL8T4hhf8Hp4fdxWDcXyZRDhsJ1JnH FXRO3vYDrOH4C+4Xs/jd+yX6/XXX7hQeojcbpoTG1KNcyjOhWat9 X-Google-Smtp-Source: AGHT+IEHdGR7aWDPHC48GX7xnpPP9zkZvU5WdgSCgIsyuE6VBDayBGzZuU+F5S67Yb5hOGQ04hSJvQ== X-Received: by 2002:a05:600c:4487:b0:425:6a12:bbe6 with SMTP id 5b1f17b1804b1-4264a36e4c2mr18864815e9.0.1720113836422; Thu, 04 Jul 2024 10:23:56 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:56 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:27 +0200 Subject: [PATCH v2 17/24] mfd: tps65218: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-17-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=731; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=/w2Mfm3b//ArFJq79ZTzz7Oj9gnwB0vEiff6gNtMX10=; b=OsGThnGbxB6eleQCVQo1EzO1iCBucxxKtKb0NyDYLCLfqfoWtpAvo5rwf5kwibFxTvZ76KrNS K6Bi2mbmKBuCws/nTLk7C5CrVqeEQofHOH/f1CcDiRMCWNEk5r5wRjb X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps65218_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65218.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c index 427a2b97f117..4f3e632f726f 100644 --- a/drivers/mfd/tps65218.c +++ b/drivers/mfd/tps65218.c @@ -186,7 +186,7 @@ static const struct regmap_irq tps65218_irqs[] = { }, }; -static struct regmap_irq_chip tps65218_irq_chip = { +static const struct regmap_irq_chip tps65218_irq_chip = { .name = "tps65218", .irqs = tps65218_irqs, .num_irqs = ARRAY_SIZE(tps65218_irqs), From patchwork Thu Jul 4 17:23:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724092 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 04D271448C5 for ; Thu, 4 Jul 2024 17:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113841; cv=none; b=c0Kj0ZBiM6GvNkZd3c5Y+KucA6PQ36PTp1T6AFJgYfyq8/WwgvaXmiEMNc4p5gjP4U9UzVq/OLByU/OIh7MWDmjGlGWqF/UXVVED2LoG+7OJWccsktNu2SGiA8PE7ZOeAWwFv7ks2XzHMo031Kfs1rGWUn0guvDN+bVGf3bn9UI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113841; c=relaxed/simple; bh=l+Er6evvde/rWSFaUokuQlFg/GXNk47TTlB13TZUEts=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hpP02HFmMTBhRnVgguD0vKc1pkQufd6cqvVWYmMRDbDYKqPgKUCgA++fh+Z8KzDPwTEKt+HrpyUAarqamFdP9BdM2HHqYC/ToHtgHtrfi2o5A0avaWmYypQ54peuWT4dNNT1JXe64D7Sk41F65kfX9IIV//ZpLleFFr/oCeyJ/I= 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=UsAY79OX; arc=none smtp.client-ip=209.85.208.181 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="UsAY79OX" Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2ee910d6a9dso4810391fa.1 for ; Thu, 04 Jul 2024 10:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113838; x=1720718638; darn=lists.linux.dev; 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=dFEzSQ1m8GOHWdp6McPosgOTS/y1yxZo30lauWYmu3Y=; b=UsAY79OXueXe+XIQIWyeOh5+zyXdBrEGEqb56brnTvknceTvJogN4vHUql4QFcZqlx HSxpDzWtNDThFrdFYfOaGMe0Ch2T/m9z45z6Fx1YBF4rh4XHHt8UQ/eMuXu87PQgRMFK fbtlY+cS9oAeInLekZLiJBVW3VqdMb2GlV6aKDEGXbZ6hzew6JY03DzxAzIzjQJREPnp AZlyAI1nGApdMDx2O2kpXxRPcdWQb8wMuvxToGmgfw+R0X+EBeNTvL7aIsaLdAcBuvMW 77wS86kVAzWqM2V3iStdEeFIydWLRD5upWj229kIIl2Ik/njHLo9gbfwUkDtYTrOEx9+ BInQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113838; x=1720718638; 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=dFEzSQ1m8GOHWdp6McPosgOTS/y1yxZo30lauWYmu3Y=; b=R/uiSpnrHTL0F/XNDKekvlK1D+ASYnSPJKkhDJ5I6Ns7Wh+geSwokhAVPhF37ivsBI brw/4d4YyVxFQJT19SWR9lmyrGy+zlyYQPoA1H9Ur3MCPFj3xNZMET4tXTNvuzIySZho i80PtGpoF9lIhMRd+Wt1eGp35r8sWPKd0vjl4UHxc6Sz293e/ZGfr9C+pLqywHX4yxgv LXVJtTdHvHqh2W3XjgZjMW4ZJTmeDN6WLrA4jJgR6msf5yyc0J79PkHXTRhEJ6bQ+Ipa J7pP/yW9rL1lVOUw4unMGx04etRA2C7Cq9ZHRtudlKyx+Gzye0lS7Szu8dzxGfXN1lNO xXAQ== X-Forwarded-Encrypted: i=1; AJvYcCVXr5ds4l9jmJTj50sFZVXubdxZco0gac7RRUO0+hSxx85b8/7OuBYa7cu9ikpTtRMnTZ+VLsJgdssTfSAn8sYsdvFQ X-Gm-Message-State: AOJu0Yx68Q+U2LPGeXYXTRfx7pGdPK6gntJGky4Q7+v1ScVPCnAZf2Qs WCoZT9hTMcAwDCe02x4nO/daYPVn7tfs8HZzWZTCbZwwuaUzyg3K X-Google-Smtp-Source: AGHT+IEi4A1FtaFdz12zIHvNWSEctZX7fNHrhjR6JqhPRCZIKCsxlbu+g4wGlHJlz0dlfvXy+GNHbw== X-Received: by 2002:a2e:2285:0:b0:2ec:3fb8:6a91 with SMTP id 38308e7fff4ca-2ee8ed8bd6dmr15779241fa.19.1720113838114; Thu, 04 Jul 2024 10:23:58 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:57 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:28 +0200 Subject: [PATCH v2 18/24] mfd: tps65219: Constify read-only regmap structs Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-18-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1399; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=l+Er6evvde/rWSFaUokuQlFg/GXNk47TTlB13TZUEts=; b=IB/UfVZPpJfxWBNjRq1HOL9KSAcIs7j71u1a0Eg+t5siatf02eWNOBO2ZelZtfySyA7nHVm0n xHWqVW50PWxARF6sB/K+ga4ov49Gw3AWaMJTC6Rq++jWZ2G7kfS0zez X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps65219_irqs` and `tps65219_irq_chip` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65219.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tps65219.c b/drivers/mfd/tps65219.c index 0e0c42e4fdfc..57ff5cb294a6 100644 --- a/drivers/mfd/tps65219.c +++ b/drivers/mfd/tps65219.c @@ -159,7 +159,7 @@ static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] = { #define TPS65219_REGMAP_IRQ_REG(int_name, register_position) \ REGMAP_IRQ_REG(int_name, register_position, int_name##_MASK) -static struct regmap_irq tps65219_irqs[] = { +static const struct regmap_irq tps65219_irqs[] = { TPS65219_REGMAP_IRQ_REG(TPS65219_INT_LDO3_SCG, TPS65219_REG_INT_LDO_3_4_POS), TPS65219_REGMAP_IRQ_REG(TPS65219_INT_LDO3_OC, TPS65219_REG_INT_LDO_3_4_POS), TPS65219_REGMAP_IRQ_REG(TPS65219_INT_LDO3_UV, TPS65219_REG_INT_LDO_3_4_POS), @@ -211,7 +211,7 @@ static struct regmap_irq tps65219_irqs[] = { TPS65219_REGMAP_IRQ_REG(TPS65219_INT_PB_RISING_EDGE_DETECT, TPS65219_REG_INT_PB_POS), }; -static struct regmap_irq_chip tps65219_irq_chip = { +static const struct regmap_irq_chip tps65219_irq_chip = { .name = "tps65219_irq", .main_status = TPS65219_REG_INT_SOURCE, .num_main_regs = 1, From patchwork Thu Jul 4 17:23:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724093 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.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 6603D4879B for ; Thu, 4 Jul 2024 17:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113842; cv=none; b=MC9T+yGsD0Ko+YxefA/3FAjquK9C1kq4odZw462XpBVU8a5J94oNJS6tGcLC74qhga+oKK6kvCjhnm715c+jCj9EZ0etWNSnD8eHuj8ELVdKK24etU/UIzwTJUeyBYwkA0CWQgkd8UFL3jGZ3PqGiB1x8IuUD227PisxrbirQMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113842; c=relaxed/simple; bh=1DZ6ZNTYVH+qxDLzyvoRZYeRzU6/uB98HyF0NhspnHM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d3xMT8DyBJrHnVftpheZ+yj5uFuNBV2uafHsDk3hlBnLQIOZYxfFtMRs4t15sF7jfYUEzFKOFdgns4sFpMuMXjbRZbmdGjE1/fB2ovAacMSdl5T+ce1FFGccMv/ZtBP14oM4u/wKBfaL4P90u0zbph0lHOHmXvBugcykFKuQZsM= 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=bzsI+aok; arc=none smtp.client-ip=209.85.128.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="bzsI+aok" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42564316479so5200305e9.2 for ; Thu, 04 Jul 2024 10:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113840; x=1720718640; darn=lists.linux.dev; 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=Qd0Z+TzoGuFE1UpjnOMV6kYTwv4UPS1xus6pH0CzaYg=; b=bzsI+aoksIeXIPMwDXIwHWYB5Ebzi6tSCWAssQTRvBsdf3NEYpP1SRA5FDh/iR8R8m b/m9O6XBLIoVVGET0IR3XtDLRwi/NoeTT46MFh55eqmj/9xHRNOrRjq6CxnvQja04GMG ij7CbQW9b6wXa0ECDMm9b6NeJogJMr/GZQFholdBBJ+MKf57tn+blV1QnF37PMsk0Jqn dvmMUg5O55QNIBNJquKxJthT5tqpGziksnQimmTrCXWFN7Dd4P+kZXAMFFqzvrLjDnwk SzY6LTUJ2FGgJa928WhZNWjTypbCRDHv9z8rnK7YP2tIkmZHlkEZghQeRvyqWRmGstT9 orWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113840; x=1720718640; 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=Qd0Z+TzoGuFE1UpjnOMV6kYTwv4UPS1xus6pH0CzaYg=; b=wgBpWO/4b7w47XEZsWvdGY9LeeARmIcwIGLUhCQANMH4ucwaSqHEc2AS0AnjXb2Phk xjhJkYll16kDo0ADQIS6ECJS8Q75nNwXuIfzcTDda44fPjPdsBeLVXzCJ+m+v0w+8hMT GwfDGQmdHtZnzM8h06lHYqpF+Llg53ZqL0FsoHngXPZL4GJJYGSX2Z1tL/Xc/VGCuC2I lf2g4IdZX8E0mXyDpfBd/MAdqVP+B4vg93Tegh1GwL+j2PzukTmMqBjYgcWr0TKEDR7Y gHLbaI8QeCPFcvryrsEmkpR3lGrWuSQGGnAgNyciopSvWPpxL0XHZlvqj0MDC0uNaenN Cafw== X-Forwarded-Encrypted: i=1; AJvYcCWrIZbE8UV+bJ1HLeg/WI5RgjuvW7HeCBrHJC+08c6+5UKs1A6Yk3PyMyh0JRMD4YkZJ/d7kCOTxecstbrmPBqhDVL1 X-Gm-Message-State: AOJu0Ywyrnm6p3jQl92RkqFkzjOAyKReuDqckCCQbGvudoQWnc1oagh6 xqR3gskvg/2lFxJoytvzoMaEY1y6lvPoZA6J6DKA8P96xoUM2tPs9kcB9FJH X-Google-Smtp-Source: AGHT+IGYWITQkdRhz4qv8j9cI3alOIpaga9mU5l0rkDSHKoFzkIRNkCv3e6d3tLaPXkedXobbHSgCg== X-Received: by 2002:a7b:cc90:0:b0:425:6510:d8ec with SMTP id 5b1f17b1804b1-4264a3dc1f4mr17296225e9.23.1720113839773; Thu, 04 Jul 2024 10:23:59 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:59 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:29 +0200 Subject: [PATCH v2 19/24] mfd: tps65910: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-19-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1513; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=1DZ6ZNTYVH+qxDLzyvoRZYeRzU6/uB98HyF0NhspnHM=; b=dPK+o8VSAHe74YFtYLhnBDMc4W755tD/h2MKv55jyOcgXfOx3RXMh2qTQTj258fzb6Genb0cq ujDkD/Nm7osDku+mrsg06AsIyvM2N44JYz8j9yIOK+zo4qzqPunMjZP X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps65910_irq_chip` and `tps65911_irq_chip` are not modified and can be declared as const to move their data to a read-only section. The pointer used to reference those structs has also been converted to const. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65910.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 8fb0384d5a8e..6a7b7a697fb7 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -197,7 +197,7 @@ static const struct regmap_irq tps65910_irqs[] = { }, }; -static struct regmap_irq_chip tps65911_irq_chip = { +static const struct regmap_irq_chip tps65911_irq_chip = { .name = "tps65910", .irqs = tps65911_irqs, .num_irqs = ARRAY_SIZE(tps65911_irqs), @@ -208,7 +208,7 @@ static struct regmap_irq_chip tps65911_irq_chip = { .ack_base = TPS65910_INT_STS, }; -static struct regmap_irq_chip tps65910_irq_chip = { +static const struct regmap_irq_chip tps65910_irq_chip = { .name = "tps65910", .irqs = tps65910_irqs, .num_irqs = ARRAY_SIZE(tps65910_irqs), @@ -223,7 +223,7 @@ static int tps65910_irq_init(struct tps65910 *tps65910, int irq, struct tps65910_platform_data *pdata) { int ret; - static struct regmap_irq_chip *tps6591x_irqs_chip; + static const struct regmap_irq_chip *tps6591x_irqs_chip; if (!irq) { dev_warn(tps65910->dev, "No interrupt support, no core IRQ\n"); From patchwork Thu Jul 4 17:23:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724094 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 7CDB9145320 for ; Thu, 4 Jul 2024 17:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113845; cv=none; b=fnUlaFnY15bC8/KEOUSE6PHTrciJ4fXyIMcdrKyJTR3kJMzO1zyBp1CgP0l/sHavc13AzWqXo7WejdAkwx2tF309uQWkr3FTeizrdDq0JOot35AVwyKvp+ClK6Tg+QRoeANqFRsEduTgWgntiaOm6//kf1NJK33hjhpGp+310P8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113845; c=relaxed/simple; bh=jMfkDgSxDotzG1jwrOsREhe4lpTvN394dyQECPi9cEE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LGBzSJbtKpsPlrmv9zFkwb2RQlaK6/bCdKkuM57s8Gl+aUBbdcL+4w+OHu4Bs5D5VOMU3mHnGvSK8AxUTnZFgKj5e+B/3T91HFoQfeTZGIGIM4dtK1mMOcGGnV4EyKr7WJ1a2seFB0W0OYt9hMTDKuMDPw9vxlPIa1/ElsJcFA4= 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=ePNSk9e9; arc=none smtp.client-ip=209.85.208.180 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="ePNSk9e9" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ee88c4443eso9536031fa.3 for ; Thu, 04 Jul 2024 10:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113842; x=1720718642; darn=lists.linux.dev; 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=Vy+A3rCs2GjwPUdBUvfrvVaJ4gXWSXpMp/c9DgZBcps=; b=ePNSk9e9fYpYIdc6yeeXo6MkggrFmXXfzlYyrQs+Wm55Y0bRD4fpFJlFpjmkWDjlKz bKihxFeP1mScPmoig6FXuiP6iwfq0iBoXqT09Ga9xrA+T+surFgdxw4GnbRVFl8F82pI TBYW7NXJONMWfoecnViVfuh13Jw7lhj6CZyzVA7MDGR1Iz3ZGAgL4qsmS7Ot05Bs6ADK AzTE3ibkxyV2Aq51kTuo/AFmNCXgL4Fsnt0N2CGzoslfLR7AOlqyjrJaovGNXOEjM+kk L5V3vN9D/9xiTSKUDj5B7YQ/R2VOu7pP8uwjubHZWBrthafn1fDRclOIbVi/9eM5srAy wi3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113842; x=1720718642; 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=Vy+A3rCs2GjwPUdBUvfrvVaJ4gXWSXpMp/c9DgZBcps=; b=DS/2EsR8Roo0g/z5KElOUqvc3B/6Xw8yt0ZWb+V3WEBY9v8tC4sfb7XoN6jmAyoK9D sGxqlswmIKJspCV14mzlk+y/t6bo/NiZMDOercwbk+zjqG2VCG7KNN1BOVrAEpMgassf FMalpDer/xu/jKZM+/ZC1HHwfUmf89lQke9iO8y9l66cpVBOfRMfNWZctjBymbAsT/+n 55LfiFmooSjuQfxcgtp3zXVXEdUDl175Hv3SjrnwYakpJkclbz3PqIqRHaCHGy+ooYea ntrHbt4i3Of6lRw1K4WWWBeuLGtYrq1Sy2dg+rU9VCjwZXoOsCVv4COhcaY6eXAlh+rB 6JwA== X-Forwarded-Encrypted: i=1; AJvYcCX0OdN/085cAmgj31uaHrrUzu+QtCrCf4Rasvv7bqROl5SsAT91RmkeCgVcrZPyPMs1qhaJikuv98NzdgeH6Am8nt7S X-Gm-Message-State: AOJu0Yz0n30qb2KvCHDgImalTvIkVENFlCbkWanFNUcFsukUfaYKI4KR f9++9HEPcNgZUhkMfAAZJ3o6w/Kd7Zvy+aTZJ3Ruopr+BhjYp7JJ X-Google-Smtp-Source: AGHT+IEUnfJ9RXgbg6QBZTXm3lVcTtwHsksi3AlggvCusmiUTsvrHbKYeKsVnlhZlRYaPOLgLQnBNA== X-Received: by 2002:a2e:a604:0:b0:2ec:507f:7319 with SMTP id 38308e7fff4ca-2ee8ee1373fmr17653611fa.43.1720113841636; Thu, 04 Jul 2024 10:24:01 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:24:01 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:30 +0200 Subject: [PATCH v2 20/24] mfd: tps65912: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-20-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=827; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=jMfkDgSxDotzG1jwrOsREhe4lpTvN394dyQECPi9cEE=; b=aEkb4C6NIcwRYWelpberMBzrQJRrhogvHC0YfXWJWnMf/s2kQwvbx2Ew/+zOyBnHX4Wd3WTkX ffcyE5PyiPyAEB22f7q4nnDn82LjurOxzt1HcHZnroD2VU1cUlFvZOr X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `tps65912_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65912-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65912-core.c b/drivers/mfd/tps65912-core.c index 87ee6aac3763..a9dcd7f0d9e3 100644 --- a/drivers/mfd/tps65912-core.c +++ b/drivers/mfd/tps65912-core.c @@ -57,7 +57,7 @@ static const struct regmap_irq tps65912_irqs[] = { REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO10, 3, TPS65912_INT_STS4_PGOOD_LDO10), }; -static struct regmap_irq_chip tps65912_irq_chip = { +static const struct regmap_irq_chip tps65912_irq_chip = { .name = "tps65912", .irqs = tps65912_irqs, .num_irqs = ARRAY_SIZE(tps65912_irqs), From patchwork Thu Jul 4 17:23:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724095 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0044E14534C for ; Thu, 4 Jul 2024 17:24:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113846; cv=none; b=Q1TJ1qwuCSXSjBS/PK6QAlkhQKeMCRnUEAxeN7VUlqIOUNr+1K2Rg/BOVZe9DKU0AM6tSm1ZztFyMpte7P57735wmO7UoO5Ttr0F4NtlkbeKTFPHkJLUvkWe3LGsGlV+brO7nYtIFrqdiP0x4B/3HLhQUpA6mvtfzrwR2JyltQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113846; c=relaxed/simple; bh=I1B1ilDX59ObzFXRiLamzLxGbqf5Ec/FSPD99VWZz6k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YVGExzvMJcp8kvhYRe8uq1elx41gNqYK49lxsVwaoZ1aHxK1aVsViB+A8DJ3rCMafBMmcbNFhzwfU3l6C2ouSSaeyBk2NaGU+aARKIn7tAkW0IOjaK9gkmUWeHPwDsoe43hCTkSEEEbIHLqc3NADSpq9PuKCs0aEZILxRxlde1Q= 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=EC30ovG1; arc=none smtp.client-ip=209.85.128.41 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="EC30ovG1" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4256788e13bso5610845e9.2 for ; Thu, 04 Jul 2024 10:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113843; x=1720718643; darn=lists.linux.dev; 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=Gn3WijEYYGde2qMFgclnizlvC5BdhQ9moOhVny9AY2s=; b=EC30ovG1PaEVWlBtn+AulgWY6CegGRT39BjBCed7N6xgOpkHphbacQBK6gPOdwQqC6 EeslHAeyeJGRC+q7lRJ2wQDdI1Hk/NfQ89lZ0ODywOcs7AN5QY7LRe9XV2Kb9ACzAmJj hny13RN6P3+p7akpX9YKu6zvhmGMuA/xO2WKx+/5UphqKglHk9ZzlsTI5gSAqpOMpW4W o3rPGfe20jKNyaB8Hkl4M6r8hXhMbbYEVvYBE8MTFGcL78LyLS9+m0uONQq5oCh5VvGT vKgXO6JHoMdRgbTA7IQ8BWF31MNwcphLRth1AgCjKkD4mLNSwmxgk7BCO5HsQ8Okmp32 7GHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113843; x=1720718643; 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=Gn3WijEYYGde2qMFgclnizlvC5BdhQ9moOhVny9AY2s=; b=Zf/kMBLe5qbp+JoxSz/8ofdCOXormrckysmF3pw++APS1TFCdybB46YooUUxYJ2dcl DXn5/K8mrjZrcOC8IzmXGyHCEicYUL0HZFXY5fi1BisQQyrF4NLy81MzU8iRZ3OYNEmq 58vyb3UeKPKKi6qsT/v1iIle2zjMPGzDTKHppec3NRzSuI0eEnCm1Vk/3Heb+Dv5NC8S zoFgocADwon07gFkhg0M2pfYgmZXjlRXaGgTGv1v8CTJwQlqC05okLalU56kZvddhau7 8PJqnIXZv8kqcLZJLTDBd4QpWrvrmn7DQ8Hv9SYAODPx+qdf8xx53rhL1ZrtF15IFvo5 Ajyg== X-Forwarded-Encrypted: i=1; AJvYcCWHVdilzLb8UFC8i2Jk1xWBLrMWJbLz9+HM2k06PkNmAoTtNxpjmgFglsR3iKY5+SPjlailJIbII2dpQT+Rd1p/5bvI X-Gm-Message-State: AOJu0YzaV3gYEsjlGBCBval7zy1F25fRmicCw2jsYb0tCThp4oVr2cK0 yl8DEZBjC3pCQ5TKVzmnDmNIi6tZfb6V1yamRjcLhNg84U9MbxT1 X-Google-Smtp-Source: AGHT+IG8fvyaCf2xyaf4M0QD3gyhQ5so/8RLHuVFkZijuO6tcEmwm6nfnnrw7he/U7Ta9U4kzKBZew== X-Received: by 2002:a05:600c:1790:b0:424:9c01:a0d3 with SMTP id 5b1f17b1804b1-4264a3e1ed0mr16677795e9.12.1720113843415; Thu, 04 Jul 2024 10:24:03 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:24:03 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:31 +0200 Subject: [PATCH v2 21/24] mfd: twl6040: Constify struct regmap_irq_chip Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-21-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=764; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=I1B1ilDX59ObzFXRiLamzLxGbqf5Ec/FSPD99VWZz6k=; b=DPFTUWQEWuGtIwm/j9T6GPVHIPN77LuC5ioFZw9oHtvtRTePW/hpN/Pt/2X0ooGTAt+cutNl9 YaWp2rV/4cFDw0I5jfzOYVelqe9Z2XCztXhQKax4HDng0YcrKonQ2Su X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `twl6040_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/twl6040.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6040.c index c184e8bfab7c..218d6195fad2 100644 --- a/drivers/mfd/twl6040.c +++ b/drivers/mfd/twl6040.c @@ -620,7 +620,7 @@ static const struct regmap_irq twl6040_irqs[] = { { .reg_offset = 0, .mask = TWL6040_READYINT, }, }; -static struct regmap_irq_chip twl6040_irq_chip = { +static const struct regmap_irq_chip twl6040_irq_chip = { .name = "twl6040", .irqs = twl6040_irqs, .num_irqs = ARRAY_SIZE(twl6040_irqs), From patchwork Thu Jul 4 17:23:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724096 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 099C9145A1D for ; Thu, 4 Jul 2024 17:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113848; cv=none; b=PTM0bbvCSQci5/BQh9hSqRolFxrvWzPYwvUBjtvPTiK9EVLHh5QAwbDjjpEg6zjSsgt8zYpLiDykiMY83UcydiKgD2XLG0A8s3PMXQFTfEmlesxeeNcrb1xB1hS35k7FDQmJLMkrFD4C9NXglo9DbaEjYgB99MlQUWZM2GWC6EY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113848; c=relaxed/simple; bh=EFjeAuFQ+yjeW5Mj8fAqH28Zfk3DwPtm3fhoKInicuk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lWqFsuU9g+N62V75lvkkXuP7s4AdjOR6K9tMVPKNn5O+vElB9cMT7DbVUt3mbypFqvjLLaMHsi3PrY0XtfjSqz+G9uHylBx0pN0UjZK+4nKk4ijZQRo2wx8wYGLu3gJf10jNMGM0+CVM9JdiJhTFVRci8mFRSlxJsXmcrwzDuv0= 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=heY2O0Fc; arc=none smtp.client-ip=209.85.128.47 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="heY2O0Fc" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4257a390a4eso5800105e9.0 for ; Thu, 04 Jul 2024 10:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113845; x=1720718645; darn=lists.linux.dev; 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=xSmkXwdNDx8gxRBcSFEMTKWfVzkTr4PxXtZV2NUkJPo=; b=heY2O0FcHDj0h1o2KgzGSCvoZ1bi1BNc/Sk5Hp47TJn2zqIzaTq4LTpey5BPSXChsI 19ijRmTzEUEyFNAhoT2CH0etusd/Wxe5X7YhawMHtdAkBfMSrSbTBzd98ntirA8mpSMa 6Vhe8EhLQdn2tJ8Wrt6dgDJIOY4CMYnpp243VU5lGPsumGVEN0RUOyKqwbu0IHJiLPJ7 ozUb/FQqjVfndweH+rqWG3/vZdpWQl9zjkjkIBFJZ75IS4LBbTY0+0aWUOOK1YU3UUkM PmohikWQQw16rg/OhOAUEg3a/IV/jaVsrJae7ahmmKUfK2hJAPZfC1Snwq0xnzN2Vl1s 19oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113845; x=1720718645; 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=xSmkXwdNDx8gxRBcSFEMTKWfVzkTr4PxXtZV2NUkJPo=; b=nyyJuqndnkjYGbRKHS89/QP9vWmKKNAuoizOE4WoCIiG4irZwEegbY0VAZ0EsMypQF zqGqlwQPcousJeDvcaMuKsXSC/qOhx6Y3y8J1VoHawreLHGyKpIp9GqVi29HzMxgOQ9g A1w2ZN+8edZpCcLfeY1ytgMDxWr/swQ4KBO3HStgMuhoyfrvDZGKNJPAciBVnFXOjTEt Qo0fIv+WNzIbA7r3FZ7ihTVRkBM86icf8gr5w5pVK1lx+O6EBSlr+4oVQ3imKNxv6Pbz 69DKptYPtFhGrKJ3blt2O8RdcQMauLXug7hLAPWIHGH9ApcouPudT01YGRVVvXA3XZxj rQgg== X-Forwarded-Encrypted: i=1; AJvYcCWG5kh0FMHBzo4cak1Fk9uOxwQAGcKfFfJRS7Crw+7NzFLoo9iR7u10JK5x73QRFhtWio++ZXdyBsw44s6JyAAcvmr7 X-Gm-Message-State: AOJu0YwiSPR2At1ncgI57tiJ1N+zTqskxfDtEC34IyhRGtB0cHLnruUd 7jNkz92IIw+CAgrYKIy3w/0uaol2arcZ9rTLGY2C7MVZw68CCcx5 X-Google-Smtp-Source: AGHT+IFxi0ZapjHCUnWyNL5kvf9WrHCIIvC3731ltStZfnS1OdULl4EU3AnXLZGmvjFniCwRREl/eQ== X-Received: by 2002:a05:600c:230d:b0:425:6424:357a with SMTP id 5b1f17b1804b1-4264a45f760mr14744965e9.35.1720113845281; Thu, 04 Jul 2024 10:24:05 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:24:04 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:32 +0200 Subject: [PATCH v2 22/24] mfd: gateworks-gsc: Constify struct regmap_bus Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-22-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=739; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=EFjeAuFQ+yjeW5Mj8fAqH28Zfk3DwPtm3fhoKInicuk=; b=KRVR1dMucgQ62PGtutNIDVIfVON9pSMU21YATQa6veFwYOOGrU4wZI9vUYUbP9DTsH5+o4UkS TXwaYJ6ga8MDJDIBznuScntzxKT1mngJxqyLIchPUhjkVFNNkvLTP4x X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `gsc_regmap_bus` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/gateworks-gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/gateworks-gsc.c b/drivers/mfd/gateworks-gsc.c index b02bfdc871e9..6ca867b8f5f1 100644 --- a/drivers/mfd/gateworks-gsc.c +++ b/drivers/mfd/gateworks-gsc.c @@ -160,7 +160,7 @@ static const struct of_device_id gsc_of_match[] = { }; MODULE_DEVICE_TABLE(of, gsc_of_match); -static struct regmap_bus gsc_regmap_bus = { +static const struct regmap_bus gsc_regmap_bus = { .reg_read = gsc_read, .reg_write = gsc_write, }; From patchwork Thu Jul 4 17:23:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724097 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.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 C0F4B145A1D for ; Thu, 4 Jul 2024 17:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113850; cv=none; b=e3UFFRRRkFUUaJxN6KqhD5+JMbAoWnjE5votBNYoCudDMGLn0sO3cIXK1LMJoscT8YcAEAQU4F5aefI4UEvrieT4a/srpX/pY6xE8jfZz3LKlugupRlA0m5wt7WylxLQVL4InRQakK/10Jb+7sRLsf/oR61Rpc9DrgQ/6PscMFY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113850; c=relaxed/simple; bh=l1Cj78yZY8L2tTDG6sw5fSc8edu6SL6nJiCxRWtiPUE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CnXbQxVrHu0AqAfMsAjE3Iuy9scgQjJHes8Ogk/SFEwtV3jfhobeXIi6Z/x53SMN0OgH9aLHIkq+0QyoFkvTWf7u8EAqcVaOdgJLAP1ynd2l0EhN3qca97DFcw0x3xooxAcGm+Nbg4ZoBHRv4MX6eS22y2Q4Iwu+bXjZtjOPzag= 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=dCiBsHI+; arc=none smtp.client-ip=209.85.128.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="dCiBsHI+" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42579b60af1so6051945e9.2 for ; Thu, 04 Jul 2024 10:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113847; x=1720718647; darn=lists.linux.dev; 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=NKHYWbzkMTD6qk8aJRMT+i6jtpdTExyqbOxjXHTRIgE=; b=dCiBsHI+w0fc+oOrNbR+XB5mw5nW96T95SWOUW9gHm8p1Zwn433s+DdKZ9ejbpD+zv CDTuU+VdfowQ3DVOrYbaJ/SqFXMb7QBuNnxy7pzZGIjdbwVdW+UkKPQA9GyHZv+PMB1M 7k+168bBeFZfff5xALu28hHYoIgo01NTsOMLk8Wysx907x/7CrtqoEG2KfuHc/AMcdSx MpI0d/YzC1jWBTrU1l7IVWwjwrRSCRIBVkzQ++AWE/ff36pzFVM2X5kooxiyErZ9JMho sYTMlLXX3vm/ljK1HQL/0UNzvr7w2IwNvPqwaoxA1lzGWdOhbaodYTHk/+vTiGovTnZy pTew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113847; x=1720718647; 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=NKHYWbzkMTD6qk8aJRMT+i6jtpdTExyqbOxjXHTRIgE=; b=tvbONPlrZgkBE7fy5HAVVsClKjIYOCS04FqF1BB5QJE4I3hquihpuQa9JbKnwFgNP8 OeDcRb6EWbA6AW50cqGw0xR7T5tzwbO1Cb/gOGBABW+umGYPkEcYwBnSyvSdtOhazATy K8p68z2G4TkmSUTT8ECzuMADnw+jESn7Pd11v0msm5bnExkrG1mK/uLAGYILnRIJuM4y UjbUAZjLYIBzEJhvC+8ksg0Ards1dObbI1cDHLzpt2qChnQNM17BU51VgP7HAvZ442bW ZUthjY7SUOzWVFmTsPZaVZI8QYXAqSEUZmrcEuDkAK/T4nHudrrws4WjLzpdxARbSkU/ aqGQ== X-Forwarded-Encrypted: i=1; AJvYcCXQwOPLve0SPWiDTSZjSLaRhOCSPC3zm5Ziggs0W91IVDetweN03L6GrB0OEGzBi1s83e+ljSPiI+7tv0M+qqrD0rks X-Gm-Message-State: AOJu0YwscpozQVq6Tf75Q2EYt9EWV/vzG0CaZn6hJqL8HwtDG783pVWk 7IveSefqKyAQh1jfN1TNXUI7f85U2a8R5dfWetlZGxnT22/qn8YR X-Google-Smtp-Source: AGHT+IHQZ4Gzn4G/A+zIb9YJ2Q0ClP0LZcg6Q/8xU16dU9Jcz7FFgRTHzeJxzyBqHfPRtw4+F+JGUQ== X-Received: by 2002:a05:600c:5116:b0:425:6851:8172 with SMTP id 5b1f17b1804b1-4264a3d8045mr19854075e9.3.1720113847160; Thu, 04 Jul 2024 10:24:07 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:24:06 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:33 +0200 Subject: [PATCH v2 23/24] mfd: mc13xxx-spi: Constify struct regmap_bus Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-23-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=755; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=l1Cj78yZY8L2tTDG6sw5fSc8edu6SL6nJiCxRWtiPUE=; b=tgsjQxPaXkJ9v9t7+dV2nb9XS3bWZJKrIdxeCdZx3svXnlCSkrJAPABlqxbHhy6nedQFMauDC XP+11fvCOmaDAuPvCKPD84p9LPLlmHO3Pe9gkiHXJXCPJEp1YnGpdbD X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `regmap_mc13xxx_bus` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/mc13xxx-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c index c973e2579bdf..9f438d5d4326 100644 --- a/drivers/mfd/mc13xxx-spi.c +++ b/drivers/mfd/mc13xxx-spi.c @@ -116,7 +116,7 @@ static int mc13xxx_spi_write(void *context, const void *data, size_t count) * single transfer. */ -static struct regmap_bus regmap_mc13xxx_bus = { +static const struct regmap_bus regmap_mc13xxx_bus = { .write = mc13xxx_spi_write, .read = mc13xxx_spi_read, }; From patchwork Thu Jul 4 17:23:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724098 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 D61D31465B7 for ; Thu, 4 Jul 2024 17:24:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113853; cv=none; b=RHcVjwHDQvhWQPxo92nl4VC2f6yLEPs6n/MFFmEC1kZBdA9ptQQCR5/6YBu0UIsN45IUtvtCka+mPPJ8dbzTJz5ccmktVeakvLjsLRh0PoNt4VaK3hgaILU176Nm9XT1vGPi1ZlI/hvHZ2uwrar0+JRVFkwHQrQPLssXjgcRsAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113853; c=relaxed/simple; bh=bSrh6dRMhrjSnNp2eZHSzRWT+oe0XS3yo9fzlNPFI3o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AodKa5yB28crxewM9hCrLaTvKUTnDrGQz5MIxFp9MNoWHpLCrSXaf6hIHwgHgsuldIXuNFdH4zahl8V3e7Apfq6yK9gWexa/jAjXwFBHdsQQwKjFAwugi65SYtAmgL6VFS7LHH1L0nYZJh2gECKjkafOg/khIa5HXfuOM0+gWLQ= 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=GS+3uL3K; arc=none smtp.client-ip=209.85.208.172 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="GS+3uL3K" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2ee7885aa5fso9062621fa.1 for ; Thu, 04 Jul 2024 10:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113850; x=1720718650; darn=lists.linux.dev; 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=cY6xfOZvlcet+ySjb9JWf/+SsmV4UTmCb1l/EHDXfC8=; b=GS+3uL3KSho2n0nk761urjW60Wh5x02fnDl4Bm0K0YVpb4kJ+nMBWQW4H1s0Q6V0vj bjSxOAh2qfEO5Nb5p+3DJXiEkjChqJyF0/knIm8xpBMUU+KzWGHQQn0d6mD9fENrPwLw fGGLcvX4rF1Bn85L1s5PEnKCXldXoJvuLVSoCRHLEbH9DRwI4A/lRGspsuApWYXKovIy zXyHOGl5LTuZptUnOJSJy0yf3uMFYuDKbGSKBml5Y24NXJkQvr9na3Kf7coFN/IKW157 wkRnq9oz3SrWoAvXlL30ooYwzBhp+4L2IMN5/xLq0Z050OsjC7UeD/zVccJkutCoU85I IaCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113850; x=1720718650; 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=cY6xfOZvlcet+ySjb9JWf/+SsmV4UTmCb1l/EHDXfC8=; b=TrXETgflZE4VtBgd5R6CdsMcHL8noErVOIINmcZPIQZdNlaBeWg7hx/1G3CuVWXrtS 7aR0RwOHP+YkJ0Rp6tIir2t5k/hZUe1yqTPiYdvsOhN6Foi4PLp7Nh03FKaQ7ikoTGR4 ezYCM/nj79fXJIA+cG6OgpfLGgEdTs5yPSlOOA1wAGcZQg2Rnh7ShYEFCCOi6znjflQ7 wjhKYcvjzkXt2Jxm2C0D2c6/P/F87gXJSUAPAg6LBe1SAJZTLZYIkbHvAOkzIIJAU6hc jd/LsfcMx5Pk50OPjOPOfOcqeCsIyuBn5N/CU8j7mSfYA0hf/m9CedVWnkdDYyCqU7Po lbOw== X-Forwarded-Encrypted: i=1; AJvYcCWPbXXcOAKSwqbzJhK7VcLmm1/B3p1m9d0yC2iBqnYFtjPrlF9VWi7ak2JPTugA5c7zVEs6H1cMwSCrKau29J5yHGX4 X-Gm-Message-State: AOJu0YyzD2ZJsBRbiIlJwYmtg0CoskoOBJDsrjTmnVSOPsUe5DjjyEbK XyjoknDL987u9shACAFdH+31xb2XDOmMpELQ5ZTibjxm6T05DpmM X-Google-Smtp-Source: AGHT+IGtnAvbW4no2BJkVizF7QyWI4V6mUEbSxAj8vrlcD/ecnkkHDmGxX/0R/e7YeC7WvAUoP8myQ== X-Received: by 2002:a2e:8889:0:b0:2ec:3d2e:2408 with SMTP id 38308e7fff4ca-2ee8ee00250mr15810741fa.33.1720113848939; Thu, 04 Jul 2024 10:24:08 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:24:08 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:34 +0200 Subject: [PATCH v2 24/24] mfd: sprd-sc27xx-spi: Constify struct regmap_bus Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-24-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=780; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=bSrh6dRMhrjSnNp2eZHSzRWT+oe0XS3yo9fzlNPFI3o=; b=DezkfXYqRxh+l8xH0kAqtfFdbmPbZ6IPk/AWxl17e20cmNX8etXGB8bY4Kz0Nd43R0lo58BHn Zy45XHOUm9nArbuXRULBjg/edSFn9HKpD5rSni6VE2XuT+YjdZnsqq2 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `sprd_pmic_regmap` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Baolin Wang --- drivers/mfd/sprd-sc27xx-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c index 81e517cdfb27..7186e2108108 100644 --- a/drivers/mfd/sprd-sc27xx-spi.c +++ b/drivers/mfd/sprd-sc27xx-spi.c @@ -135,7 +135,7 @@ static int sprd_pmic_spi_read(void *context, return 0; } -static struct regmap_bus sprd_pmic_regmap = { +static const struct regmap_bus sprd_pmic_regmap = { .write = sprd_pmic_spi_write, .read = sprd_pmic_spi_read, .reg_format_endian_default = REGMAP_ENDIAN_NATIVE,