]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus/ltc2978) Fix peak attribute handling
authorGuenter Roeck <linux@roeck-us.net>
Thu, 21 Feb 2013 17:33:25 +0000 (09:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:23 +0000 (11:26 -0700)
commit4404ee445fdf033a17781c7d80adb5b14e198577
treef6d62c5857618b44f18f68365e5eb65990a8578d
parent6d29c5ec4f2f59b5d0426b14722481510a1ef233
hwmon: (pmbus/ltc2978) Fix peak attribute handling

commit dbd712c2272764a536e29ad6841dba74989a39d9 upstream.

Peak attributes were not initialized and cleared correctly.
Also, temp2_max is only supported on page 0 and thus does not need to be
an array.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/pmbus/ltc2978.c