From: Thomas Richard Date: Mon, 3 Feb 2025 11:01:06 +0000 (+0100) Subject: mfd: cgbc: Add support for HWMON X-Git-Tag: v6.15-rc1~109^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddbc194589e20ec0470a97715b2025e89e627cc5;p=thirdparty%2Fkernel%2Flinux.git mfd: cgbc: Add support for HWMON The Board Controller has some internal sensors. Add a hwmon cell for the cgbc-hwmon driver which adds support for temperature, voltage, current and fan sensors. Signed-off-by: Thomas Richard Link: https://lore.kernel.org/r/20250203-congatec-board-controller-hwmon-v4-2-ff6c76a4662c@bootlin.com Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/cgbc-core.c b/drivers/mfd/cgbc-core.c index 0b3788c2c1afd..21cdb00bf7f22 100644 --- a/drivers/mfd/cgbc-core.c +++ b/drivers/mfd/cgbc-core.c @@ -236,6 +236,7 @@ static struct mfd_cell cgbc_devs[] = { { .name = "cgbc-gpio" }, { .name = "cgbc-i2c", .id = 1 }, { .name = "cgbc-i2c", .id = 2 }, + { .name = "cgbc-hwmon" }, }; static int cgbc_map(struct cgbc_device_data *cgbc)