diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-10 06:59:13 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-08-09 22:44:26 +0200 |
commit | 7b7a8b4237a0d7808df5aa12f49f7979f879cf12 (patch) | |
tree | 0ae2a767b3ef65a0606dbd7fa397081be4216416 /drivers/hwmon | |
parent | hwmon: (g762) Drop owner assignment from struct i2c_driver (diff) | |
download | linux-7b7a8b4237a0d7808df5aa12f49f7979f879cf12.tar.xz linux-7b7a8b4237a0d7808df5aa12f49f7979f879cf12.zip |
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 <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/pmbus/pmbus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h index 89a23ff836e7..21f8b2fa7fc4 100644 --- a/drivers/hwmon/pmbus/pmbus.h +++ b/drivers/hwmon/pmbus/pmbus.h @@ -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, \ } |