hwmon: (w83795) Fix parity checks
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:47 +0000 (20:31 +0200)
commit7eb8d508b5cfabbb147670ee063438469d94c465
treed392c7c045412f8e312106aba34e7137b5bd374e
parenta654b9d4e7152b06557e2f22bcf0a245bc88bc98
hwmon: (w83795) Fix parity checks

x % 1 is obviously wrong, as it always evaluates to 0. You want
x % 2, or x & 1, for parity checking.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83795.c