hwmon: (pmbus/ltc2978) Add new chip ID for LTC2974
authorGuenter Roeck <linux@roeck-us.net>
Wed, 5 Mar 2014 17:33:01 +0000 (09:33 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 6 Mar 2014 05:52:06 +0000 (21:52 -0800)
LTC2974 datasheet revision C lists the chip ID for LTC2974 as 0x0213.

Reviewed-by: Robert Coulson <rob.coulson@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ltc2978.c

index de3c152a1d9a1f2ed011b679f04ed2f6de74308b..629bfe0fe90a298ade38cd15ba52003c41365226 100644 (file)
@@ -53,7 +53,8 @@ enum chips { ltc2974, ltc2977, ltc2978, ltc3880, ltc3883 };
 /* LTC3883 only */
 #define LTC3883_MFR_IIN_PEAK           0xe1
 
-#define LTC2974_ID                     0x0212
+#define LTC2974_ID_REV1                        0x0212
+#define LTC2974_ID_REV2                        0x0213
 #define LTC2977_ID                     0x0130
 #define LTC2978_ID_REV1                        0x0121
 #define LTC2978_ID_REV2                        0x0122
@@ -394,7 +395,7 @@ static int ltc2978_probe(struct i2c_client *client,
        if (chip_id < 0)
                return chip_id;
 
-       if (chip_id == LTC2974_ID) {
+       if (chip_id == LTC2974_ID_REV1 || chip_id == LTC2974_ID_REV2) {
                data->id = ltc2974;
        } else if (chip_id == LTC2977_ID) {
                data->id = ltc2977;