]> rtime.felk.cvut.cz Git - linux-imx.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)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Mar 2013 05:45:47 +0000 (21:45 -0800)
commitdbd712c2272764a536e29ad6841dba74989a39d9
treea257c49a9b984ca8d71c1c6d28fefa819f16b69b
parent6d21a416562c2532f45cbcd40f47653f61d45533
hwmon: (pmbus/ltc2978) Fix peak attribute handling

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>
Cc: stable@vger.kernel.org # 3.2+
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/pmbus/ltc2978.c