Skip to content
Commit 8acf07c5 authored by Jean Delvare's avatar Jean Delvare
Browse files

hwmon: (it87) Properly handle wrong sensor type requests



Currently, if someone tries to set the thermal sensor type to an
unsupported value, subsequent accesses to the chip may temporarily
show the sensor in question as disabled. Use a temporary variable
and only update the cached value on success, to prevent such
confusion.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent a00afb97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment