]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 21 Feb 2012 22:30:45 +0000 (14:30 -0800)
commit5b4cc827162e4500ea67999130beaa5cada2bdfd
tree65b73e866a23e28baa613288a6ca2016d78de580
parent05ad3c9af6ff599f38b0112abf9bcdc3ff341f8d
hwmon: (max6639) Fix PPR register initialization to set both channels

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>
Cc: stable@vger.kernel.org # 3.0+
Acked-by: Roland Stigge <stigge@antcom.de>
drivers/hwmon/max6639.c