Skip to content

Commit 8f832d2

Browse files
committed
hwmon: (pmbus/lm25066) 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: Zev Weiss <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/20240223-player-buckskin-01405c5889c4@spud Signed-off-by: Guenter Roeck <[email protected]>
1 parent 8be143b commit 8f832d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/pmbus/lm25066.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static int lm25066_write_word_data(struct i2c_client *client, int page, int reg,
437437

438438
#if IS_ENABLED(CONFIG_SENSORS_LM25066_REGULATOR)
439439
static const struct regulator_desc lm25066_reg_desc[] = {
440-
PMBUS_REGULATOR("vout", 0),
440+
PMBUS_REGULATOR_ONE("vout"),
441441
};
442442
#endif
443443

0 commit comments

Comments
 (0)