Skip to content

Commit 54cc3db

Browse files
sylv-iogroeck
authored andcommitted
hwmon: (pmbus) Add regulator supply into macro
Add regulator supply into PWBUS_REGULATOR macro. This makes it optional to define a vin-supply in DT. Not defining a supply will add a dummy regulator supply instead and only cause the following debug output: ``` Looking up vin-supply property in node [...] failed ``` Signed-off-by: Marcello Sylvester Bauer <[email protected]> Link: https://lore.kernel.org/r/58f2ff7b90233fad3d7ae2e9d66d5192e2c1ac01.1645437439.git.sylv@sylv.io Signed-off-by: Guenter Roeck <[email protected]>
1 parent c82fdd4 commit 54cc3db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/pmbus/pmbus.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ extern const struct regulator_ops pmbus_regulator_ops;
464464
#define PMBUS_REGULATOR(_name, _id) \
465465
[_id] = { \
466466
.name = (_name # _id), \
467+
.supply_name = "vin", \
467468
.id = (_id), \
468469
.of_match = of_match_ptr(_name # _id), \
469470
.regulators_node = of_match_ptr("regulators"), \

0 commit comments

Comments
 (0)