[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240223-player-buckskin-01405c5889c4@spud>
Date: Fri, 23 Feb 2024 16:21:08 +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 4/5] hwmon: (pmbus/lm25066) 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: Zev Weiss <zev@...ilderbeest.net>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
Signed-off-by: Conor Dooley <conor.dooley@...rochip.com>
---
drivers/hwmon/pmbus/lm25066.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c
index 3a20df5a43ec..cfffa4cdc0df 100644
--- a/drivers/hwmon/pmbus/lm25066.c
+++ b/drivers/hwmon/pmbus/lm25066.c
@@ -437,7 +437,7 @@ static int lm25066_write_word_data(struct i2c_client *client, int page, int reg,
#if IS_ENABLED(CONFIG_SENSORS_LM25066_REGULATOR)
static const struct regulator_desc lm25066_reg_desc[] = {
- PMBUS_REGULATOR("vout", 0),
+ PMBUS_REGULATOR_ONE("vout"),
};
#endif
--
2.43.0
Powered by blists - more mailing lists