hwmon: (adm1026) Don't create files for missing inputs
authorJean Delvare <khali@linux-fr.org>
Thu, 29 Nov 2007 22:47:54 +0000 (23:47 +0100)
committerMark M. Hoffman <mhoffman@lightlink.com>
Fri, 8 Feb 2008 01:39:43 +0000 (20:39 -0500)
commit5b34dbcd88251508d02e48ad9b0f9b8232a13ee0
treefdc0d9d1cfbf22240a73a13b08dae3ecf91cb33d
parentf67fdabfb94b0bb96623a4b48d22be5329a06277
hwmon: (adm1026) Don't create files for missing inputs

On the ADM1026, pins 27 and 28 can be used for two different functions:
either temp3, or in8+in9. We should only create the sysfs files for the
function that is configured, otherwise it is confusing for the user.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/adm1026.c