i8k: Register only temperature sensors which have labels
authorPali Rohár <pali.rohar@gmail.com>
Mon, 12 Jan 2015 13:31:58 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 17:17:58 +0000 (09:17 -0800)
commit672af223305791c3a814ec8c4fb841dc75277f48
tree3a33b831cd8fb532a6ebf692e4674177a93837d0
parent5114b474cbb464e7a5da4ba5cdc551e798395151
i8k: Register only temperature sensors which have labels

Detect presense of sensor by calling type function instead trying to read
temperature value. Type function is working also for sensors which are temporary
turned off (e.g on GPU which is turned off). Dell DOS binary NBSVC.MDM is doing
similar checks, so we should do that too.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/i8k.c