hwmon: (pmbus/tda38640) Use PMBUS_REGULATOR_ONE to declare regulator
authorGuenter Roeck <linux@roeck-us.net>
Fri, 23 Feb 2024 16:21:07 +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: Patrick Rudolph <patrick.rudolph@9elements.com>
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-catnap-companion-c42fdd8ad110@spud
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/tda38640.c

index 09cd114b17368839221619c91a78f8ff26790abc..c31889a036f01eefac6621796efb8e4bbcbecf13 100644 (file)
@@ -15,7 +15,7 @@
 #include "pmbus.h"
 
 static const struct regulator_desc __maybe_unused tda38640_reg_desc[] = {
-       PMBUS_REGULATOR("vout", 0),
+       PMBUS_REGULATOR_ONE("vout"),
 };
 
 struct tda38640_data {