Commit 659cba5b authored by Ray Copeland's avatar Ray Copeland Committed by Greg Kroah-Hartman
Browse files

hwmon: (adt7462) Wrong ADT7462_VOLT_COUNT



commit 85f8d3e5 upstream.

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: default avatarRay Copeland <ray.copeland@aprius.com>
Acked-by: default avatar"Darrick J. Wong" <djwong@us.ibm.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 692a97fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment