hwmon: (pmbus/ltc2978) Fix peak attribute handling
authorGuenter Roeck <linux@roeck-us.net>
Thu, 21 Feb 2013 17:33:25 +0000 (09:33 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:22 +0000 (15:03 +0000)
commitd99248b8a03e548521ac4d87588ab1356e990618
treea2edf68f2777d7d21dfc1d80a7c270a10cdf4ce7
parent3e6f87330536fcbc887ccabb30887096f6ce5c0a
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/pmbus/ltc2978.c