]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6b40781c6baa7abf9e1283670adf4a4c49a6d2c
treed392c7c045412f8e312106aba34e7137b5bd374e
parent92eb715cabe8c446878a9d4cc229aca7bc7ab302
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