aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/ltc2978.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-03-05 12:33:01 -0500
committerGuenter Roeck <linux@roeck-us.net>2014-03-06 00:52:06 -0500
commita2e151074366487dcde943fdc08d88acfe476f9d (patch)
treeba4f8372b65694119e42a4e56d2e00571d2544c0 /drivers/hwmon/pmbus/ltc2978.c
parent648cd48c9e566f53c5df30d79857e0937ae13b09 (diff)
hwmon: (pmbus/ltc2978) Add new chip ID for LTC2974
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>
Diffstat (limited to 'drivers/hwmon/pmbus/ltc2978.c')
-rw-r--r--drivers/hwmon/pmbus/ltc2978.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/pmbus/ltc2978.c b/drivers/hwmon/pmbus/ltc2978.c
index de3c152a1d9a..629bfe0fe90a 100644
--- a/drivers/hwmon/pmbus/ltc2978.c
+++ b/drivers/hwmon/pmbus/ltc2978.c
@@ -53,7 +53,8 @@ enum chips { ltc2974, ltc2977, ltc2978, ltc3880, ltc3883 };
53/* LTC3883 only */ 53/* LTC3883 only */
54#define LTC3883_MFR_IIN_PEAK 0xe1 54#define LTC3883_MFR_IIN_PEAK 0xe1
55 55
56#define LTC2974_ID 0x0212 56#define LTC2974_ID_REV1 0x0212
57#define LTC2974_ID_REV2 0x0213
57#define LTC2977_ID 0x0130 58#define LTC2977_ID 0x0130
58#define LTC2978_ID_REV1 0x0121 59#define LTC2978_ID_REV1 0x0121
59#define LTC2978_ID_REV2 0x0122 60#define LTC2978_ID_REV2 0x0122
@@ -394,7 +395,7 @@ static int ltc2978_probe(struct i2c_client *client,
394 if (chip_id < 0) 395 if (chip_id < 0)
395 return chip_id; 396 return chip_id;
396 397
397 if (chip_id == LTC2974_ID) { 398 if (chip_id == LTC2974_ID_REV1 || chip_id == LTC2974_ID_REV2) {
398 data->id = ltc2974; 399 data->id = ltc2974;
399 } else if (chip_id == LTC2977_ID) { 400 } else if (chip_id == LTC2977_ID) {
400 data->id = ltc2977; 401 data->id = ltc2977;