diff options
author | Guenter Roeck <[email protected]> | 2024-02-23 16:21:08 +0000 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2024-02-25 12:37:46 -0800 |
commit | 8f832d23ead3108eb74afffb5def676f8cebf35c (patch) | |
tree | 8bf94d940e4c81da5397db9871e867e404cb575b | |
parent | 8be143b978717ce953c1c42cc57c36cd543334a4 (diff) |
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]>
-rw-r--r-- | drivers/hwmon/pmbus/lm25066.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c index 3a20df5a43ec..cfffa4cdc0df 100644 --- a/drivers/hwmon/pmbus/lm25066.c +++ b/drivers/hwmon/pmbus/lm25066.c @@ -437,7 +437,7 @@ static int lm25066_write_word_data(struct i2c_client *client, int page, int reg, #if IS_ENABLED(CONFIG_SENSORS_LM25066_REGULATOR) static const struct regulator_desc lm25066_reg_desc[] = { - PMBUS_REGULATOR("vout", 0), + PMBUS_REGULATOR_ONE("vout"), }; #endif |