]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (i5500_temp) Don't bind to disabled sensors
authorJean Delvare <jdelvare@suse.de>
Sat, 24 Jan 2015 13:16:21 +0000 (14:16 +0100)
committerJean Delvare <jdelvare@suse.de>
Sat, 24 Jan 2015 13:16:21 +0000 (14:16 +0100)
commit1d8c8d9e50e67ced69a73f0cdb8b128bd2133870
tree99f2e1e28040114aba4901b2dc2c052c49d5c79f
parente4184e9deff0d20575f1b482ea0299ba96bb39b2
hwmon: (i5500_temp) Don't bind to disabled sensors

On many motherboards, for an unknown reason, the thermal sensor seems
to be disabled and will return a constant temperature value of 36.5
degrees Celsius. Don't bind to the device in that case, so that we
don't report this bogus value to userspace.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Romain Dolbeau <romain@dolbeau.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/i5500_temp.c