hwmon: (nct7904) Strengthen detect function
authorGuenter Roeck <linux@roeck-us.net>
Fri, 27 Feb 2015 16:23:37 +0000 (08:23 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2015 16:59:36 +0000 (09:59 -0700)
commit6552f327cab8eb6c773ba4f702cf6a371d1dc467
tree53f25df93c54a20473fd53be4e92a195f7491391
parent9c947d25c96ec93485d60f7b783403d518c1418d
hwmon: (nct7904) Strengthen detect function

The bank register has five unused bits. Verify that those bits are zero
to strengthen the detect function.

Cc: Vadim V. Vlasov <vvlasov@dev.rtsoft.ru>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
drivers/hwmon/nct7904.c