[PATCH v2 2/5] mfd: cgbc: Make cgbc_devs const

"Thomas Richard (congatec GmbH)" <[email protected]> Tue, 11 Aug 2026 18:15:03 +0200
Newsgroups org.kernel.vger.linux-i2c,dev.linux.lists.mfd,org.kernel.vger.linux-kernel
Message-ID <20260811-cgbc-i2c-storage-devices-support-v2-2-3efa998e0ef5@bootlin.com>
Make cgbc_devs const, so it will be placed in .rodata section.

Signed-off-by: Thomas Richard (congatec GmbH) <[email protected]>
---
 drivers/mfd/cgbc-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index 4a409234e66c..f09fd671bc8c 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -235,7 +235,7 @@ int cgbc_command(struct cgbc_device_data *cgbc, void *cmd, unsigned int cmd_size
 }
 EXPORT_SYMBOL_GPL(cgbc_command);
 
-static struct mfd_cell cgbc_devs[] = {
+static const struct mfd_cell cgbc_devs[] = {
 	{ .name = "cgbc-wdt"	},
 	{ .name = "cgbc-gpio"	},
 	{ .name = "cgbc-i2c", .id = 1 },

-- 
2.53.0