]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit2f2da1ac0ba5b6cc6e1957c4da5ff20e67d8442b
tree65b73e866a23e28baa613288a6ca2016d78de580
parentb63d97a36edb1aecf8c13e5f5783feff4d64c24b
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