From: Jean Delvare Date: Thu, 28 Oct 2010 18:31:48 +0000 (+0200) Subject: hwmon: (w83795) Simplify temperature sensor type handling X-Git-Tag: v2.6.37-rc1~59^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39deb6993e7c22274c272c95013eef886f7004e8;p=pandora-kernel.git hwmon: (w83795) Simplify temperature sensor type handling All 3 temperature sensor type sysfs functions (show_temp_mode, store_temp_mode and show_dts_mode) can be simplified. We don't create these files when the correponding input isn't in temperature monitoring mode, so there is no point in handling that case. Likewise, we don't allow changing inputs from temperature to voltage, so the code handling this case is dead and can be removed. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed