hwmon: (tmp421) Restore missing inputs
authorJean Delvare <khali@linux-fr.org>
Fri, 5 Mar 2010 21:17:25 +0000 (22:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:49:57 +0000 (08:49 -0700)
commitdde60b40c56a0fa08a3aa6d6d9a8d19bf3249ca5
tree35e4e80e843a91470ff583077089a44a14ff37a3
parentbc6fb9e8ba0e5ec6641527b2cfdf170e332f6a5e
hwmon: (tmp421) Restore missing inputs

commit 8d59582a867470a3e0c3eced4a01625ae8dc546b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/tmp421.c