From: Jean Delvare Date: Wed, 14 Apr 2010 14:14:09 +0000 (+0200) Subject: hwmon: (it87) Properly handle wrong sensor type requests X-Git-Tag: v2.6.34-rc5~18^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8acf07c5a7674e53f2d320d540aec5d714b105cf;p=pandora-kernel.git 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 --- Reading git-diff-tree failed