[PATCH v3 5/9] mfd: cgbc: Use real I2C bus names

From: Thomas Richard (congatec GmbH)

Date: Fri Sep 11 2026 - 14:54:07 EST


The adapter names described the expected purpose of the buses ("General
Purpose I2C adapter", "Power Management I2C adapter") on conga-sa7 board
rather than their actual names on the Board Controller.

Rename them to the real bus names "cgbc-i2c0" and "cgbc-ddc0", matching
the naming used by Congatec, and update the variable names accordingly.

Signed-off-by: Thomas Richard (congatec GmbH) <thomas.richard@xxxxxxxxxxx>
---
drivers/mfd/cgbc-core.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c
index bb26b358da26..dff14cd98271 100644
--- a/drivers/mfd/cgbc-core.c
+++ b/drivers/mfd/cgbc-core.c
@@ -56,13 +56,13 @@

static struct platform_device *cgbc_pdev;

-static const struct cgbc_i2c_platform_data cgbc_i2c_gp_pdata = {
- .name = "Congatec General Purpose I2C adapter",
+static const struct cgbc_i2c_platform_data cgbc_i2c_i2c0_pdata = {
+ .name = "cgbc-i2c0",
.cgbc_bus_id = 0,
};

-static const struct cgbc_i2c_platform_data cgbc_i2c_pm_pdata = {
- .name = "Congatec Power Management I2C adapter",
+static const struct cgbc_i2c_platform_data cgbc_i2c_ddc0_pdata = {
+ .name = "cgbc-ddc0",
.cgbc_bus_id = 4,
};

@@ -72,13 +72,13 @@ static const struct mfd_cell cgbc_devs[] = {
{ .name = "cgbc-hwmon" },
{
.name = "cgbc-i2c",
- .platform_data = &cgbc_i2c_gp_pdata,
- .pdata_size = sizeof(cgbc_i2c_gp_pdata),
+ .platform_data = &cgbc_i2c_i2c0_pdata,
+ .pdata_size = sizeof(cgbc_i2c_i2c0_pdata),
},
{
.name = "cgbc-i2c",
- .platform_data = &cgbc_i2c_pm_pdata,
- .pdata_size = sizeof(cgbc_i2c_pm_pdata),
+ .platform_data = &cgbc_i2c_ddc0_pdata,
+ .pdata_size = sizeof(cgbc_i2c_ddc0_pdata),
},
{ .name = "cgbc-wdt" },
};

--
2.53.0