]> bbs.cooldavid.org Git - net-next-2.6.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)
commit96f3640894012be7dd15a384566bfdc18297bc6c
treea39f2474004a25dd46b3add0aeb3a1f0429045a3
parent9e012c1acc1fd617a708c00ff1fdaa847f9faf67
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