projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6610228
)
hwmon: (pmbus) Clear sensor data after chip write
author
Erik Rosen
<erik.rosen@metormote.com>
Mon, 1 Feb 2021 19:59:28 +0000
(20:59 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Tue, 2 Feb 2021 00:23:47 +0000
(16:23 -0800)
Set the sensor->data field to -ENODATA to force a chip access next time
the sensor value is read.
Signed-off-by: Erik Rosen <erik.rosen@metormote.com>
Link:
https://lore.kernel.org/r/20210201195929.1200-2-erik.rosen@metormote.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/pmbus/pmbus_core.c
b/drivers/hwmon/pmbus/pmbus_core.c
index
1cf7d9e
..
aadea85
100644
(file)
--- a/
drivers/hwmon/pmbus/pmbus_core.c
+++ b/
drivers/hwmon/pmbus/pmbus_core.c
@@
-974,7
+974,7
@@
static ssize_t pmbus_set_sensor(struct device *dev,
if (ret < 0)
rv = ret;
else
- sensor->data =
regval
;
+ sensor->data =
-ENODATA
;
mutex_unlock(&data->update_lock);
return rv;
}