]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 16:06:33 +0000 (09:06 -0700)
commitd8f74643578fd5b0c35a944c32e02379e1b22838
tree6e5baf39d42709d5e359da5dee973e1dfeea7d19
parent3db891afe349069162cf7d6fe92e12c7f75ad893
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