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)
commit9172b5d124c2f54374d8cc5ed6098ecd8fb988cd
treed80082b7b3f22fde5ad01af253f45c5bd5435833
parenta7871def65887dd42b51b89c674a90c085e934c9
hwmon: (it87) Create voltage attributes only if voltage is enabled

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