hwmon: (pmbus) Explicitly set regulator type for pmbus_regulator_ops
authorAxel Lin <axel.lin@ingics.com>
Fri, 10 Jul 2015 04:59:13 +0000 (12:59 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 9 Aug 2015 20:44:26 +0000 (13:44 -0700)
The pmbus_regulator_ops is for voltage regulators, so explicitly set
regulator type for better readability.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus.h

index 89a23ff836e71752bf113ad4f0c48da35af5e89a..21f8b2fa7fc45a7c9dc6bac4e51f022331146de5 100644 (file)
@@ -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,                           \
        }