hwmon: (tmp421) Restore missing inputs
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Mar 2010 21:17:25 +0000 (22:17 +0100)
committerJean Delvare <khali@linux-fr.org>
Fri, 5 Mar 2010 21:17:25 +0000 (22:17 +0100)
commit8d59582a867470a3e0c3eced4a01625ae8dc546b
tree6f35acf842f80e3a18cdd6d644b181d4ce43f380
parentd58de038728221f780e11d50b32aa40d420c1150
hwmon: (tmp421) Restore missing inputs

An off-by-one error caused some inputs to not be created by the driver
when they should. TMP421 gets only one input instead of two, TMP422
gets two instead of three, etc. Fix the bug by listing explicitly the
number of inputs each device has.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Andre Prendel <andre.prendel@gmx.de>
Cc: stable@kernel.org
drivers/hwmon/tmp421.c