hwmon: (w83627ehf) Skip reading unused voltage registers
authorJean Delvare <khali@linux-fr.org>
Thu, 13 Oct 2011 14:40:53 +0000 (10:40 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 24 Oct 2011 18:09:45 +0000 (11:09 -0700)
commit389ef65d2eae579b23af719f5ef18d625f41fada
treea6284171c5bc63f0e3439c5337b33fd39d80b7b3
parente96f9d89e6213c7630a3323cd0c754e7f2619564
hwmon: (w83627ehf) Skip reading unused voltage registers

When in6 is missing, don't read the corresponding registers, it's a
waste of time. The logic is similar to what we do for fans and
temperatures.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83627ehf.c