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)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Mar 2013 05:45:47 +0000 (21:45 -0800)
commitf366fccd0809f13ba20d64cae3c83f7338c88af7
tree348dbebd5bf4659c5e07be9d2d88974f852bc843
parentdbd712c2272764a536e29ad6841dba74989a39d9
hwmon: (pmbus/ltc2978) Use detected chip ID to select supported functionality

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>
Cc: stable@vger.kernel.org # 3.2+
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/pmbus/ltc2978.c