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:31:12 +0000 (16:31 -0800)
commitb7b3a0104a6e22b03733289ec2665e2acf19170c
treecb5a0966301c860b5938ea4edf4dc4288a7c6af7
parent8003623db5dfe0819e0fb83863392d6465569d60
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