Skip to content

Commit 8be143b

Browse files
committed
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]>
1 parent bad582f commit 8be143b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/pmbus/tda38640.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "pmbus.h"
1616

1717
static const struct regulator_desc __maybe_unused tda38640_reg_desc[] = {
18-
PMBUS_REGULATOR("vout", 0),
18+
PMBUS_REGULATOR_ONE("vout"),
1919
};
2020

2121
struct tda38640_data {

0 commit comments

Comments
 (0)