]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm87) Fix masking of config register in lm87_init_client()
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 17 Oct 2008 15:51:11 +0000 (17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:11 +0000 (17:51 +0200)
commitb5c7afdc5e6143fd074c088ad6a4708c2a8ef847
treeb8fa52e5eb4af19f7ff7438067cf2876ca382a06
parent7ea2ffc632fd50926f9bad6f906abddc4faed4ec
hwmon: (lm87) Fix masking of config register in lm87_init_client()

lm87_init_client() conditionally sets the Start bit and clears the
INT#_Clear bit in the Config 1 register.  The condition should be that
either of these bits needs changing, but currently it checks the
(self-clearing) Initialization bit instead of INT#_Clear.

Fix the condition and also ensure we never set the Initialization bit.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm87.c