projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4068a5
)
hwmon: (pmbus) Explicitly set regulator type for pmbus_regulator_ops
author
Axel Lin
<axel.lin@ingics.com>
Fri, 10 Jul 2015 04:59:13 +0000
(12:59 +0800)
committer
Guenter 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/pmbus/pmbus.h
b/drivers/hwmon/pmbus/pmbus.h
index 89a23ff836e71752bf113ad4f0c48da35af5e89a..21f8b2fa7fc45a7c9dc6bac4e51f022331146de5 100644
(file)
--- 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, \
}