hwmon: (pmbus) Clear sensor data after chip write
authorErik Rosen <erik.rosen@metormote.com>
Mon, 1 Feb 2021 19:59:28 +0000 (20:59 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 2 Feb 2021 00:23:47 +0000 (16:23 -0800)
commit1ae5aaf5d1c5473616413f3aa8ce05e9c739a298
tree523e87a25f1bd0a534f082c76c6d62c74740e675
parent66102281f94afdf1f41cf6147c7ddce73a8e75f2
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>
drivers/hwmon/pmbus/pmbus_core.c