hwmon: (pmbus/lm25066) Use PMBUS_REGULATOR_ONE to declare regulator
authorGuenter Roeck <linux@roeck-us.net>
Fri, 23 Feb 2024 16:21:08 +0000 (16:21 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:46 +0000 (12:37 -0800)
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@kernel.org>
Cc: Naresh Solanki <naresh.solanki@9elements.com>
Cc: Zev Weiss <zev@bewilderbeest.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240223-player-buckskin-01405c5889c4@spud
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/lm25066.c

index 3a20df5a43ec8d0ee44c30e34daa441938009652..cfffa4cdc0df911a70b228694312b7c87c113d0c 100644 (file)
@@ -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