Skip to content

Commit cb72229

Browse files
committed
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 <[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-harmless-covenant-9cd3d4f1cfd2@spud Signed-off-by: Guenter Roeck <[email protected]>
1 parent 8f832d2 commit cb72229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/pmbus/ir38064.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#if IS_ENABLED(CONFIG_SENSORS_IR38064_REGULATOR)
2424
static const struct regulator_desc ir38064_reg_desc[] = {
25-
PMBUS_REGULATOR("vout", 0),
25+
PMBUS_REGULATOR_ONE("vout"),
2626
};
2727
#endif /* CONFIG_SENSORS_IR38064_REGULATOR */
2828

0 commit comments

Comments
 (0)