hwmon: (max6639) Fix PPR register initialization to set both channels
authorChris D Schimp <silverchris@gmail.com>
Mon, 20 Feb 2012 22:44:59 +0000 (17:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:33:38 +0000 (16:33 -0800)
commit5774b2eec1698c9647162a52431e514d6628471f
treeaea59c2b69418c5d77a2fbd29eeac9bb0e4b813e
parente1efaccd1c67efe24e3708c916e51330bf770299
hwmon: (max6639) Fix PPR register initialization to set both channels

commit 2f2da1ac0ba5b6cc6e1957c4da5ff20e67d8442b upstream.

Initialize PPR register for both channels, and set correct PPR register bits.
Also remove unnecessary variable initializations.

Signed-off-by: Chris D Schimp <silverchris@gmail.com>
[guenter.roeck@ericsson.com: Merged two patches into one]
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/max6639.c