mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
hwmon: (pmbus) Clear sensor data after chip write
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>
This commit is contained in:
parent
66102281f9
commit
1ae5aaf5d1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue