]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2d515db6542921e6c735ce4128a030ea25488e9
tree53f25df93c54a20473fd53be4e92a195f7491391
parentcd1e57708febbf90d254d0c376cc032ae136a41e
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