hwmon: (pmbus/ltc2978) Use detected chip ID to select supported functionality
authorGuenter Roeck <linux@roeck-us.net>
Thu, 21 Feb 2013 18:49:40 +0000 (10:49 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:22 +0000 (15:03 +0000)
commitdf2f41aa5ec3857956ea6c6c77049101c06eebba
tree4091d31bc8f1bf6755c1286fffc17da09f232078
parentd99248b8a03e548521ac4d87588ab1356e990618
hwmon: (pmbus/ltc2978) Use detected chip ID to select supported functionality

commit f366fccd0809f13ba20d64cae3c83f7338c88af7 upstream.

We read the chip ID from the chip, use it to determine if the chip ID provided
to the driver is correct, and report it if wrong. We should also use the
correct chip ID to select supported functionality.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/pmbus/ltc2978.c