From: Guillem Jover Date: Fri, 17 Sep 2010 15:24:11 +0000 (+0200) Subject: hwmon: (f75375s) Shift control mode to the correct bit position X-Git-Tag: v2.6.36-rc5~16^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96f3640894012be7dd15a384566bfdc18297bc6c;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Cc: Riku Voipio Cc: stable@kernel.org Signed-off-by: Jean Delvare --- diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c index 0f58ecc..e5828c0 100644 --- a/drivers/hwmon/f75375s.c +++ b/drivers/hwmon/f75375s.c @@ -79,7 +79,7 @@ enum chips { f75373, f75375 }; #define F75375_REG_PWM2_DROP_DUTY 0x6C #define FAN_CTRL_LINEAR(nr) (4 + nr) -#define FAN_CTRL_MODE(nr) (5 + ((nr) * 2)) +#define FAN_CTRL_MODE(nr) (4 + ((nr) * 2)) /* * Data structures and manipulation thereof