]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (f75375s) Shift control mode to the correct bit position
authorGuillem Jover <guillem@hadrons.org>
Fri, 17 Sep 2010 15:24:11 +0000 (17:24 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 17 Sep 2010 15:24:11 +0000 (17:24 +0200)
commitd5b338756a388d11388d85a8a55f5f2bde27d519
treea39f2474004a25dd46b3add0aeb3a1f0429045a3
parent19b497f5e559b84afb32407fa5ff0f6243881eb1
hwmon: (f75375s) Shift control mode to the correct bit position

The spec notes that fan0 and fan1 control mode bits are located in bits
7-6 and 5-4 respectively, but the FAN_CTRL_MODE macro was making the
bits shift by 5 instead of by 4.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Cc: Riku Voipio <riku.voipio@iki.fi>
Cc: stable@kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/f75375s.c