mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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>
This commit is contained in:
parent
a654b9d4e7
commit
7eb8d508b5
1 changed files with 4 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue