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: 13724024 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 C37CE32C85; Thu, 4 Jul 2024 17:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113812; cv=none; b=PLdLGDEJZwTOwnrhWoeypirP5ESCArgswh0KT5+QJbsgH1OICCwweONGj8GVFyJJX/aegMXzbH5WswZhZWMSd6k47sScY47lgtgqYSJMqLelwfFKm7ZvNjxrQFxc0AbmWHXsGG7pbKWJQkn7cEAkx7sGEwqI12RdZf38N3kNH/M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113812; 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=t3tixpEhTdjhC7z0vooVLEpp7kgIVQkT28d8VtFztpl1AZQ82Qx+m43G8A3KA+HET8guGzWLd/SoM7FXehyslLdTSgOPJPqws79B0DYGL+EchklmKCuAdvo4arRXOkjfXjnjkoQrLcOGFA45lgnTR9HCbX672w5Ux6gzPeKv6Bo= 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=W6P+Jc4x; arc=none smtp.client-ip=209.85.128.49 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="W6P+Jc4x" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4256aee6d4fso5192495e9.3; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=v/FvmgWoqRW+fG/g6TS9f9J9g4zOorBTS1e8w27Zmhc=; b=W6P+Jc4xG2dJEUxMHVhfEskwx4/pRt80xfv0BRnR5WXH2zvmgzvp5gCKCA/vyi2N0o +dkAzrMP/Neh5LFnpkzrsqZQ2N6eudM/3GnvZDiZJgnU21WM1wFsL8M4bhzMHVmpQkcj MJODYfQRCTrW8GCoeJMcN84bOjL9qKhSQgMa3fVSvYJb8tGtDs+27NThde1Nkxunsysr VT8hlgG8R3ImTko1rHylJN3HPAqEuQaCXQiX0jCChcywolT807mnfnUn69Cemn5MwMsm L3EixBf6ZJfrLC17gHQ4rmti/K7dwXB1/mEh8Af4z9oObUIABWFXmTKfJ8O9Y8kG7xQt nCIw== 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=EIU4eONGBEKgeWzYMrm+6N7ui3zs4m4/jjT5gpvt/xs1R3rd3OnesT50D+YHILLQDC /DA0V2MXbQykotnNYv1lzmfvHo2BR1/h5Xey+n9oywg4gAwgkvFrQPnPhDFhEn6z0prK e4kKEuTCKm1fGPgRePifTWTR3o2FYJ1WBWBqZtAZ+k3jD6wg05KdRo+qqiHrqa6x08Bv bP59ioo0qsm6MwEaeQmfoMzLGOfX7xgfbhIRc9TTbGJrvhTJwSYi53W3Jy9TDS5NND9n 3F9GE0YYAmWaW7TW0XWT5JGskyhU1Bf8oKN3U09AzwYttJDYqVwCPJn9G8rbKApAl9BN 4bJA== X-Forwarded-Encrypted: i=1; AJvYcCWNntcNLTTTEjxyNu7fz4PkOJEI3m5qQFSlTzYNSjEx/bTPKkaCAJBWZ1MdHSI2D4qT7lm6O7AkxqdurUZiOaq3KlFNnog/YzCsX8slzw+ei4r6A+e9OCdgM+7hON4Q0iG5SItTOhg1aavkNO1G X-Gm-Message-State: AOJu0YwI9aq9s4fnmVKzqOMRHuUMEHB5sU371qi/rde4ixkh6ewVmj64 bDgiqZEcf0ftla726/cdR76pgomMHhdR8486FQlFppuxg0PM/prZ 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: linux-renesas-soc@vger.kernel.org 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: 13724025 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AD563C482; Thu, 4 Jul 2024 17:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113813; cv=none; b=TgeR/9b0njrdcWkKCKTBAO3BQcChX/STK0POAMt+dswABHFYanjYvW62ZiK8S8fb5aK531GDtE3wOROpUI6iKbGMxhlt+xo3wTp9KeeoJczGTcfUW2k9TjeInGDHeA5J7jVi9kIidcDpaapQrR7jz3o/wfU5shzn7gk394dZoog= 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=K1YZUIWt; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K1YZUIWt" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-425624255f3so5735215e9.0; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lKi2JAqKWrjfu71x3mrudLF5NIxjHTPRhhtNA6MHl8U=; b=K1YZUIWt1+OP0AZFgCVnJq8P2ZHhagkqXhytifzIOaU82fUM7lOQ1xyVzSWdNmEeQ+ etg4ctkvbUpCtDoMC2nshwvaj546gO809YgBfMgwOXCOgHmaGE95/6bezPFWpo7N3TDH vkv42gDVttDsiD5KgLkFbrKrSlObeN6FqGoI7QbUcskQAgukNkoVnm7HiV/dFfniBpnS u8xuIVlT32t0wPFrNZzRzIh4Fn3Hiws909gYIzXcXtOniIXySWMhzy72Id5asNXbEFJG /rmyweBvMTcUEz3d2mliDfEHjOAQX7Fd14zIZkMaxa4IMpFV8tdWr8sbhGSfGY5ZFpjP DAbg== 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=HC9j36TQurgFIUzgfmiXNsutqgiNF611qMFqkY972BtAz/nw0nqCX+9JZ/ZT2cJy/q B6WZC0Uy/rAmJ08Ny00OJuVCmkC/v2R5jB+LLtTkF3bH1OdZaQ3NWpLQyC4p9ohw08yt Q5SYwCBWZ+isl6BuVthsw3UK83YronDsqKtC//JEVWCLbuVqy2NXUjpXSoMWmoUXv1Vv cTx3maSfD9dqAGY/e4z3Zno6ovtmgJKoLlUhzqTmzaaGAuOXYF1FVXQoHJpmzPT3kk+K ptrf9RUDYmcuUobRJO1I+DYxzZXr0IY9UxhIm6CLo0HgKNEisvMCYz/KlEkCaAq4aLme vnHw== X-Forwarded-Encrypted: i=1; AJvYcCWgbIg58Pg+Wy7AjzbDoLED8qOMoc+R882y8fOXgBf/xRywU/Tn5cj/JQDUl+rpm60zub6ghHtUEpW2xjZ2uZSpmyE9jvRVKJIZup+Kckg/tm/UaFDfcOn6Zbz9ncN7ULqEeXSw+wvQj/bfZPJY X-Gm-Message-State: AOJu0Yx66P3q+sdC0jHiWIRsX4QDraK8JbMsFeoN4w8UXUGdHN0Vfih4 Sfysmuhhoa0OkeWjA0D1ez1zYqUPQ8hQNv8oZ57vNhnuJAQyhDoL 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: linux-renesas-soc@vger.kernel.org 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: 13724026 X-Patchwork-Delegate: geert@linux-m68k.org 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 4570945C14; Thu, 4 Jul 2024 17:23:33 +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=1720113814; cv=none; b=u7GxXx2kJbtLzrwb7XnP+/aToDBX/81MSTs082H9Gm3PZOI1et21jbe5FwvDGhmlaq9sp+lNECzbIWKfTSQGn8xjSb0QQV+a4rNNoHNmh5KMWHyGf+hfrdWQnLmab3iv1iUSidjAF2PU6RDzdHT7KMApFVHKehOEtFs4o7oWhlA= 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=KYXlLMdi; 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="KYXlLMdi" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so5668925e9.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=M+SGNEsXbL97x+/CVxCXK+2nldG1TcI8vle2Sq9kOQU=; b=KYXlLMdiTDgvEqBmd+5jA8OH+2KuncQwfG7Jg1GR1RtcuP/UuiH9r34Nk62/p292H/ DO7v7jH+pCsOGxfAYT35mB8qnOcuF3Bvr/JoRiIuNqCaaOx8tahXCOCXujmYSb743k29 0DzGAJCluW7yz5PHAs7Vzrb9fbBmXf6gxcpE99JqjrxL+FNjm6a6ZeIJZ2Jcnxrquhqk 9hcMTT5IT7Tv4ttbCBS4trUKjmAsKGjSzkxFHxAorHTS8DYfMS4d+Ez1uUT5OJ2NwgNO CfTw9SYj4d1xQyh4YyY8k9508w60DcpNp3hN530C2jLMkXNYfYvXTlGYT1REk8mxovAx a1eQ== 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=p5Nsn0kN+f7fj6B8PF9mVRHfSQN8gPSynR8tO7gh+9g6ChtTY2iv+zqdGvK+bg0BAI x3l8Fjabfqrn07TuZbuz28IZOaaNlJcvQBjD2WfUB5oJU3H3HHleGwUnBC6ZECxlsyxi mOxUbTvUJFl5AM9iaGjVL2sGWpCPtgo+P+lPKw61790AeNcmgYtK1X5aa13ULfQ997KE gW2hW6ELc73DzFWs4yS62Cl35BK/b5uinmtlFK2WekJkpu/OcEvN9TStQ6hHleAwZ1Vu eK5Ma3GRN6niBFw22Ulfr0wY1+yfxhDPBJfTAq+YFOBoEp1dl1PJPSNZNV2wnCgz+vgu iUJw== X-Forwarded-Encrypted: i=1; AJvYcCX/emtH7JyO0GaBZEu1ZvUD0LY2dfkCofszJ0MpXHIyv3ZQXDhwv1GA1eDHX5COIZFZOFsee78eMB811iciDi6rnp6ZIE1ALUg7CIP5sXAKP+bGTXZ+tdSdIuVtIrrJ8OcwP/92bTD8AcGo82RB X-Gm-Message-State: AOJu0Yz2ldU+893Rrr8QhXkWo6xowi3jDl6caWlxSiBC2qvfbtd06urY IFKfeg1HV3/6AfTmI2gu3HqtZw9/01x/DEVliAzMUFY/wxQrwSkN 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: linux-renesas-soc@vger.kernel.org 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: 13724027 X-Patchwork-Delegate: geert@linux-m68k.org 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 47C5B50A63; Thu, 4 Jul 2024 17:23:35 +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=1720113816; cv=none; b=IYr6B5A5eN/butbZ6zdHJ029fF4+KrFDraceKgfrfPGOyLVfSSg7qN+mbgAeQExPEDfTLOxK7PpqfYFvoD6U1x/wWC/OGXFf/e0jVXvSqeYvZk0qHVHeXWBbVKIBXOId3J86I3dmqPddLHAHAowv7gDimLMPzy5k5LF61Q7NeZE= 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=UDh8j8fB; 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="UDh8j8fB" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42561c16ffeso6041975e9.3; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xOF3cIT6fgv4yx2bUJ2liLgQLjKC8cJY9QXkjtPW8ps=; b=UDh8j8fBYIsrBLymWfa7ho8e6IU2m4wr37XsyKvIwLCQWZI1ADCb1ExVZ0pFCMt77+ dCk82hwvKQf+FAbpHl5cdMtuvdc856/pIbkkM7bJ4qmj+p1FUUQkHyrGXo/TC5OCTaVj KNofqqHbOhcpdrJPQh1omYhEfC2dvO27U/cJiFg0jzd85pwwfx+4hIlo4eF5ydtum6HZ qGes18XhmvhywoY7DSAN9fDuztx30p7KCoTEAHjuJW44+gGojnmErv3Qf4OcOvnYz/0h AvEB3iDFRaVJlra9ywQIe9BVvuGd52zZiK7gyiJPrOa3k/Obf9zum9rqS1gCy7lLZCcv tdaA== 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=ZMFhemk4Jj7BVo8K6N6BdLrnUihUypn6eCURaqGwkUCat22kN75rT+lS8fo8vibqgJ YOH3yQ3wh8HARLuI1jwLk9lufGiCqmdbFafk6yobIoKrkAESlYRc8t2kCKFS4ca1+sOW pU3gmf2qU28UIMLw0uUqzayi5rv10wckdmvjQXy5YFkOhYGpCIxjvOSLj4pfHHvWQWIp OhxZ7IPrnaDkDkzouIPQqWAdV6y9v2BhY/zBFngy6TMyUIpYPTXafvzbMkKwYmC/TcJN pQNK8krtr5WI8vIsXNnN4r8EpPuj54Qx4zOLZU1NhqOHRy1A/KTswfSItPEIq1kOTYCL 9VIQ== X-Forwarded-Encrypted: i=1; AJvYcCXsOoYXse5qoKwGFvVoALAab8ETOv//slFWnPWUyUw0B0/GIEti//7DJ7xLp3pNfy3v/+ZCTH/pq21Im7mmmb7dIbm4Bdmy274nrNcu/GKzFqRPlnClUtCx1eCRNlG9wnNwfCc3rPLxCdTK2XEI X-Gm-Message-State: AOJu0Yx+1xNcZ27AdB3VS9BwRcgi3AfX7jA0OOEM86XRcWBJNuDpUqPw nzp6+ZEurWLjfORerir3D+DQ5e60ADo2c/PqkpE+bqIN9ueUPSjh 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: linux-renesas-soc@vger.kernel.org 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: 13724028 X-Patchwork-Delegate: geert@linux-m68k.org 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 CF8E34E1CA; Thu, 4 Jul 2024 17:23:36 +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=1720113818; cv=none; b=kUPrTWrmFYUPd3kDFgxQJag5TE4XVRbfQSYqJzh6Cl2OUnYc6Qai8clcWJl9Kj792aHbrBzToshTpCKiOWFiTVevUj1deIeCdPR2mwT1dLN9uTrs0G6J8yr1HwtOKNUfZ5z7HO9DFmbpa56vQI5wEm8XsOWax75VJlaJBRi0mmU= 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=cFwQMUKw; 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="cFwQMUKw" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-425680b1d3aso5676905e9.2; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=1DvuUcSFwNO6KhZ/DbrjWlR0SnoFpdvXYRD32tmG/+Y=; b=cFwQMUKwnsLFBFAiLa84CHpYywuWSeRUMJwUWKej5evRCmPK4+Hq2ZQKVWbL5CQEZg JeeTfEqz4XDxWmcrI5AW1BeRGLi83ZaRT7aUxtZ3hi8x4UZGTtEZ4u0q+RYbhmCO7dBN rhETptTIKK6pM+04yvRSk7HfPO6ddI1Ntp4zbzbsiS+pdly8YaOSzpiSIFKhoeeTjnmo mYDKYollne7pteqELzAKLLlwq44ZQamL7Z7uz81F/o+f10xN02cG8Y8nrhBZBtKXHYuF r6siOvKCXOswiz8d/RPE/fMHi0tCD9rGkFI3pqyp4n0s2m3s2eA3LFlguWuMPVWNoFfa myLw== 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=fBM5AS0iJA1gnL+bt7VN0/DqdC8LFCbSmQszVzxjO0OXXozsSnJJvQm50NKDcJhE7Y lEHa6dTCNForvMkre5xJvevBsGpyBb4/dK3EamAmwD8Uy1BXzTRCHOH4vZcVRUejZIqX 16YErptJAv6yiUc/Lzuo2MLEoLzaxgCjPTGyLaC7fxchKdkhiXwC+8ONOwL1qS4zGRXH FiOZC88AY0HPrciYBPM1LYP4WxSHom/y8308kjG4nhVaPUa0PdeUgFgr/ny0Xl1z2WVF v5jwLpcXbgP/6QbsA+BH5gRGDcDL5GuVV9kDUDkRv5qCvwNBNACDkMdp9PBz87MyzPaO UlFw== X-Forwarded-Encrypted: i=1; AJvYcCUtBrRHNMY+kZz9E72J4Smj4VquSSrKFtT51sqZyoT8Y9Ajt2SSERLkIq7hwNBTim8sNsZwB3kfiPXnlwOFVYg1PYdRJvRd0p09w5I7TkLngdRHW21ssvJpie7L8letiDMCHZ8OX8WWsFfwZrjd X-Gm-Message-State: AOJu0YyAz0fRanjI+rXglDMCww8WWEPDrsoKIxM+f/01lCKpMlx6ruFB jPDNkx0sfk3SAOc+qn2IDOgPWPmqthpS8U/aFDrNK1w1lXyCT6xK 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: linux-renesas-soc@vger.kernel.org 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: 13724029 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 AEF82770F8; Thu, 4 Jul 2024 17:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113820; cv=none; b=WCY70dYtSzByEixHRhCvFRFz+8rbM9WQTRIXM5HEptzSdoUbNErclz0OlJjbOtdrIMU1DzeTvweITNHK+YGKkiNT8tzq+rQnImaVilj6op7GSsbf4o90+hciYLiim0G1/UePYTbpxmEPMvnStoIi2wH9T1sxVWHG4mNedNq35dw= 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=EJk+EVr0; arc=none smtp.client-ip=209.85.128.52 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="EJk+EVr0" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4256eec963eso5635935e9.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UV1ltKTKaW4yZCRIt1PBVlpTJKfjEFuyvDZdCLF6YdU=; b=EJk+EVr0RBl0EdgZamEaqFHQPxSMQCcX+awqi1Q82zb+IJ4KtOZv3L/BcPDmBgzUEb pMAZz070TceL4T19IdgJbkiVQWRBLm3MGp/Ap1S9llEDrZ5CsBjLTY2K7H64w5zj8+RJ y6WhXZmGfpDiHhKWEz9wxi//3XcG3LetW/vqebCFspIsorU/l2XFJ6F2o6MAUrg4jr4O yhkh8VFD4XLfjNqBpeSq6DJDObGEfiSh7So1jLEnhLa4Ahw1/ihy6EzY4uOHjS9XmTK5 TPXo2SbB+p9WdPNYZfbGBN/eHbu6LjErVTd/JdEjIvJOSEFHf8cV2aBQQ7/RIrpEO1eO azLg== 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=BCARXK6bkvY4hJb3PY7up+2ypWII8Jklk4Y6M33k5IcY5sB/Ja7q4JS8BmKSyORvxN 1gjp9f9t83npVMu6jLAeM6ZQmkCQ2YLnLYJXSvKTmAvC3Ch+aTevO7o5ojkjb+jSmm6a UyXfVCq4GqJw80duFMPjX/Bg71efGGwFwjTufPdfehgNcOWdHRgIBYGDo6DVOj27iDNS koBoLWNFnVPIcnsiOFCsMZdKmx4rrBX8aSp8UEr86Aaij9e5Q8nRNByOUx5SBAvxVAsJ Ac8OZeR8Wv02jHXEFTp0zmoqKp3eQ0swc0dyRcJCNTHxkdx50gV9a7ay1VeU6CUvOP4j bRHw== X-Forwarded-Encrypted: i=1; AJvYcCWQDeIzuk6Sqk9C3BBm7LmSM+pN+v7cwMNMgdTTFBZ4WUREDl1cr/R/NSeMIRffVCBnykMkn/UCrWP/pEIWc5vkhHE8O/rHc+NQ2IyagTW8GydmI+GmIGIaUr0BTYvYROvsI66SpkKPUYbtfSsf X-Gm-Message-State: AOJu0YwOOsT8r+4CbXGGCwe7yu5cRp5IFJ42fLPuInAQn9GwV3SO00I3 7VZUTMkA4h5Qyw71lk2L7jXUrnhqR/RzoAdPcxMnFMaS8x/0Txq7 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: linux-renesas-soc@vger.kernel.org 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: 13724030 X-Patchwork-Delegate: geert@linux-m68k.org 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 D7A36137772; Thu, 4 Jul 2024 17:23:40 +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=1720113822; cv=none; b=K3DQLFndFFISofDZl88obEgN661LBJEfsEQXMoYbkXqXgG52GehWobVPOeTweRyIYXve/rjkICbYWYe0pWPT1euo7XEQYkXQVbZ3ygiTeZsTF46REqd7qTxnj1nmTAIh9hmtPV4rY530M5M5dp5FIv58BajDsVAP4BzCfYE5Icw= 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=mdU80Nte; 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="mdU80Nte" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-425624255f3so5735705e9.0; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mWEywv5t5/SdpV2ZwtxWx9CvH6fdNiDrX1/VhDJvqUg=; b=mdU80NteTx4sQAxIJOMK1QIiUrfkZ2YfcKGo2RG/6Q2DzI1OOYQUzdBygDP1nq4Tf5 wC2w+hz1pJKQZeDoOedB+VAOoubGDo8yr0d2gNZ7wcd5mrZvi2FJcbgRHUZRaNe+B3tR K8Qn0c22tBlBzqMHhsu6ukosHYOf/2AZWJHQzftiXCunMW5hmP0DQ+6BsKF0qXFk8/Kb gd44z30R6dcrYLlGQqOUCuNuz928MmI2QUMwgYLbHy9decWHLFZBzoGn+08hTrKavIRY dywdh2n/R1uto1AAaKMm2XdaktikFi4nYFEampZj/GNCmhzAa5X8xmichp6Zkhaf8/eJ QwxQ== 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=o205PRtsQQAW06SCrfFFK+JA51DH247YkWVFVbEFENYcHZXRLKNL+BbPUwu6uYzaHJ e55AzDdt1MagCISX7vEiNIL2OdH2wCTuU8s7QOTnMWV8KvDrM5WWtv3IN53KJtTT7mom Vbb+7UDIGxYUVeayLIci2syvckET/vMIQVlZOhVHiWfv6S+YuEPEyhrGkA2DywRDojwi dVjKoMF0DXrlZul6mFR0M42WMOt9kaFD37kPivtZEufqseoEef7Gxj3Gu0kIL0scoyfm mmNKlKxrAucRqppASBy/YIVybyXTc5tjzlHEWWmwgonmWdu8zDF+g3KNArEZ1bc+gMca bSeQ== X-Forwarded-Encrypted: i=1; AJvYcCV+WBASbz812BwwVhgOMcEvYQqxYJdousmCq7wKNByuSe78BIswlUJ8J8DCO7dSvw4REIaLjxTl6vnbe0Fyxe0lTLbe4RyNtLo0SxgoL6WkxwbadG272B6FCGDetnG7O/4wdWNtktidOj+6aG/p X-Gm-Message-State: AOJu0YxS6PkB5UP0UmhCJhLQCIYp/+bWhwlqhrGsriZR21lJHMhcj22a XJXtauWb9P182oIgmUG38ugV9qx0S5EyX2XyrFpOCGNuUzs/d7Ux 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: linux-renesas-soc@vger.kernel.org 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: 13724031 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 C588F13B295; Thu, 4 Jul 2024 17:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113824; cv=none; b=HvP90cTipj6PjAIqYfzMNng4NlnZY7LrY1m6acSTiEevXcU1uKRfblDJZhDaeppng2LU4ZKBjxVaUaiK847DblXYuNT4j0U+/ptlRTCu9uc80BH+NbD4YgPvVdCmZl4qon/9jeDPebCxh0/+C0Qw2pvpkOKPP/gTmeXQR6COh0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113824; c=relaxed/simple; bh=1QPZacUuOeaij0so0MenKs4sY5xXKtXayfwYDVrHiWI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=n4jqwu0RAiFU2qL+1GM4T3pOn+SheT13Cw+bLHrZlt1e6Qib9XR3ioAgTc67y5ZCR9KiuOt+gu7FrgN821X+dZjQlNnAdL9pReASgm1nqkV9G1qQgKtlUTq5dFVlOUQmYnPVyQjaGxybrhCrVfUa3kgUo9RJruM3LjNAuowY7DI= 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=htSSDqG4; arc=none smtp.client-ip=209.85.128.52 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="htSSDqG4" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-424ad991c1cso7357315e9.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oZH0N2IdligxpGGw784EbC3Sbw2mtJNXF8+12BAAhog=; b=htSSDqG4bka0EV1KikBO7uRLPKB8cKvpqAG9kwlZy3gJXhYZWjip1vHRmyeaIIXVFE jt+5sxio9QbaXNb5J0sdF0v4GCbec8JremeEx6DVaMiOvWb8kS02UXN3/OYeWzjRZAgG iySme9Bbso35QkjZ6mxXsFm1eElTMACRUVbCVNXSl7XpmHbcUETzBZYoL9i9m9kQC+0C Ix6jdEwFFgNMf8r+m/c9eSaxMqT/GfkPl6JjqgM93luKH3o+pQMPueKU0gV7NYSKFhhZ 6nuHqdoC1YN6KFnbu5QocTvvNSrJTyUAlnLy+Eg0UMC2JkR9NTG+qiIB9ENJFtqbe3Q8 kDkA== 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=sunNEHSNnrnTRToijpq8n2TzEGCspB0kBy0XhoOmOwWJHbmYxJmJulz+NOpV+cmj7K eSyGyCOC+AY7GjQLSyrq9v3qRf/PU/A05oaMpg7IFw3gOubI4r20O4NCsYcgrJt/DIS6 jxHYMqe3jBAS5Pbv7S5q10CEsEmsY1YKEAvVhULXkz2EybN/u1KstyFA75BYfKe1zNxv /1SfmXcmkT3/xOAMklOQbkVOmeuGgs65yoy23OEKUGsxMJW0RRUq4w6V7prSU7AM2/Y0 gHtMCSTfLX2Q8iirDQ1yrzR+7bTuX67YWLr7hpJ7eV5TGdgiScp4qhcBqIj2RD4bjUEo L1vA== X-Forwarded-Encrypted: i=1; AJvYcCVfRCPMQI5JjXmmkU00kjaYteswcR6j9wDQx8Cj48ijhPcD/ON44BbXjQ7aEPrOTqEhKcXfYgr+U3vBczL2V7mha6V+kUpCB7jk6bQV4MrLQQNcUSDHpKf9ZPWyycvnY/3tfU+9h4mdZGc3NgPR X-Gm-Message-State: AOJu0Yyaccc1CDeemhKzUepCovmg9SwsyHoFJB8Ia86hfRW3+6bhU9hJ 9x9M43InP9BIHr07VL46BHKtbdqVf6YneBPHVa3re8rCYCu4dQGl 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: linux-renesas-soc@vger.kernel.org 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: 13724032 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 96C7B13C67F; Thu, 4 Jul 2024 17:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113826; cv=none; b=hxD+bZ42BlIr3kyggGTyANuZ613iZwnlD2RDOMbdc67Qb0RQEEfg7mkRys0SP7cCmuHL6kSGZsjVlgAOEV3WWG3QP5AAH+Dz5EvtwbrGxojvkayKcsWZy7VO8/8w9WhFlHdylFTEOwq7YAAtvAiicB+DRak1krWD4gFWWOtWg4s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113826; c=relaxed/simple; bh=V1YaAN6Ae4SYUS+F2fqEOGoyBhvW6e5jyjeki/M8uo0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Lvo+q/RkvGDRbrFOcKWJ3hv4xINhNbso1u2pVlnYQQD1WFRMrfC1UnR2FGcK4J3g4L73XOxTyiML8PqH0fJ9PDpoi7QZW62DyRlbyF4gsvPYi50N2nVPcGLLojaMJGeanzIfMslbEXSWgvzA4m3ygtPGO04iwrpb1TFUMn9RDZ4= 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=KlsmtZZW; arc=none smtp.client-ip=209.85.167.49 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="KlsmtZZW" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-52e98087e32so929255e87.2; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jEcKMLoBT3vk4y3IWrtrUEpgZYcFGVwoc0kCUdiwlg8=; b=KlsmtZZWg44giXmno5P+CZAvWKp9HHcDdAoEOq056Dz2l9u/zBO5KbD5Sh1r3ip5zs aWu2lrBTLLDc+ECs8eVGffKYO/J/c8nBD/ctJJqvN7YEu3Xkeas7N+8gmIGI8zxqEKf+ /5n/S6uD0yflOkaf8sxG6hw/qh8kq38cxzGE4ehYyGaKkTbpNnBnLzTHQAnWZDNwn0zO D88Fl4as2Nbix/HZjiw4VVCzPoVyM6drhxhFVaKe2+e44jnguS85xgcqZRhZM7OVx54Y vGlURrcftUMD2o2Sna7MIDKrUPu/sKR+pCvgTEbQnOhCeRhn6i/f5WH7F3rpg+owAIDk sV7g== 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=r7QU/BBfiiiKtjsfEJQsbwHhPC7KXMEzA+9yG5EV5mq2++2LvepBq9fPu032TAvv1k hlIWgV6846recZ5T2mco3sMgiJPBfPoTjH+JeA9S9OtAPpjHdsPQc7T6Lk418FRs4Caf Fg6aPr8/WproYNAYnQscPxUEi6vjdLky6oY38s4pk1OoPdmfAU47uu8zhCm24IsPrxNU DifQkfm0ac2yR4//3d1zQoCronyjHYGBpy+8fL+e8MO3uN1MyymLkiNpJM2zihKYKUtH oQnGlWkbPtsmVpQljgxrtOrwCsRiv4vzC509nAQxpRJwQQ/9HqUW9Zeaji2ofoApY4nG C4oQ== X-Forwarded-Encrypted: i=1; AJvYcCU7A6/u0JVTOSvD8PLL42VQmrctZ7kpD8kkvXSAcoBf/YtCy7uUOkrk6vtF11G9b25zVgv/4t5QrItKmqcalU6nIV0L0AX7XpmSq5+p23GEypCyp0eNlydp+q3M4RVYgPa6Bu/Ybk7zYuShkL3Q X-Gm-Message-State: AOJu0Yzza6soZon6MvNV8phiq0IH4AFSUDIo5nBpamc6ZLSZvPSrQk8Q Oqdz5s/xJUQMo/wGoa5eZfs9KpuMjsSgsQICT3B3HZqujhjdwtP6 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: linux-renesas-soc@vger.kernel.org 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: 13724033 X-Patchwork-Delegate: geert@linux-m68k.org 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 F183813C9A1; Thu, 4 Jul 2024 17:23:45 +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=1720113827; cv=none; b=ZA4lWK/p/ShGNFyYcaf9Up2N1dhUd/1xRNuTGUTyiFh+Myv5ulBzbUIRHxdo9axHjRgiutXZO1xlbWiWYxz0gWSoIBXwgy49wqrGHDTs9BswVCzJMgSOibjrv+JE12fshcC5uqGTQuHTnTp+os0CfqkNOM2neNnwre/wdUSnZDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113827; c=relaxed/simple; bh=iaBF13NOr1XPkiRrsRFdEpI6lgqiWVNSRbGWT5OqpFk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TCzhAeCRdFaRXNb7FETt7lP4XdMqudbOOUnCh10k3QQsWMaJbvOcVhc6DFS8I2ewjPB7to24BojqRtJD/IHh+lvqJoRl/aQgSx/EhCjmzfgr2AZNZeRrQySqcYJaLR7jnvNTbRceBJETfmoemcnpwh0ReotjH5AwksvJbb//IPQ= 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=hix27D/f; 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="hix27D/f" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-42565cdf99cso7315995e9.3; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=IpaImdJvWvSJvjBxL7f9lYNmbsKrZex9zQVuWAEj5kU=; b=hix27D/fhVartibCI4B++e7nm14rOsIGRjZ1FmkWNLUFReVmKGk0g2YG35LnPKDGTy jBBDRzrC12jZ+InXcbAidKGVwfqblVd4VxDOvxy4k0So0agVq0gUzR9nrZS4hs6TNF0w tsc+wSMizuSK+3E9Z3CfWrGy2wuTfI3uHpc5aohdIffVrpUgiKqLAek2Jf4rKorU6jNA ins+lWGqDdIm9iyFslQLtYdRslMje+vtAVflfBAv/pN9pOeuUVxRHKsv25FvT0Q1z7VJ mEV2f3Abzbd0uZUm8KcHaXiuUrT6jsbhuV+5UIiv4EBy5iAmHF0YML1EAKbzs4De+IIf W4Eg== 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=BCsIi2NKSMeKpsmfFY5UfmUE95sM+Mq1QhOw6MY0fLuZOHrIm+V2i2MbyusPsVEN3I v96xTlOSidsbhssb+FPFLLin+r74gRNitmV7qGWWsvGa7561v7Y6sOXNOoznkevbM0+j ynVDOsn3ulIPVXG8L7zqbbD341JW7hl+HxkIWfqOhoE3rMgmsPTxZna79DpfctI1g4D4 6WAvb36M4UGhzCEtrpTUOMbXyS6w4TKzlz5QCOfkQolDTmxhMEFiIvgxmoqTs9G9f3YM inClI5CpvpSJJlb8HtUGDl6KIQRy9zRc/KKQKPW9/HnH36JObZTMpX/nYVFKzS2vXmyi oLaA== X-Forwarded-Encrypted: i=1; AJvYcCVK9U01mcj2LsTOFFbKTHCeNMzZzauWipVLhrEK3v7cYth7yOH4mN5/tyffVN+vJN69fZzc/v/T7FPo0rnPQyup+sdHXepJ2gIxfCSfAhp1Wjo337rcuO1GcMe0xmQs7qJL3oMwJvKD6i1U7o7f X-Gm-Message-State: AOJu0Yx3OJRYFTBTMm1fvta+77DAkqrrSqs7OiZkIIqIUewdk2WuTCv7 jvz50JziCnF4JIqStlvWaj/aqJMDCXCv33uRkZRpFim+32uVhbz45MsQA0w8 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: linux-renesas-soc@vger.kernel.org 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: 13724034 X-Patchwork-Delegate: geert@linux-m68k.org 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 A211E13CFAD; Thu, 4 Jul 2024 17:23:47 +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=1720113829; cv=none; b=ZqgRjPatYM4sENJ2CVtUhlypu46BxJBlgRaamzYlUIpdEB+tjJVdDS2+t7Ay46acHFVwyPxN8EKifoEMM4TL76cX7asls5CSm2+16swztDwuJeze2R/C32c1dfgtcgyiABKOAKY73DStLpoPzlFPnbktbcA96ZWnlRfqGAXOeCQ= 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=IX8K+hiX; 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="IX8K+hiX" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-425809eef0eso5602335e9.3; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=b4mMiO+CTevlgVBjjoTGMuQ+zAFqZChWEM5kxdNs97Y=; b=IX8K+hiXtzRB8U4PEy75m0Esp690CSChR2PeCv6vxxaV+cFwQAHlqiEoJHKthdsQs5 qKHr5mL5NLJAc1QffblHH3rr3jqI3Eiqg4Go3bR5wapB7iPvzNWcQrAO/bqxL7syaHdK 6SpjUbBZUqAMCKVcGQlbaARdOIb9uYtf8rIG2k64OI0Y8dCpqsjwkEnFhuHR+xfKnZ1+ 2mHmC84BczFPIW50NTAvna66yLQ5Y8HskRhNibI3aEoM8DfrwbVO79rkjS7fkMZy5UvW uyUGUDqh/6jaG5G65pV/vK+Uv8RXjal3ktlYBONqVm3WoEpqYVw9uGlR0wKoc+g/qP61 4fgg== 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=XlK8VYUBWhrAaRcQZE1p0YZ+IISDe5HuR6zhIZ6ir8nAiS7V27AW2CiCGpf6ASRd1z Lje5C/hWfZf9M2pXtO7lDkMFZZ5nkYYIg21Vcx+raj0Er2PzCAMSiS0Md4yfPC1i+HI+ 9ztJVieRcyxB+T1wNw62qxLyVlJ/kCrYuNI5ALpbxP0oCmyf1YFk/RgJCGb5WMrmHJP3 H/q4CIYaR8E8vCln8FQf30hZfM6Plt7+Kp5Zf18ptHwo7jQT36I9CgASmuBKcBlDspuC AShWvA95z7jexbesl8blya7+eQ3aEAgRbzPlx4lF3Owu4DdM/NWydsfosGF6HpDuvvsA 3SKQ== X-Forwarded-Encrypted: i=1; AJvYcCWD4u8KIvbHwRSkOgdCkmowvJFr9F293vo7QmT4ilrKbdeZT1BVWWMIbypOa36juA5QIYkBtEn2qmqqBes9cRYgvJFPJTl48HPG4yq40aVxkwFEiCHFtaDb9zaIg1z2IdgFNtoQL4z0LYadcPXX X-Gm-Message-State: AOJu0YwhoJxp6xAdH10ap0JRQcYVn6F9KVytBrAa2PXwr2hvx2+4GmbD G2sTveIo73s47alhytWS9aIQFl1Y2wqPsMD+psxbkxMkvdDdw1iX 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: linux-renesas-soc@vger.kernel.org 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: 13724035 X-Patchwork-Delegate: geert@linux-m68k.org 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 53F1F13E8A5; Thu, 4 Jul 2024 17:23:49 +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=1720113831; cv=none; b=GV+rS8YHOLavtDyjPmkJ0WsGQEktqxyJ+AG2+8BnBFwlbRAPiCqtdC+w6gVq7BPTZBfHT8JHKNJLewwkx2Oioe1FwGz14nkS53HD+pjnLrfAbHa2VjaYPukaHBm0ISnMuPtRhrOI5rEHpJXaB1GnJSCg8SdRkgrXgumwpQxTdl8= 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=CNaQtLXt; 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="CNaQtLXt" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4257a390a4eso5798115e9.0; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=F7zE6lHigua1P8ymODDtiJ+ZtxaVQFbo+ktZc42qUis=; b=CNaQtLXtLuiB83r8FNN45OScT4UVX2hn57VtDjLRUBb/4IGBPkGZ3nIwXiJ8NqkBX1 7sRLxaLaZwiU7NDLvEJLH6t3FDDBi5myl2b+p2INof4qllnjvpQ5Obr79YJmk6Jf4Jpi JjucBUzawwxAc+scTgfUMrwCuNHSV4UGKMD2QAOumhn8/xObNcgoJsHiXlfVbfaurNtR BSnvBxaawyWvTazmTWyQhIpPiyW6teeuLbmswlyKICt/sjQRRotagvSdy63OxNA/LeuY 5MwJExLVFxn5a2XAbz/zlML9cZIviBiqZI0JAq9IVItZ8IfojWv4k1i+4DfDYrwAuQWZ bOWg== 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=MYewIvq0p1cqfZJmoq1rWe2VgquOQUodiuQypuw+RaLdzBRpFNTc8UQG1OSXq6UTKH vyRMgfAvRC7gFe/CKSHNO1l21X5ChMj6lTGirQa3micI++XFrRIWy7u4kT2+mMpup4ts v6KGLKKE63tXLl6cqOAOU8CJ/hNXvL1lCVmO2I6eGLDxwzW4JBKQQOTcI7pUW98HdGg6 WF6tzOXYgwbXkuv+YxKVktuOMPg+/UK74ejtppV4MLdaG2r6hbhUpwDfI1yLm6C2gPu2 HeGdPGBomERxKolVYIoK8QLzvMBPHu0EywkHs9eJY76+MDys/RG+rqSkVp8kjIQL2Ejd 482Q== X-Forwarded-Encrypted: i=1; AJvYcCUngxAn0c19cyVEMP7cAifE9yx7jZ8bDD6iSHM6MrBx4FgSim14RUws1Onysql+HIRp2VOp/2ESqI02O23kBl62XQSzo+o5iPrOzirEphjg39TCosO+njYYsEcd6x6TkMxATdG2Q9xNjM4bAh37 X-Gm-Message-State: AOJu0YzNPvRmvZLM50Vjz3YgkDStRqFcXfgV1f0wRsVOLOkgwbgPvNmz VEpAKXdFUmTH8tCHZI68ZEVFbZ7H8NzJEyK9PNYmJzntpDBmdMrm 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: linux-renesas-soc@vger.kernel.org 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: 13724036 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FF33142E6F; Thu, 4 Jul 2024 17:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113832; cv=none; b=M/b57gGjAs0NhO4WgwpVe2GHsl/TJwYnE//FeojrvNOQAr2BWb4QBfSyfbKQTeq9R9l8FkSlGVt1huHVgaR4lZ1qmWvkYmqW93hLqiowTxvbfRIeTDLo7pbxpU/mjtiJ/Zz51C9Y21ZdoS2epbPZHHhY58mACO3EoYuOayGQG7k= 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=dNeGCXEd; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dNeGCXEd" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4264a3847b6so5738745e9.0; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=W+0aliNulAXRyPEDMGDv2VjbbbF1WfBGFJqmsV4Qtr4=; b=dNeGCXEd7tIZ/TZmATsn42tmmujIEP3mJE6248szNn09yYBnKJ3DnAPwrikNGOOM1G /9ZIi5+udC/aDjjRADirWfZLsz0gBsYbeQojI/rPUFr2v4AQb3bfQGJrDDi7QgPBaxlm szAhZ/vEwvM8NNXm9iZlv/XmhH9Hh34WWxaX4Et3996RMhkKMbrLixPdwAU9IrEq6HG/ 0nevDAFny04xM4e+8kqlVlaPLhgdUrDv+8kXm/QaJmgRV/xOBL/LvWa7+8HwoHp+YaiJ WjqZQBPAW2T5+GQNNr0612EJBZmJG0158D471+TtoKfjioWE+b7PbhO3dDBwcr3FAdI8 amrw== 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=r6g87LLljIQD3+mR2J42KC4gI+f02NY+JxkFdY/goZMmm6G4RNZOihMv63PY5lI1NY UNysdjzRpTNZVGu9QsWQGxRxxnMowiqdtr7O5+MtwPQsZs4CpuTs81sxqJevDiBKxzYE 0FNIaWlEutdjlvmvIN2qbYOZFA7fW0x8FOcWawdkpu/+4cKuPanWXNiMFhSn8lDjkbiw veIxWi6WZiWaMajjzETzpwHWL5p9i8+ooaDGQG3MG9hD9pa7188p5uJZeUbxUT9Nsfgd Xnym7qDfcGUxZMzHZKsklcS71tqhd6+cXPnN/07WiTXFTXlIuINYblzUOYHsIoLmgxiP wGjA== X-Forwarded-Encrypted: i=1; AJvYcCVqOZArWw6KXcNC3gA33stCvcr2D6o8l5u0IEDf+DGbO/Q1lMXz36kN3YOjnNUKn0g5edojPRhhlLlCKrPO9yaCEzd68IRhXm7d4FQJfF0qYwviycSTdfiUpJH+CBJBNz7fL7dMTQiFn6jG6cDT X-Gm-Message-State: AOJu0Yw7P/cozImjr64+xOMwyqgWGDdq+JLtW1Qwzj9nDDvFTR48D2MW utQIt9+TVlflJ069zGeB7MjkUnKn8vODrA9MIXNeJV7g0kQxqvrZ 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: linux-renesas-soc@vger.kernel.org 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: 13724037 X-Patchwork-Delegate: geert@linux-m68k.org 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 EB46A143862; Thu, 4 Jul 2024 17:23:52 +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=1720113834; cv=none; b=o59pte1qVVSVm1qoapWWSE/SQ7JaXH0+B/f3KVkxJ+NrnuOnoNB/Zh28xK+6B2yyGK8l0EfFRYBVUZYyi1to4+H0d7UjElFk+PJPU0TAd34Y5rAG9DLWu68xIQtJiBTo7M5frtvU+QJuH6fT5qy39WqV1si9OUZ85eMiZaPzAS8= 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=nTOujzFr; 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="nTOujzFr" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2ed5ac077f5so12325481fa.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BDX99PHFeeA7rra4ax1diB6wMDKVJk8jhzB3Yt4YbLA=; b=nTOujzFrSezqoXgrtbs0MCl2SiIhJg2DrmE7rrajQY5gRMByfEV/SkKqZKaDiUyY/0 h1gzoO0VTGhQmy62KurqfJKQfDbfBcNwAEGqm6m/KBZ8wy6M+bUw49G+DDz2qj62bxcm Nx6Wbw7Y4CCVNbqWvx6+hBz8YyQn/eKgfycundF8PN57WBL4XAINwlVVyu2NfcBU2gRa WwoR6j/lZt5fVNql1Cyl2zQDU1y893m6GAbPoN2psAqyOFT8FLv+CtO1RRwc6g/fTIgL Nwk86ZPIxXPuofOlOhyEj2hmwEG/HuzX1WcASDr5GnkDqdGwpD4FQE/sOGMTaHDOgoMt wULA== 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=S4rx7grHpZm4jdrYOcVOveEmG/zQ5usNcXz0s5/FiCgccEhbNMzh74qv8tBUaB2jcL rNTgXbUvtucxe1LaP6WsOJZrkXVsDiud05u/hl2CiTi8lLr0uUXx2KIqorLAABWCIn7K IMBL/nqlhYby1v22JBMm7CPsd97aK1ntNNNzLbYUDOB6ovYl38cHZ4RQKDqRQuidgQzo 9RKnh9hxqk3fhjmUetpwatKqEscm8siWej/YsX+p8CfMi/w8hpFh207IeVNgsUbHi5ep nBOwKsJUg4dV+DnPIxGANya/UV2JgRdlAXixc0p5B2Wnkvo6cXp16QX6xn3BAECA21wp QwUQ== X-Forwarded-Encrypted: i=1; AJvYcCVxBTrFmJvIPeKrToPT7FYxGIAGw2x62dmjYI4taCqyOEu7UyzjpDuvXwtwDvOzU1Uv09rZrz8UOd/weiiAxNvOKOH8vVUFOCH2NgyVADLdU7InXfwBV16d8NexI6G+VzlfDLP1p3Dc38xmhZH8 X-Gm-Message-State: AOJu0Yzg3S6hzqxIlfuomHqugF0muzAhYmZK/6dmtmQSI5IiYkQlyGlh WvnXbvEX8hFn+5aBLcObBYpS+POkdk6G4Cc9ENZMClF6bBGDkwTd 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: linux-renesas-soc@vger.kernel.org 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: 13724038 X-Patchwork-Delegate: geert@linux-m68k.org 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 6626146447; Thu, 4 Jul 2024 17:23:54 +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=1720113835; cv=none; b=Ech3JiwTB8tONmvxEbqD0dbMUi4EzY2IAKqaFlqWcYmW/IX85yTW+3suxKh13Y67hWd0CSXoG+cMasuOr1deU3fJibU7UPttb2cUbpOrLbkGD53b/J9Gu3hNHoBomxR2WSYHjGOdg2sUgaPHDzsve7u47JcbmikxZDcBRiSeLng= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113835; c=relaxed/simple; bh=LwSmNpQz2F+cwYbYyqp+ffrrtmaCiTXzgTUcnJr7s7Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bq0aGgFGUTwar6js1yHkfTQ6Y6plBL0mh5TPSCN1xeoEutO6vpqKIiJ5eHyGE6vlO62EwC1KmjMee9iUuxHCNEtQC4yGWJP0nLsvyJP4f9Hmy39+w0Gup7SleqjR6cjlhlYJJz59TMXxl3+ZDTE752QEulldrojDDNzzDwuD4b4= 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=ASZMxVgp; 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="ASZMxVgp" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42122ac2f38so5670505e9.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wr02nhq0ruDtDnhEwyMKYxGviJTN4mPbs3lAEzqdbjQ=; b=ASZMxVgpzs32SavbYEaTLBz+JDRNzh91jPql1KPsMQD4CHjKk9tiz9+mKEFagum2Pb 3H/QO09W0yGatSN+wMU0/Kgfn+o5EPgcbAlamSchhTMb5PNG0EPzY4Law8Denvlu27Wd rQnBoSCTVE1xY9uvXZFzXgLR/7OWloAxsm6PcsmBRBIXne7tWDBLQ5S/MXxczmUWzJJB Lv3gyKlO+HcZTezZg53g9iruDxY2bF8jdiaNBbgJSXIOOBvewjirI2bUntNRRQU9yfMA umuw6sndj+TCc8WiLis/YLoYGkTAvEW8ONZXR9ot6+Fd8roN4pNkaSgRk25VkMGz5RJ4 g5lQ== 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=FQ+TEyEjAJjfZvTnNT+W3rqGEWdVPi4bmOnXput7dqbggh2zc14o9dXSn3WFsDVB0p UlMU09p+sEed74x2gbqB7YYXpNU26wVyV2wdv8Hg6Fi5p1c5YXdOA3JAzSVybbwol3HA xMcKlfFvEgw+0ss9BjZQt6RQfFqrikR84tCuUezeEjDflkHvPW7lxZHS8c/l9g3+hYgb /IGVuwf4sOkouSrb4FE7/PUDfIyuABiguScinqA6RmLxhwI3nz6VYJyCRW0aavRvwXXX WojqadpZ6XPHgL5n0iU/prHkQ4VKCDbkNQo346EPrSyzIolslbjVzIplPyDKQFf/C6ub 6Iig== X-Forwarded-Encrypted: i=1; AJvYcCXcLGjEIweZzeK6ab/47g6uvvyc6IFR0mbqLqppCDw64GaLt7rePEmoIWCybCS4Mpg+hJYY7TTIvhe8jN5EQXXPtcbRDSadGMPhuVh4q5ZGcOI8ZexgRsHCYM1+mwGMRs/tQjET47XAp38OhR5r X-Gm-Message-State: AOJu0YwVbvLTzcoGmW0L3WIjZjAUHNZEYnFNe5tvqRNOKDamtsLBT0XE WRyoPeaDrc9awO7AYEXjyn7fG7DkQWqIKy8u4/D87iZfdVXFl0Uq 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: linux-renesas-soc@vger.kernel.org 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: 13724039 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 93D7B1442E8; Thu, 4 Jul 2024 17:23:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113838; cv=none; b=l/GXqljMaNUKDZNej1+y9EOfBACncZK3+q/vJwX1JmHiRtPBLSgpgc2ouK5HaVy1fNPPiriVd8M6/kxZl/iEY6qm3tl4fmKywMTn4YOQXHM3sYR49FqCbmWmzzhW/fGpJrxqtn9RXnAm7+ZnhZX0KlsTvqRY0dXl/brRPVautsc= 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=b3MHY/hT; arc=none smtp.client-ip=209.85.208.177 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="b3MHY/hT" Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2ee90f56e02so5202021fa.2; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bgu8mPTxD6LTopVNnBQAINmTzhDmwR9bV7xd7+3+F9Y=; b=b3MHY/hTMviAVwhynIsQvjv1nIA8uQtp7FgL5gt0fQyAnmmQkM9Qx5PKo756C2ikcY H7exGCfOHY618m6quUDqVR4EodTBBQyrzAI/s4eP6j2r7p37Bd/rQSJv5lRr8gFkI0Ui TRrMDgSg2a874/yuXyKjqtYbebe8Rd/lPlxJJbYFJHIpfj9dJFDz2K7oEDD8dyYECuA/ rYTVJD6AeI9SqYVgWZGUIAKoC4CWm4Xum+6FlQdMsFlW4tAdDYB2SFtfZkJt4cmWY6c3 iEi8eXzReQbwsSfpjKLJZsrIIWoXjXalYR0mlXk9GgyumJlcVPklqjAiyWaxfbatHdY4 5pBw== 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=P1wdr2CVPz452i9ApP1lQOfqoQSn1yrddDc5Mnn7NGOcBXmNsGThJI29h73Qc+gOdq 4oh+18Zp4vQ5QF2DBnthNoDf6VYPLl5teXBMK3Tk8inbVxEUew7rRdlDlHxcCD7FpeeB aP66XmTDrkMFeHufZmr/rxckxk8ML0PEE79n08EwHjH+R9CI16fRqPixhppnh0LzRsCt UvqEA2CgA/DIPnRidJdhSP3XiMlwBZ+Eh1M7EQgov7MI+RXsx9vKLnyfgQmsDDPc3SuJ 029MGi6K4+b39w7seyC8/HORQEhJMaLCW5B10T9P1YqSmwmQT3+nELcgghw4nfvjIRw2 x6fQ== X-Forwarded-Encrypted: i=1; AJvYcCWMDG2pCW/VT6n0RwAC3Z1GWutCPzeBjJ9sJlQ6Cj1msT85RIhupIzZZJQmEigbOZoeuFuTCJaHUHw+OZsN14WgAnFdAWNcCNw325MrR2Y5vWeswTXFy8i2XcSehlHeJM8TFT+gM4rojgzitdbU X-Gm-Message-State: AOJu0YxKakwuJX6tRLkAiqYEqT4mBiRzTwyiMb5ELznFSI/mTJrE5bRn GXLSA6iv9cvpTHr20GwiG45Evat6zIrcUous353ihy8EikLq1ka7 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: linux-renesas-soc@vger.kernel.org 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: 13724040 X-Patchwork-Delegate: geert@linux-m68k.org 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 0EA94144316; Thu, 4 Jul 2024 17:23:57 +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=1720113840; cv=none; b=vEYYhteMeSMx8dlZfM9RWz3ZgWjD8pydbH4EkzPR2ZEMyTXyVxL3bx3ihBGo865pGJgcRglExAlFvv8l0lUcYOT67plaU39Wy2o3xEgEL+CjGXLVD6i2+j74h8khpTHsCA89ONX4oc40a2DobtFUNFbM3u4RPExhZwo4ZzRNCm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113840; c=relaxed/simple; bh=/w2Mfm3b//ArFJq79ZTzz7Oj9gnwB0vEiff6gNtMX10=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OWZIdq7c+8BnQssmPoaISZb0W1Pt8RRa9PuhJidvr/Yn8+a2DTWl8T3hD36LUbsNUx3dy2vW5HLmHoFn4lw8/vzAOmuGDlq9wYXFulTqhdWz6DdoUlZL+ji+7C3Jg2h7hE1aD7vQtCfVq+TEfcXkJ6LXhgLHWzMgGVBezRyJl7s= 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=Ssh+Ft80; 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="Ssh+Ft80" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-424ad991cbbso6131265e9.0; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NXvtbk3eJTlknQfO1g6XBXuGBlY9arYdCdhrUDB15Qk=; b=Ssh+Ft80xdP8asmNrJHQyNPyNyz0VsABH6kQB/Fz6o65s6Ku0VUwlYnn5UlRllKhgz ioEGafc5Zc5i3XY+7mDG1+9ReT8d092bCQ9zkYXukeAQuoJV+ngaPDD+K23PKdiScg9m Zt82FEI6qODGv4zLlZKVKerpERFW0WYJVqspJpZaVyvoOuuBcSEx88FDfpjcmQn69CD3 bYEbyOBjhNNMksADLIETWENYLS3efQLvh6shkcLReCha6cvIDTnCLVMMZcSvTuLZcxx/ J3EJFnIMWaTPs6veahV+61A+VrBqd1T6EgArEnixd2r6zaW+b9B/1Y0i1A/1gDZMeLWN V6VA== 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=LQzDme47lVVPaaNQfWBBSGYxFXu/wFCWG0LVF6OYUVi4qxgQfexWk8hB9rOTphEClJ Zf7hPAc5HQULzg6xMmb9pFdC0XgGJN4zNRkIIfMUUaG95rQxpS9M+rMCGI/37JdU+jK8 myj0rlKNQ6pdjblsbijR81W5HCK5v1nlDk2HLceH92bua7IIIKRYarIVhE/cXPitZ+7I ppsiEuqsZssKWb1knJmv1YIQQzDEnABdOZhotl1g2lttxgk/AHEVXEAGy+Cz9lg8FeWs 74OmCnz34wS0mjUrbaFfJNJSnPa5SUbYcl0Wu80Q7drXuPA9UoOzoY6JVf5Qh/xWLneE Tzig== X-Forwarded-Encrypted: i=1; AJvYcCW/RcoLFcZwyHFvsW1bf/KRIKZovRQeX3G0qVxjt4yoMQDaBk91vq1rsf41dZrXCRINkXohUnc0NLUMI6uD0P806q5Aq9Dbjb323fvvsUCNosi0slMUeb4YRkWYW0mrpghKfFuujrCi33olmIZ3 X-Gm-Message-State: AOJu0Yy9SOi3ZOasrrWeDVgqHofElYwYQCV05KZUBMdkFDJQDZiLIZCI zJe2Wx0Q7D4RSYTWe6c04AcCzc9Einv0JoY20bVy6BpB0C53ipol 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: linux-renesas-soc@vger.kernel.org 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: 13724042 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 F256E482EF; Thu, 4 Jul 2024 17:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113842; cv=none; b=uZ8rQHyw+57b1OECl6HmJi0bzMg4LeDedxmfgLo/V5bnT2hNIBYMGhKzwSFH3nuPhC9Wv1RVW1JfjRKY7kA9DdJm0v4cMHN3guzl12w9GSAkK6ltfZyqdVriHbQDEWeOf62iPe9tAdXzHUmAm0mPht5FZvvWc4iRJmXD0Kj5PwM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113842; 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=NwHSeJE4PPUiRc+m6ufyKDshnAF7YFOHuQsA2ez+ZvFLyafynYOKp9hTg0+yiMCgX911QTcL2C6yVAM/lLDKfKrB4jGB6rl6fj8ZZnOnvlVs+bpjK1Fpi/kRrpdLIbSo4lsSfcMy/58onJTC9waAkHzos8cd+Ky0U0CEaSc9ojY= 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=VhuzVkDh; arc=none smtp.client-ip=209.85.208.178 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="VhuzVkDh" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2ee794ec046so9410991fa.2; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dFEzSQ1m8GOHWdp6McPosgOTS/y1yxZo30lauWYmu3Y=; b=VhuzVkDhMOoqwRUjlnqcZ2LNyJyVwi9Vx6BYl/QLBDZHpQF5fraDmJ60r9L/7nJfGJ pwwT4jC5IhCX+c4N1Rv+MQzclKZIzad5W0GYOPJEX72bXRFV4SeUL7HXm3w0m8NPEdcP xFfNMbzbRdLE8bkLjL6vlvg3clkT4hq70PLY4gCIxUIgnCoOvDNOVJNBoV6AoRI0d/ex mq0eW/AXJ07zYz2NpnE52NmEZ7yQIp5lVYPEfAss3s/giNluKvAMdtGNlXka9+hc287a tO/p8uZaCQmPupU2puSDWLl8Uu3e8n9EHOEpjrnzSJUeCDGsuIovhQVH15AJZxQRYwS5 7/xQ== 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=dFqCnnRW66ybI8EFpwz3KJPczCFoAhoP2wTAO1OYuRD+otlZdII/4gyXIvp0BTG7yK 1XtX6jWbn1zlWP4sTtnzfUwtTP62TTb9498VnDy3AjN7Y9cG0gEibqdA7hQCRlpJsuQo 4bhs3hOUz4OJKI5cH7o5cvH99I2pNl+UP40vb8JT93H6XNo8YsDRtsPqpVgxBmhj16S9 UUePm9aE3en2Y/neDG9qvBz/bPNTv+8kAqNrStaZjl34gaHgrl7AZNXAVXvezZoSUcwI rnoRi+m16eARV0+hPsQcCQOOF5doCKbFRt8+uWY3lxF4ji5fbzLBy+Os+TjgFDJdJjeh TPow== X-Forwarded-Encrypted: i=1; AJvYcCWzGsMnd0F31m/ToY/yqGQmBD0OF6YmaSCYSHlFlSG3xRB1WcBzL9iQWodmma2YtLDA6zhYqyiUNtwlc08UZmwTNMaCreoWdSmA1Ved8mFw3Hz1cZy/jtDrucoXrWcKVH+uIKPpjEopsO58nF1b X-Gm-Message-State: AOJu0YyALKcUKnX8ArW945T6svtoOZCkLFNm0JHuvvmuFN1sGmW7NIfe CFpc04w8CUkPBnhEfMlalY8bI608LH/nd8tqsslm3DF/Zze8FmAu 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: linux-renesas-soc@vger.kernel.org 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: 13724041 X-Patchwork-Delegate: geert@linux-m68k.org 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 3D01F144D0C; Thu, 4 Jul 2024 17:24:01 +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=1720113842; cv=none; b=GmAcpbaMS4gjIGnof2Y/8QicOGBiPbcGi+57RrCP07rjmeWnZIp+Ip4E2nLtbYGS6mToMmBEJ0oLAXKHbL9HRflc76aFd3MwhR+f5c+/p/aMSQ3GRWxsIxZ0UK0NrnbOHLZkuMovpzEYryjC4rVO1Akbd4c3LK4pNTYB3O19ZbI= 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=hCYyEp/g; 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="hCYyEp/g" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-424adaa6ceeso5231395e9.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Qd0Z+TzoGuFE1UpjnOMV6kYTwv4UPS1xus6pH0CzaYg=; b=hCYyEp/g/Z+HkR84dVwTq84uAhR8lTnLvF+Uf21kOstLXpAk5Rg469meIyjlha5NqW dlBN3PzJQCdD5JYcVoc53f8J4ygYWHFB4/5PEqINkxaCXdKg8jU3zwtIHhEBp6/gCmk6 3AHxm3aaAFfQBpJfHzNQATIK3WDnrKzckCbILaEg4YeNOMAm61nwH/GNUmKlSER8vOaj oTYJ2Arxk3tryPIdxROw2beV9Yirx1a8OuDYITwYD1e8wMyaiilxCsPADK8HNMYuWe2U r7SkiJo792gDAONmxftn8ENUbYyIxFr8Cnpf31MpzVV9x296AFN6e7KDx7kBfPI4Aztr ypkg== 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=ASVEh+Ys2TmccTnBCF6lgUJZZjuxreWYATlR0ZABVMBtHpY+UpzeymXOPF7eY2+VJJ i73m8awQZUZKzrmepxR4vmuHEqhHW74ExNk76ySZjuuJ+dn1klq+O+tbkzumsqO0Anfm A9bJzF/9mcxzTC4X4lvLRSG0fElLiPZ6lehcV/PJ56ILb/3gEnnXK9WDIA5Y8GGm/+I5 M8+fqxF7X1xJcdVg2Anbev02I72NozgoMoRu5dx9TDAEErL01/rkJJ4rBqvvu8Vuc/9l K4Oz9lFVwKHbi/Xs7NfRhNqhMhk9AgxgiSffCMR5sNJd/JQ2JckbdrZuOX50bADbqj1v P8vw== X-Forwarded-Encrypted: i=1; AJvYcCUVRkU8Btz4Q30ChIHhIKGFjU7LOXD6DH+QYAsdG8qPiPnj890z+y5G5flZM1s9thmv1lgBzfnOPkT6+5na6j0lzfxNyPCtHB+APaj8NBqPo5QrPz2Uh0bxE3gtjrQY78RbQgPVifO4BKhWl2FT X-Gm-Message-State: AOJu0YxG+70kP3J377LR5c0uhaDbdREx9Ys6UWAwmGnBRIyGjGmD7YQa BQQgrmdeT+3hvQS365ghyxB3rx2XpER5939HkG8LPE/fTz6H37cK 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: linux-renesas-soc@vger.kernel.org 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: 13724043 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 7AD2B144D3C; Thu, 4 Jul 2024 17:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113845; cv=none; b=tInZUCGLwTEb1Wb6yUxix+n5cGNJRlWiLH6XP7RetThhDtyuwzEed8Fzw1jN8zLRKz4x/8/UNj3EipjBz03Xb6bVTtAvFopodYj9mYD3bxsOlxLRX2qXeYNtPi49xIWfkEj+NJ0RX4DHdpZLlxiBWRbpa0YTjuyOCfZA2a0JFhk= 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=cLnj6I44; arc=none smtp.client-ip=209.85.208.171 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="cLnj6I44" Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2ee92f7137bso1680101fa.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Vy+A3rCs2GjwPUdBUvfrvVaJ4gXWSXpMp/c9DgZBcps=; b=cLnj6I44BqB7MR6y/eNdOQ+k61ZFB67nx2htiOwfwkpLG7roIFRFstR/cfGBsabZlr hJv/eDXwtOWJCXwu+0FCk4Vo5XAkmNUpQDdLP/2qd7PY8dZ6R+37vRjSWYgX7dYx4qx7 sSQZ3bop8IDYyLO/g+WqE14u0psmGa8TCC1E37zOlURm25VE8ZkDi9ATpVZY8G/U+12U T2jkTXsT/Pkrl3ZOLJ6a/JgfFaLs8Azhi43ep4VCFoz7y4nAEiVZx1GXK2sSM0DgYaQG PovhJpkZWXdYb/fgYlS1x1glSjXYyS6pfS6JxT9CXKoYoWXhcKZHg8pfCUStPZX2ZNe2 blzQ== 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=Ty+sgZrBEANgqzxCubke/gRFRXLEgrNnAkvziohVbf+N+853ggLdS2UGDWU2nFbVBi SIYZqYd0NtmiZgqphSk0oQyh0tyMzk1PGqKhPErYQGdIqHwmjA8MzXgYpvhzg/+VzXyq ZXSqmrSQhPc181EOc7ls5WkOgiVGTkEvmG/BaPCydriIvmHYk/XjT1Cm0PpK+gZluBVn 7lcDGOwhuCEmce3n/rJ3hdG3HkqEplo7JpNA3lVSw6esyJJux+1Y+IOtgyOLan5MWI+v 57XHQZdu55xmFTbpqth1bupPYk04nvbTNAah5nIMK2Vrs4nwJ3OedwQf4fy27pKcPv87 QNhg== X-Forwarded-Encrypted: i=1; AJvYcCUslI3TjljGlOhAdrSIq6hFLgZny+canQ0N2LGzYifrA65HaSvjqY/EWf2iB/Kj4LHQY/3UJZuuR3g/0OqqmLNa1b5fSq/ZvOOjjI1X6+yACk6WWmLynPJjVWaQHTKPwSOxm5FDe6RzCe7jTVR8 X-Gm-Message-State: AOJu0YwC/Mydj0etCIqJAzFLaFfRh5nNYVi6qOsdfwWOlXmVr0E/aJlr CDhRXuD+eCcVFR7h3JsQ5pCP0PVpjlfwGBypWkM49uwjKQU0e+SO 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: linux-renesas-soc@vger.kernel.org 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: 13724044 X-Patchwork-Delegate: geert@linux-m68k.org 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 05144145350; Thu, 4 Jul 2024 17:24:04 +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=1720113846; cv=none; b=HPijeBI9O31ZFltx1iBaQSAz096faQJQJhZeICU7zC3OQTuhbk2hS/xl/gp+SdiHIEomjhEyVC3YfpMPkbWFpNs6DItcsZvEK4Jp43rcWkeZ6mrhV4OKILUENk7jbZl6XCVRb3Vn3C1KvFHqA6SOU71OrTnkMq3kvQDXr+oiz6o= 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=gv+BhKAe; 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="gv+BhKAe" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4256788e13bso5610855e9.2; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Gn3WijEYYGde2qMFgclnizlvC5BdhQ9moOhVny9AY2s=; b=gv+BhKAew8uKk+EtlfH2tY/wJK8IwMK2ph03earcu5ZJG4PFQ010Fd8+a2EO6gtK8W ODZ8uaFMobtEAmFYBaiCTanvywHkkRqc9UpM4jtazuh5hpOZZ+T4HW4y4/b+do/6nBUw OKqjIPqNbmgU15VlIbd7/Ck/tLOXmA/wuwrpBvrlZdUiOVMFcxe/mXY/q6tsoMJDwS15 vTwJjGwB0Cjxf2xSJS+unLK9JzXrdH5D1mUiTF1SihIGX1ieViw3hBb3YsVboVyytT5/ E0o+VLv0HtMt21puJdh7ylxDec5JGG0D3+SnwMvARrVa2SJv5l2i1tPy/Idy+oNq7x2L et+g== 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=Cz5BkQ2tqm61cRfFS6rKf7U5VQ7sueh+eTJOhKlm6X7U+8hghQlKtOeSQl+VhowgiS zNXiwqUkwy/8IWp7ImGe3gg/L1yPvhx+HC9EBElOFo77EZq9kRHHxoQGdfk397AKJuq7 n5uJ4ySWQEE1KPCtWaX/FQu5Gc9Qo2pRHvmXi+weY/RYpwoMkSL0UX/4iCl23ZCPszqT W/6VG0LFwoXG39zr8brytckps1f789BzcOFCdFM8SIbp/nBvltem0eQFluQtTf1LtNNW AlY6M+fZlw5WiaNL8LEdWQ3PaR94kS+MivMOd1aGl3kxvwFdzxaUqlQXKZjon1GhJ4DK fnrQ== X-Forwarded-Encrypted: i=1; AJvYcCUSd8baMpO6fj0yAW1zMD6gduFpgfPu/reREBC5QDW+h+HLFk1wygebxquKKkXv1n8SAiEehOx0JXLYY4LLLHz5qKKZ0EgVtste4nptt83BjBagkFxG4o2X3Z0h+lnKwL/sfBBnck6WNyd05kRG X-Gm-Message-State: AOJu0Yyf1/mFqIttDIXFaWHvDC+vE6on1b0BHvARMKOL1GhfmSauPP/W YrDlUwiMLKgRMg3G3ubVTVvgXgUhfVt0UqWm7qKgsSpuBlbWtzlD 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: linux-renesas-soc@vger.kernel.org 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: 13724045 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 F0916145A18; Thu, 4 Jul 2024 17:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113848; cv=none; b=ML9imffWm6RbBerVDOsMwBaYwMKhnFFthl5Arjyhq0kKSlMzHATnsGbsEtboXNOtvviFA1TNgnGuj0y0dvOrscxXs/GVHwnarysTQVOB2u04i+peSQKjr0RxaGJ7nP1LWYWXJNsUk2WCNgYybWXSGaxeFUpWgokhUPyTnb64dYU= 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=PeNieckp; arc=none smtp.client-ip=209.85.128.52 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="PeNieckp" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-424ad289949so5719665e9.2; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xSmkXwdNDx8gxRBcSFEMTKWfVzkTr4PxXtZV2NUkJPo=; b=PeNieckp/oXyi8qz00A/fv6Xn3MXhcEcPNOJcwPJ8XnnkY57sBvbyAL3YVnvZVigv8 IqZzpdXkwnLm9s9f5pj66CJFqN7LE458AOaVXxTA7vJ+oVkaY2xzb5vFQ+0Tw3hs+aAw UkxZ5GIcI+x8HhT0X95KL81gWEzXdoVzlQ/+6ZlUDRV34vXyJcWuqHCTlH3AJ2tevCNA CGOpribBHlwJGgYDFZWRlHyE2hHHdD8EeZ4F0FPiN0sQXysWTEa3RBHbxrw5Nb9HYoIm Vfob7Hd/tYTXiGr1rygH6wIbxgpxSKPXVsp/wi90QfEsGlHX0gyNdVjLiclLRpgb6FFc HCxw== 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=j+06Jv8ErHSMtShvrA3DpKaJYnL5rq89ruvUqlM54kBlrhU5JFK5IrzvBRHfECkYEJ YlouHhrdMkTmYFHzpLgYu7f1nuEokaF0q0455m876Z2c/qYOn05QK49j/HxNTVShzz6Y zcEipZt+CSSB5wzuKy0kV1qdUi99e/I8uMsXgwWuEQJdLfXc29Tf5RcILXu/2g2TALHm IxcJzHkUypjwK6ZwbljYMYlTKXz5mhyXGJGwtyk0J6c16yaK0quTCRbxxupkvSMoPB8C vjvWC71ChRCU2YcXUYLHVCEoA/qnza30qeUnMY6l7qzwz7fn+k4PXCjYvcygBmOE8vfC aAuA== X-Forwarded-Encrypted: i=1; AJvYcCX4+VL8jLkPBVcP9q8Qk6TfBDpzb0zeaZjRLUd0EcMd4uq7KcMN0bC5lTSwwwoPgqTJA8/fCyG5ymyjwiQLlO+IWqqjIpL3T2r171XCh+xMls9Ci3oSg0ahkfNrMBjLpNrKFi/7Nm5A7WVduJ3r X-Gm-Message-State: AOJu0Yx3aG1JAl7YHXGOQooW1S2ho5v8gM/cxxPIW3rP5X8kuTcHYM/+ X2gr+lrbif/qXM8lEVBM2hhqrU7sPbLfGkIvDWaK4wqD75PJ1jwK 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: linux-renesas-soc@vger.kernel.org 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: 13724046 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BECE7145A12; Thu, 4 Jul 2024 17:24:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113850; cv=none; b=ldeQqfM64WamINzNMj3HvUwrNSS9f4z4yVMhZ8zzonvB+v3ZC19+NQZEtr3Ecv7uBM88Llh+aTpxDypGtRzgrdQI84Ov24HhMmVjttfNopvc1JUL/AArfozBa8/lYSTqKWN4PdyxBeS/wrbKaIxevHZ4CfP5ggk47wRgbVKLBmI= 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=H5HwC+Jx; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H5HwC+Jx" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-424acf3226fso6081315e9.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NKHYWbzkMTD6qk8aJRMT+i6jtpdTExyqbOxjXHTRIgE=; b=H5HwC+Jx2Q6V121kh4tBkIdf9YOWbEqLw8NIEZEbiqI8K6XeY3il8keCkZ0TjVN03h d381Pviymj30Zceo8YUq4bvyc64rxeg4uiKnu0u4AwB01n7PSlSbldieqT754jfH3bGA B76Jp17EuAoURJetodoRIfThj8lxCBn/hGhecIKhfrOgMKh55Z4KMPN1MFMMhaE2FYvC egqH1y8p5JjftaNjlehiB2yGM2ySm3CgtMlTW73CLlpcdYx02f45O19pGnFcr/tc7+JX I/rXuCFTMIxm9KnSGwRzYh4rGSQ3gDV9m4OmE6wPIOLNesbXh2TDw2TB2Oq14aLHTUtn UAZQ== 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=vJYY1ioiRhhU0Uuq5+fypWoRGp56fzM0dTIXdP5O+9eNc/l/1bKxjrlRZzuj2A+KUx LlkkcFBNPJF76rb7ED4mjGkz8E9Bk5oD7BGlUtnwY96/Ph6PVyEi1cwsAudBKhS6yiUc sfC92lroKw8+jvXLqIuPNalZ5fL4+8KCiRKaj8bTUHBreYd5F3cltEVklDSLCofZ5GQD 97g4G6+v4R1mcXscSQrFTflg5oEGXT3a7dpZsPhi9PH9p6kU00FBt2gJTudKBMA3nGT5 Jo+fxdyZ5rf9njRPhDyTLSNjwHedS2bkLjn7at2fMRWdxEavggew8/z8u556fSQSZ1pm HmSg== X-Forwarded-Encrypted: i=1; AJvYcCVSn0i122HkH2pGgRh05biqE5/wN1fBVThmN6d/Wx433MyB0PxQQfac37eNVy7d0hlnpQqIQfTJjDXGxaChGm40FDTQTtpggGwo/cNcai06U9V1SIIMz88gH8SZea4WILGgmaagQzHgddg5Y6Cs X-Gm-Message-State: AOJu0YxG5kDsR+V45m3Ee8jq1eDhQtq27Jz4soha2qgfMpIDvNc4x48t aiiP84RxwpuNrhlmk//HBdVDzs/QJV3RFLzU8dU6QClpwnie0ICm 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: linux-renesas-soc@vger.kernel.org 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: 13724047 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 BD96A1465B3; Thu, 4 Jul 2024 17:24:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720113853; cv=none; b=K0aeFIdH4okS7s6vuDPCRoZcHI8Tn1KN5YdwlHkLKPRPlkyyeqJ3j7nyJMZ0QNacFObxkQYuCYHR/8NiDplUHfR8QkG3mkWBB3P21kYsSJY4RlKhbLHNOutF2OuDqmFLsF/1+uvhVpP0m9aIlOyrSWql7EJe18Va8pGucxunVGQ= 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=BhqP26br; arc=none smtp.client-ip=209.85.208.173 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="BhqP26br" Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2ee7885aa5fso9062611fa.1; 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=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cY6xfOZvlcet+ySjb9JWf/+SsmV4UTmCb1l/EHDXfC8=; b=BhqP26brsmr8A6NhQ0l5flhVvJHbg7EfE/q6HB/kpEw/DvY6xxYvv50zkSbc5cwFFy JNS51kJH+F5uCqyhJXJK+d9DdCCwmhchscTKOuDiD8k0UyzhgDBB7U7Jfy/1krfKcdBS NrX1cKKTwKXPEkrK7ENNBvSuzIL7dKQhyRq9HcrQbHmd4gEcneif/0CY2Gm2ExBZ9O2k 4qLlrQJ11k7RLbc5vjdLRTJuYWhDHKFuYBNmw9BxqFsLT89Yyfa9IKmFOhRdTlTqcEc4 vnPI5Aki6kxhKNIzDkALgX8ECFMuVQTc6XaR3jMF+08qlXjz/mqi/cLr6/AkGp3XmlYE g1zg== 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=l+Z4DWX1gPhSEo0oG3XIiMJ4cBvYGhcNYg55T2t53SB1fvxHj4vIdqADCHC/587etq hISQZNB8XUQriZTZhjQYqLJxzcW9UthHkzFfagPGaNODt3oULvjTjVEf2jjx5BP/mIgQ W0/vpM3z5ejJLhzNUls3Kngy889SoFNTOIhhC7w8sL3ONMossJlDOnOGx5FSqzbhKI5T RvDKBGVsVN8Ycjp43VtS52GmvxzIgo9tOJdTtOfFmV9mt1PjoHp8QOokfRobkZBG0d42 iWEKznQBoFR1i8lsvHNWU00s0x+VQVa2m4J2FedBCPLOIVv3A/tAesHatrQ0nr1WQrOn AUwg== X-Forwarded-Encrypted: i=1; AJvYcCW/5imTQ43J9D5n34/tExo+r7/ezfVEmIAHqa7eDzBy2UGlCSDAqj/PASqb17CMArE+ecEfwszDuiCn+rgn8/SNsMPz9m7NMJ6jTxT8F6GOkX5bd/vvqjoLq4w8PhuCxAUBaGjTzV8AYotYQ3aM X-Gm-Message-State: AOJu0YzJgMzoupTwAZkCzXaHhFOgaJ3LrMxiKZqefda8cilRthjJNjkU TuaQW4luYwOxpAK9LuM1EWq5WHue/VqaN8YUdwVWj9iOet4cUdNj 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: linux-renesas-soc@vger.kernel.org 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,