Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b7a8b42 authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck
Browse files

hwmon: (pmbus) Explicitly set regulator type for pmbus_regulator_ops



The pmbus_regulator_ops is for voltage regulators, so explicitly set
regulator type for better readability.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent d4068a59
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -390,6 +390,7 @@ extern struct regulator_ops pmbus_regulator_ops;
		.of_match = of_match_ptr(_name # _id),		\
		.of_match = of_match_ptr(_name # _id),		\
		.regulators_node = of_match_ptr("regulators"),	\
		.regulators_node = of_match_ptr("regulators"),	\
		.ops = &pmbus_regulator_ops,			\
		.ops = &pmbus_regulator_ops,			\
		.type = REGULATOR_VOLTAGE,			\
		.owner = THIS_MODULE,				\
		.owner = THIS_MODULE,				\
	}
	}