diff options
author | Guenter Roeck <[email protected]> | 2024-02-23 16:21:07 +0000 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2024-02-25 12:37:46 -0800 |
commit | 8be143b978717ce953c1c42cc57c36cd543334a4 (patch) | |
tree | aba9095dcf4a59a58359b2edc31caf35abd1b229 | |
parent | bad582f9879812bcf74adb520e005051eb021cfb (diff) |
hwmon: (pmbus/tda38640) 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 <[email protected]>
Cc: Naresh Solanki <[email protected]>
Cc: Patrick Rudolph <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/20240223-catnap-companion-c42fdd8ad110@spud
Signed-off-by: Guenter Roeck <[email protected]>
-rw-r--r-- | drivers/hwmon/pmbus/tda38640.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/tda38640.c b/drivers/hwmon/pmbus/tda38640.c index 09cd114b1736..c31889a036f0 100644 --- a/drivers/hwmon/pmbus/tda38640.c +++ b/drivers/hwmon/pmbus/tda38640.c @@ -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 { |