hwmon: (it87) Create voltage attributes only if voltage is enabled
authorGuenter Roeck <linux@roeck-us.net>
Sun, 25 Mar 2012 04:49:54 +0000 (21:49 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 21 May 2012 02:41:50 +0000 (19:41 -0700)
On IT8782F and IT8783F, some voltage input pins may be disabled. Don't create
sysfs attribute files if that is the case.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/it87.c

Simple merge