Commit cb722299 authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (pmbus/ir38064) Use PMBUS_REGULATOR_ONE to declare regulator

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: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240223-harmless-covenant-9cd3d4f1cfd2@spudSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 8f832d23
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#if IS_ENABLED(CONFIG_SENSORS_IR38064_REGULATOR) #if IS_ENABLED(CONFIG_SENSORS_IR38064_REGULATOR)
static const struct regulator_desc ir38064_reg_desc[] = { static const struct regulator_desc ir38064_reg_desc[] = {
PMBUS_REGULATOR("vout", 0), PMBUS_REGULATOR_ONE("vout"),
}; };
#endif /* CONFIG_SENSORS_IR38064_REGULATOR */ #endif /* CONFIG_SENSORS_IR38064_REGULATOR */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment