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:
68a4038
)
hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS
author
Guenter Roeck
<linux@roeck-us.net>
Mon, 8 Jun 2015 18:01:50 +0000
(11:01 -0700)
committer
Guenter Roeck
<linux@roeck-us.net>
Sun, 9 Aug 2015 20:44:27 +0000
(13:44 -0700)
Use the CLEAR_PEAKS command on LTM4676.
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ltc2978.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/pmbus/ltc2978.c
b/drivers/hwmon/pmbus/ltc2978.c
index 0835050ec245ba67c65bd59f341b0f7eef2c3032..33081d1d1c5afebc40e1252fa44cd783238625c2 100644
(file)
--- a/
drivers/hwmon/pmbus/ltc2978.c
+++ b/
drivers/hwmon/pmbus/ltc2978.c
@@
-313,7
+313,7
@@
static int ltc2978_clear_peaks(struct i2c_client *client, int page,
{
int ret;
- if (id == ltc3880 || id == ltc3883)
+ if (id == ltc3880 || id == ltc3883
|| id == ltm4676
)
ret = pmbus_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS);
else
ret = pmbus_write_byte(client, page, PMBUS_CLEAR_FAULTS);