summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adt7411.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-04-14 14:14:09 (GMT)
committerJean Delvare <khali@linux-fr.org>2010-04-14 14:14:09 (GMT)
commit8acf07c5a7674e53f2d320d540aec5d714b105cf (patch)
tree4a7f46597031fcede0c2fdd6851e353784070758 /drivers/hwmon/adt7411.c
parenta00afb97e23fd904b12a3f4de3237d8ab2f68738 (diff)
downloadlinux-8acf07c5a7674e53f2d320d540aec5d714b105cf.tar.xz
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: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/adt7411.c')
0 files changed, 0 insertions, 0 deletions