hwmon: pmbus: Explicitly set regulator type for pmbus_regulator_ops
PATCH 1/2 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 Axel Lin <[email protected]>
--- drivers/hwmon/pmbus/pmbus.h | 1 + 1 file changed, 1 insertion(+)
drivers/hwmon/pmbus/pmbus.h +1 -0
@@ -390,6 +390,7 @@ extern struct regulator_ops pmbus_regulator_ops; .of_match = of_match_ptr(_name # _id), \ .regulators_node = of_match_ptr("regulators"), \ .ops = &pmbus_regulator_ops, \ + .type = REGULATOR_VOLTAGE, \ .owner = THIS_MODULE, \ }
Signature · 9 lines
2.1.0 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 4 lines · Axel Lin
The
pmbus_regulator_opsis for voltage regulators, so explicitly set regulator type for better readability.Signed-off-by Axel Lin <[email protected]>
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors