From: Ray Copeland Date: Fri, 5 Feb 2010 18:58:35 +0000 (+0100) Subject: hwmon: (adt7462) Wrong ADT7462_VOLT_COUNT X-Git-Tag: v2.6.33-rc7~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f8d3e5faea8bd36c3e5196f8334f7db45e19b2;p=pandora-kernel.git hwmon: (adt7462) Wrong ADT7462_VOLT_COUNT The #define ADT7462_VOLT_COUNT is wrong, it should be 13 not 12. All the for loops that use this as a limit count are of the typical form, "for (n = 0; n < ADT7462_VOLT_COUNT; n++)", so to loop through all voltages w/o missing the last one it is necessary for the count to be one greater than it is. (Specifically, you will miss the +1.5V 3GPIO input with count = 12 vs. 13.) Signed-off-by: Ray Copeland Acked-by: "Darrick J. Wong" Signed-off-by: Jean Delvare Cc: stable@kernel.org --- Reading git-diff-tree failed