[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240223-harmless-covenant-9cd3d4f1cfd2@spud>
Date: Fri, 23 Feb 2024 16:21:09 +0000
From: Conor Dooley <conor@...nel.org>
To: linux@...ck-us.net
Cc: conor@...nel.org,
Conor Dooley <conor.dooley@...rochip.com>,
Jean Delvare <jdelvare@...e.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Zev Weiss <zev@...ilderbeest.net>,
Patrick Rudolph <patrick.rudolph@...ements.com>,
Peter Yin <peteryin.openbmc@...il.com>,
Alexander Stein <alexander.stein@...tq-group.com>,
linux-hwmon@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Naresh Solanki <naresh.solanki@...ements.com>
Subject: [PATCH v2 5/5] hwmon: (pmbus/ir38064) Use PMBUS_REGULATOR_ONE to declare regulator
From: Guenter Roeck <linux@...ck-us.net>
If a chip only provides a single regulator, it should be named 'vout'
and not 'vout0'. Declare regulator using PMBUS_REGULATOR_ONE() to make
that happen.
Cc: Conor Dooley <conor@...nel.org>
Cc: Naresh Solanki <naresh.solanki@...ements.com>
Cc: Patrick Rudolph <patrick.rudolph@...ements.com>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
Signed-off-by: Conor Dooley <conor.dooley@...rochip.com>
---
drivers/hwmon/pmbus/ir38064.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/pmbus/ir38064.c b/drivers/hwmon/pmbus/ir38064.c
index 04185be3fdb6..69e18cb468f6 100644
--- a/drivers/hwmon/pmbus/ir38064.c
+++ b/drivers/hwmon/pmbus/ir38064.c
@@ -22,7 +22,7 @@
#if IS_ENABLED(CONFIG_SENSORS_IR38064_REGULATOR)
static const struct regulator_desc ir38064_reg_desc[] = {
- PMBUS_REGULATOR("vout", 0),
+ PMBUS_REGULATOR_ONE("vout"),
};
#endif /* CONFIG_SENSORS_IR38064_REGULATOR */
--
2.43.0
Powered by blists - more mailing lists